Reinstalling Packages on CentOS or RHEL Revision as of Wednesday, 26 June 2024 at 10:57 UTC
Installed package lists are kept in /var/log/rpmpkgs
.
cpĀ /var/log/rpmpkgsĀ /backups/packages
Reinstall with
yumĀ installĀ $(sedĀ 's/-[0-9].*.rpm$//g'Ā /backups/packagesĀ |Ā trĀ '\n'Ā 'Ā ')