Last active
August 15, 2022 14:49
-
-
Save n1lux/1994d493badc7ad7ff5ea236c856ad0a to your computer and use it in GitHub Desktop.
Backup/Retore rpm packages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Backup | |
rpm -qa --qf "%{NAME}\n" | sort > /backup/packages-installed.log | |
#restore | |
LIST=$(cat /backup/packages-installed.log) | |
for s in $LIST; do yum -y install $s; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment