Major Issues with Yum and Dnf

Issues related to applications and software problems and general support
thejm
Posts: 9
Joined: 2023/05/04 02:49:25

Re: Major Issues with Yum and Dnf

Post by thejm » 2023/05/04 15:33:40

TrevorH wrote:
2023/05/04 15:25:45
Good find. For those missing files, I would yum reinstall $package each of those packages that say they are missing things. you can do them all in one command by listing them one after the other.
Thank you!

I apologize if this is a dumb question but the items that were missing when I ran 'rpm -Va python\*.repo' appeared to me to be files not packages. How do I get a list of missing packages?

Also when I run the reinstall command do I include the "$"? in other words is it:

yum reinstall $package1 $package2 $package3

or

yum reinstall package1 package2 package3

Thanks again.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Major Issues with Yum and Dnf

Post by TrevorH » 2023/05/04 16:46:52

No $, that was meant to be a variable meaing "substitute the right names here". And I think you listed three above that had missing files?

I think you can still query the rpm database for the files even though they do not exist: rpm -qf /usr/lib/python3.6/site-packages/requests/__init__.py for example and that should tell you the package name that owns it, ready for a reinstall.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

thejm
Posts: 9
Joined: 2023/05/04 02:49:25

Re: Major Issues with Yum and Dnf

Post by thejm » 2023/05/04 17:10:06

TrevorH wrote:
2023/05/04 16:46:52
No $, that was meant to be a variable meaing "substitute the right names here". And I think you listed three above that had missing files?

I think you can still query the rpm database for the files even though they do not exist: rpm -qf /usr/lib/python3.6/site-packages/requests/__init__.py for example and that should tell you the package name that owns it, ready for a reinstall.
Got it done! I reinstalled the three packages and the re-ran 'rpm -Va python\*.repo' and got no errors!

thejm
Posts: 9
Joined: 2023/05/04 02:49:25

Re: Major Issues with Yum and Dnf

Post by thejm » 2023/05/04 17:23:03

BTW I noticed your signature. Do you have a recommendation for the best OS to go to? I understand that Centos Stream (what I'm currently running) is at EOL?

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Major Issues with Yum and Dnf

Post by jlehtone » 2023/05/08 12:40:59

thejm wrote:
2023/05/04 17:23:03
I understand that Centos Stream (what I'm currently running) is at EOL?
Not quite. CentOS Linux 8 is already EOL. CentOS 7 will be EOL in June 2024.
CentOS Stream 8 will be EOL ~June 2024. CentOS Stream 9 will be EOL Summer 2027.

The CentOS 7 aims to be bug-for-bug compatible with RHEL 7.
CentOS Linux 8 did aim to be bug-for-bug compatible with RHEL 8.
AlmaLinux 8 and Rocky Linux 8 do aim to be bug-for-bug compatible with RHEL 8. They EOL in 2029.
AlmaLinux 9 and Rocky Linux 9 do aim to be bug-for-bug compatible with RHEL 9. They EOL in 2032.
This table about "el8" might still be valid: https://wiki.almalinux.org/Comparison.html

Alma and Rocky are not the only "built from RHEL sources" distros, although some distros add their own spices.
Alma and Rocky are "spiritual successors" fo CentOS Linux.

CentOS Stream is not bug-for-bug compatible with RHEL nor meant for production systems.


A viewpoint -- but their usage might differ from regular Joe -- is from CERN and Fermilab. See what they use: https://linux.web.cern.ch/
They used to have their own distro, Scientific Linux, but shifted to CentOS Linux. Now they have AlmaLinux. (They do use RHEL too.)

Post Reply