/r/CentOS

Photograph via snooOG

CentOS (Community Enterprise Operating System) was a Linux distribution that attempted to provide a free, enterprise-class, community-supported computing platform which aimed to be functionally compatible with its upstream source, Red Hat Enterprise Linux (RHEL).

However that is no longer the case.

https://blog.centos.org/2020/12/future-is-centos-stream/

CentOS (Community Enterprise Operating System) was a Linux distribution that attempted to provide a free, enterprise-class, community-supported computing platform which aimed to be functionally compatible with its upstream source, Red Hat Enterprise Linux (RHEL).

However that is no longer the case. RIP CentOS

https://blog.centos.org/2020/12/future-is-centos-stream/

For more information please refer to these external sites:


Rules:

  1. Please be gracious and up vote posts and comments liberally.
  2. Be polite. It's okay to disagree, but please refrain from being needlessly rude.
  3. No spam or personal blogs
  4. No image macros or memes, unless it's related to the death of CentOS

Relevant subreddits:

/r/CentOS

16,695 Subscribers

0

Unable to upgrade from Centos7 to Almalinux

I’m unable to upgrade from CentOS 7 to Almalinux.

I’m following these two guides:

https://wiki.almalinux.org/elevate/ELevating-CentOS7-to-AlmaLinux-9.html#upgrade-centos-7-to-almalinux-8
https://almalinux.org/blog/2024-07-09-centos7-updates/

When, I’m running the following command:
sudo yum install -y leapp-upgrade leapp-data-almalinux

Getting this error
Loaded plugins: fastestmirror
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Loading mirror speeds from cached hostfile
No package leapp-upgrade available.
No package leapp-data-almalinux available.
Error: Nothing to do

Info about the repo’s that I have:
ls -l /etc/yum.repos.d/
total 12
drwxr-xr-x. 2 root root 4096 Feb 3 07:56 backup
-rw-r–r–. 1 root root 1681 Feb 3 08:08 CentOS-Base.repo
-rw-r–r–. 1 root root 490 Jan 31 16:26 CentOS-Vault.repo

sudo yum repolist all
Loaded plugins: fastestmirror
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Loading mirror speeds from cached hostfile
repo id repo name status
base/7/x86_64 CentOS-7 - Base enabled: 10,072
centosplus/7/x86_64 CentOS-7 - Plus enabled: 277
extras/7/x86_64 CentOS-7 - Extras enabled: 526
updates/7/x86_64 CentOS-7 - Updates enabled: 6,173

4 Comments
2025/02/03
09:19 UTC

2

I'm trying to build a Docker image of CentOS4.

The file in https://vault.centos.org/4.0/os/i386/CentOS/base/stage2.img provides a basic rootfs including libc, bash, rpm, etc.

It is a ROM filesystem, and can be mounted by mount -t cramfs -o loop stage2.img mnt.

It's mounted read-only by default, you can copy it into a new directory to make it read-write.

Then chroot into it.

Initially, there's no /var/lib/rpm/.

I tried to build a rpmdb from scratch by using rpm --initdb.

===

> rpm --initdb

error: can't create transaction lock

===

How to set up rpm correctly, so that I can further install yum from https://vault.centos.org/4.0/os/i386/CentOS/RPMS/yum-2.2.0-1.centos4.2.noarch.rpm, and then set up the whole thing by using yum?

12 Comments
2025/01/31
09:56 UTC

1

Booting the CentOS 10 ISO

My computers will not boot CentOS 10 distributions from my USB flash drives.

I flash the drives using dd as I have for dozens of other CentOS and Fedora distributions:
dd status=progress if=CentOS-Stream-10-20250123.0-x86_64-boot.iso of=/dev/sdc bs=4M
Then I reboot, select the USB drive to boot. It shows me the grub menu where I can either 1. install centos 10 or 2. test drive and install. Regardless of which I choose, my screen goes blank for a little while then my computer reboots. The same also happens if I choose the limited graphics install mode.

I have no problem mounting and reading the boot media. The boot, EFI, and images directories and their contents are all readable.

The problem occurs with multiple different functional flash drives.
This problem occurs on two different computers, both of which have run multiple CentOS and Fedora distributions for years.
The problem happens whether I use CentOS-Stream-10-20250123.0-x86_64-boot.iso or CentOS-Stream-10-20240822.0-x86_64-boot.iso.

I do not have this problem with the latest Fedora (or any of the previous releases), a flashed version of Fedora-Workstation-Live-x86_64-41-1.4.iso boots just fine.

Has something changed and I am just out of the loop?

6 Comments
2025/01/27
13:28 UTC

2

How many packages should I expect to be renamed in CentOS 10-Stream?

Hi, does anyone know why thin-provisioning-tools package was renamed device-mapper-persistent-data, and/or how often I might expect to see this kind of thing?

Example (notice the URL and description still reflect previous package name):

Installed Packages
Name         : device-mapper-persistent-data
Version      : 1.1.0
Release      : 2.el10
Architecture : x86_64
Size         : 3.1 M
Source       : device-mapper-persistent-data-1.1.0-2.el10.src.rpm
Repository   : @System
From repo    : baseos
Summary      : Device-mapper Persistent Data Tools
URL          : https://github.com/jthornber/thin-provisioning-tools
License      : GPL-3.0-only AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND
             : (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0
             : OR MIT) AND BSD-3-Clause AND MIT AND (MIT OR Apache-2.0) AND (MIT OR
             : Zlib OR Apache-2.0) AND (Unlicense OR MIT) AND (Zlib OR Apache-2.0 OR
             : MIT)
Description  : thin-provisioning-tools contains check,dump,restore,repair,rmap
             : and metadata_size tools to manage device-mapper thin provisioning
             : target metadata devices; cache check,dump,metadata_size,restore
             : and repair tools to manage device-mapper cache metadata devices
             : are included and era check, dump, restore and invalidate to manage
             : snapshot eras

(I think that last word is a typo, is it supposed to say erase?)

7 Comments
2025/01/21
20:52 UTC

2

Docker iptable issue on CentOS 10

3 Comments
2025/01/20
16:46 UTC

0

Hi everyone.

I am new to centos. Can anyone please guide me where i can find latest iso of centos? Or only centos 7 2009 is available?

4 Comments
2025/01/17
13:42 UTC

0

Install ClamAV Offline on an CentOS Stream10

Hello All,

Have anybody found how to install ClamAV totally offline on a CentOS Stream 10?

I started to make some tests, but i did not succeeded. The problem I have, i do not find how to update the signatures Offline. Thx in advance

1 Comment
2025/01/14
12:35 UTC

0

CentOS 8 Won't Boot After Password Reset

Hello. I just watched a video to reset a password using GRUB on CentOS 8. This is a laptop of an acquaintance who had it set up by someone but was never given the password for admin commands.

https://www.youtube.com/watch?v=8W5CWhg19pI&ab_channel=Linuxtarget

I followed the steps and seemed to reset the user account password successfully. But now, it won't boot. I am given the regular GRUB menu, but when I select or wait for the correct selection, it loads for a bit then hangs on the black screen with the CentOS logo (no loading circle). What would cause this? How can I diagnose this problem?

4 Comments
2025/01/13
18:53 UTC

8

CentOS 10 Stream - when will more software be available, and what can be done?

Hi, I am previewing CentOS 10 Stream as a workstation OS, and I'm struck by the lack of packages available compared to CentOS 9 Stream and Fedora 40/41. There's nowhere near the number of packages available for 10 as there are 9. I don't expect it to be Fedora, but was hoping it'd at least be comparable to the prior edition.

I attempted to set up a build system on COPR to build some of the packages I couldn't find native RPMs for, but alas, copr-cli is not available. Same for osc for the Open Build Studio. mpv isn't in repos, but RPM Fusion isn't updated for CentOS 10 yet, so no non-free ffmpeg dependencies available for 10 AFAICT. I can try and compile some of these from source, but I'm not particularly familiar with them to begin with, so I'm not sure how successful I'll be.

I installed epel-release, which I see has a folder for 10 on mirrors but now dnf complaining can't find gpg key:

Failed to search for file: Failed to download gpg key for repo 'epel': Curl error (37): Could not read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-$releasever_major [Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-$releasever_major]

Not trying to complain, just trying to understand - is there any news about progress porting software to the 10 platform, or anything I can do to help move this along? Thanks

9 Comments
2025/01/10
21:31 UTC

2

Install from USB-c Invalid signature

I've dd the CentOS DVD image to a SD card attached to a usb-c card reader. when I boot my Aorus z690 from this I get "Invalid signature detected" can en/disbale csm same results. Downloaded from torrent CentOS-Stream-x86_64-dvd1.torrent

1 Comment
2024/12/31
13:50 UTC

8

Any place to download a copy of the Centos 7 Repos?

I'm looking to see if anyone knows of any place I could download a copy of the base, update, and extras Repos for Centos 7.9. I work with a retired legacy application that has federally mandated retention period, and the only currently supported way to get access to the data on request has been to spin up a new instance of the application server and restore an old copy of the database. I have finally convinced the upper management level that we need to revisit our solution to get us on a supported version, because at this point we wouldn't be able to build a server to meet our retention period mandate in an automated fashion.

In our effort to move our terraform and ansible-driven build process over from CentOS 7 to Rocky 8 or 9, I have to make sure I can replicate our build process as closely as I can (long story, but we've already eliminated all developers that worked on this legacy line...I'm reverse engineering a lot of this from an infra level). This means I need to successfully build a server using CentOS 7, something we haven't had to do for about a year. I've updated the process to modify the repos to use vault. I know this is not recommended, but it's the only workaround I've found yet.

The issue I'm running into is that that the Vault 7_9 repos have some packages updated and some not, and some things appear to have different name tags. For example, I'm trying to install libcurl-devel, and it's stuck on multilib dependencies. libcurl_devel x86_64 is installing, but it's trying to install libcurl i686, and that pulls a bunch of other i686 packages which then error out.

       Protected multilib versions: libssh2-1.8.0-4.el7.i686 != libssh2-1.8.0-4.el7_9.1.x86_64
Error: Protected multilib versions: openldap-2.4.44-22.el7.i686 != openldap-2.4.44-25.el7_9.x86_64
Error: Protected multilib versions: nss-util-3.44.0-4.el7_7.i686 != nss-util-3.90.0-1.el7_9.x86_64
Error: Protected multilib versions: nspr-4.21.0-1.el7.i686 != nspr-4.35.0-1.el7_9.x86_64
Error: Protected multilib versions: cyrus-sasl-lib-2.1.26-23.el7.i686 != cyrus-sasl-lib-2.1.26-24.el7_9.x86_64
Error: Protected multilib versions: krb5-libs-1.15.1-50.el7.i686 != krb5-libs-1.15.1-55.el7_9.x86_64
Error: Protected multilib versions: nss-pem-1.0.3-7.el7.i686 != nss-pem-1.0.3-7.el7_9.1.x86_64
Error: Protected multilib versions: nss-softokn-3.44.0-8.el7_7.i686 != nss-softokn-3.90.0-6.el7_9.x86_64
Error: Protected multilib versions: nss-3.44.0-7.el7_7.i686 != nss-3.90.0-2.el7_9.x86_64
Error: Protected multilib versions: libcurl-7.29.0-59.el7.i686 != libcurl-7.29.0-59.el7_9.2.x86_64
Error: Protected multilib versions: 1:openssl-libs-1.0.2k-19.el7.i686 != 1:openssl-libs-1.0.2k-26.el7_9.x86_64

So far as I can tell, I think it might have something to do with the fact that the packages in the Vault have the "el7_9" tag in the name, as opposed to the standard "el7" that existed in previous repos...

I'm thinking that if I can find a source to download the repos for legacy build purposes, I could set up a repo locally to develop our solution to a point where we could eliminate 7, but I can't find any place I could download a repo not using the vault's naming scheme. Alternative solutions would be appreciated as well (anyone tried to install this package on 7_9 from vault?), as this is the only package that seems to be giving us trouble so far, and it's a lot of trouble to go to for a transitory solution.

4 Comments
2024/12/31
08:23 UTC

2

TigerVNC server have trouble with login screen

0 Comments
2024/12/26
14:15 UTC

1

I was able to install package without sudo

I called the m4 command, but Bash reported that there is no respective package and suggested installing it. I agreed with the suggestion, but I was surprised that the package was installed without requiring a sudo password.

How is it possible?

$ m4
bash: m4: command not found...
Install package 'm4' to provide command 'm4'? [N/y] y


 * Waiting in queue... 
 * Loading list of packages.... 
The following packages have to be installed:
 m4-1.4.19-1.el9.x86_64 GNU macro processor
Proceed with changes? [N/y] y


 * Waiting in queue... 
 * Waiting for authentication... 
 * Waiting in queue... 
 * Downloading packages... 
 * Requesting data... 
 * Testing changes... 
 * Installing packages... 
4 Comments
2024/12/24
15:40 UTC

0

Java on centOS stream 10

I’ve been trying for the last hour or 2 trying to do research and attempt a few ways to get Java downloaded and working on my server running vent OS stream 10. I’m fairly new to Linux and servers in general which doesn’t help. Anyone have any ideas? Thank you in advance!

9 Comments
2024/12/24
08:29 UTC

0

CentOS Strea - Is this an upcoming version name?

4 Comments
2024/12/23
23:50 UTC

4

What is the difference between these CentOS 9 Stream cloud images?

What is the difference between these two:
- https://cloud.centos.org/centos/9-stream/x86_64/images/CentOS-Stream-GenericCloud-9-latest.x86_64.qcow2 (1.1 GB)

- https://cloud.centos.org/centos/9-stream/x86_64/images/CentOS-Stream-GenericCloud-x86_64-9-latest.x86_64.qcow2 (1.3 GB)

Both seem to have the same build date, yet different sizes and file names. The second filename doesn't imply anything different than the first one, except that for some unknown to me reason "x86_64" is repeated a second time.

4 Comments
2024/12/23
22:54 UTC

1

Why does the AppStream repository contain multi-version packages? How can this be achieved?

Recently, I have been learning how to generate a repository using Pungi and Pungi-Koji.

I found a repository at "https://odcs.stream.centos.org/stream-10/production/latest-CentOS-Stream/compose/AppStream/x86\_64/os/Packages/" and I was able to do it.

But I found a repository at "https://mirrors.tuna.tsinghua.edu.cn/centos-stream/10-stream/AppStream/x86\_64/os/Packages/" that contains multiple versions of packages, such as 389-ds-base-3.0.3-10.el10.x86_64.rpm and 389-ds-base-3.0.4-1.el10.x86_64.rpm.

I want to know how to generate a repository that contains multiple versions of packages.

3 Comments
2024/12/16
03:18 UTC

44

Announcing CentOS Stream 10

The CentOS Project is delighted to announce the general availability of CentOS Stream 10 "Coughlan", the latest version of the CentOS Project distribution.

https://blog.centos.org/2024/12/introducing-centos-stream-10/

33 Comments
2024/12/12
23:02 UTC

0

Is it possible to run SysmonforLinux on CentOS 7.9?

I am running CentSO 7.9.2009 and I followed the installation steps of SysmonforLinux for RHEL 7.

sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
sudo wget -q -O /etc/yum.repos.d/microsoft-prod.repo https://packages.microsoft.com/config/rhel/7/prod.repo
sudo yum install sysmonforlinux

But the install command failed with this error:

Error: Package: sysinternalsebpf-1.4.0-0.el8.x86_64 (packages-microsoft-com-prod)
           Requires: libc.so.6(GLIBC_2.28)(64bit)
Error: Package: sysmonforlinux-1.3.3-0.el8.x86_64 (packages-microsoft-com-prod)
           Requires: libc.so.6(GLIBC_2.25)(64bit)
Error: Package: sysmonforlinux-1.3.3-0.el8.x86_64 (packages-microsoft-com-prod)
           Requires: libstdc++.so.6(CXXABI_1.3.9)(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
4 Comments
2024/12/01
05:47 UTC

1

I increased the disk space from 60 to 90 on my Centos vm present on vcenter, but it is not detected

6 Comments
2024/11/28
13:15 UTC

1

Ctrl + Shift + Fn logs me out of Gnome/Wayland

Update:

This is bug https://access.redhat.com/errata/RHBA-2024:9466

Resolved in mutter 40.9.22

Thanks to u/FrazzledHack for pointing it out.

Relatively fresh Centos Stream 9 install. Keyboard shortcuts Ctrl+Shift+Fn are assigned to move window to workspace n(1-4). 99% of the time when I hit these all apps hard stop and a 5 seconds later I am staring at a Gnome/wayland gui login screen. Log in again, no previously running X apps/terms are running.

Any ideas? Ctrl + Alt + Fn switches from wayland to to a TTY and back as expected. I am still searching.

Sorry if this is not CentOS specific. I'll probably cross post in a Gnome sub too.

Edit 1: I have since switched mappings to Ctrl + Super + Fn to do the same action. No issues there.

Edit 2: OK so I have the same issue with this key mapping as well?! While editing the keyboard shortcuts, that is while that dialog is open and after making a change, both combos work as expected. After closing the dialog, either key combo causes instant Gnome logout. This is the native Settings/Keyboard/Keyboard Shortcuts/Navigation setup. Not tweaks, or any other add-on.

Edit 3: So all bets are off. No matter what I bind to that action it insta logs out, most of the time. Dialog open/vs edit being applied was not a factor. I just got lucky a few times. No idea at all. Looking more into logs, and at nvidia issues maybe.

Nov 26 22:05:04 proc01 systemd[25704]: org.gnome.Shell@wayland.service: Main process exited, code=dumped, status=11/SEGV
Nov 26 22:05:04 proc01 gnome-shell[26106]: (EE) failed to write to Xwayland fd: Broken pipe
Nov 26 22:05:04 proc01 systemd[25704]: org.gnome.Shell@wayland.service: Failed with result 'core-dump'.
Nov 26 22:05:04 proc01 systemd[25704]: org.gnome.Shell@wayland.service: Triggering OnFailure= dependencies.
Nov 26 22:05:04 proc01 systemd[25704]: org.gnome.Shell@wayland.service: Consumed 51.648s CPU time.
Nov 26 22:05:04 proc01 systemd[25704]: Stopped target GNOME Wayland Session (session: gnome).
Nov 26 22:05:04 proc01 systemd[25704]: Stopped target GNOME Wayland Session.
                                                #7  0x00007fbe11c0a8c8 damage_thread (libnvidia-egl-wayland.so.1 + 0x78c8)
Nov 26 22:05:07 proc01 gdm-wayland-session[25720]: GLib: Source ID 2 was not found when attempting to remove it
Nov 26 22:05:09 proc01 gnome-shell[28863]: Using Wayland display name 'wayland-0'

Edit 4: OK at the moment, applied some pending updates ( only like 2-3 weeks worth ) and disabled "flameshot" from starting on its own.

2 Comments
2024/11/27
02:51 UTC

0

Taking the leap for using Linux as a main OS

My main C drive is pretty much full, so I was going to take the opportunity to install a larger drive and put a fresh install of windows on it.

However, after dabbling with CentOS for the past few months, I think I'd like to take the leap into using it as my main OS.

However, I still need windows to play all of my games - so I'm thinking about using a hypervisor for a windows VM. I'll obviously need to use GPU passthrough so the games can use the GPU.

There's many flavours of hypervisor (paid and unpaid), and GPU passthrough sometimes introduces other considerations (e.g. not being able to use the gfx card for the main OS).

I'm just wondering if anyone here has a similar setup, and would like to hear what you used and how you have things setup.

3 Comments
2024/11/19
07:30 UTC

6

Fix Yum in CentOS 7

Hey, I'm a student and I was left with homework installing CentOS 7 and finding a way to fix its repositories to make Yum work.

I can hardly find anything in Spanish so... could someone here explain what to do? really the information I find is so... Aja, everything has already mixed up in my head.

15 Comments
2024/11/15
04:12 UTC

0

Problems with vlan in Centos 7

Hello everyone, good afternoon! Sorry if the correct place for this request for help is not here.

I came to look for help because I exhausted what I knew to try to solve the problem. I have a vlan created on my Centos 7 server. There was no problem creating and configuring the vlan, but once the computers in the vlan's network range were added, they were unable to communicate with the server and neither the server was able to communicate with the computer doesn't even respond to ping.

From the server I can ping 192.168.3.245, but I cannot reach any computer in that network range 192.168.3.0/24
From any computer in the 192.168.3.0/24 network range I cannot ping 192.168.3.245, but I can ping between the computers.

I have a Managed Switch that I've already tried to change the port settings, but I didn't get any results.

Does anyone have any idea what is missing for this vlan to work properly? Maybe something in Firewalld that I missed?

Note: Without the vlan, using a configuration on the physical interface, communication works in all directions.

Running the command: nmcli device status
DEVICE     TYPE      STATE            CONNECTION
enp1s0     ethernet  conectado        enp1s0
vlanadm    vlan      conectado        vlanadm
eno1       ethernet  conectado        eno1

The physical interface has the following configuration:
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
NAME=eno1
DEVICE=eno1
ONBOOT=yes
BOOTPROTO=none
ZONE=internal

The vlan has the following configuration:
VLAN=yes
TYPE=Vlan
PHYSDEV=eno1
VLAN_ID=2
REORDER_HDR=yes
GVRP=no
MVRP=no
HWADDR=
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=vlanadm
DEVICE=vlanadm
ONBOOT=yes
IPADDR=192.168.3.245
PREFIX=24
GATEWAY=192.168.3.245
ZONE=internal
5 Comments
2024/11/12
20:07 UTC

2

CentOS Connect 2025

CentOS Connect will be back in Brussels January 30-31, the two days before FOSDEM. Join us at our free contributor conference to collaborate on the future of Enterprise Linux.

https://connect.centos.org/

0 Comments
2024/11/11
17:01 UTC

2

No Update for OpenJDK-1.8.0 in Stream9?

Hey,

I hope this sub is also the right place for Stream related questions. Sorry if not.

We run Stream 9 at work on our VMs, and one of our applications still requires Java 1.8 Recently we got an email from our security scanner due to a vulnerable Java version and I was quite shocked as I looked at the version...

CentOS 9 Stream still ships 1.8.0.362.

The official OpenJDK release is already at 432, and even CentOS 7 got updates until 402 before it went EOL.

What is going on here? Why is CentOS Stream 9 shipping such an old version of openJDK8 that contains a ton of CVEs?

10 Comments
2024/11/11
13:51 UTC

Back To Top