All pastes #1883565 Raw Edit

martin

public text v1 · immutable
#1883565 ·published 2010-06-15 12:45 UTC
rendered paste body
how do I save installed packages in a list and restore ...
 
rpm -qa > installed-software.log
yum install $(cat installed-software.log)
 
sorting rpm packages by size
rpm -qa --qf '%{SIZE}\t%{NAME}\n' | sort -n
 
 
rpm -qa > installed-software
 
 
rpm -qa|sort > installed-software
 
 
Also another way if you want to make a kickstart file for installing with or making a livecd..(assuming you have system-config-kickstart installed)
 
system-config-kickstart --generate current.ks
 
 
 
To make the txt with your files:
Quote:
rpm -qa | sort > /home/[user]/Desktop/installed-software.log
To reinstall everything from the txt:
Quote:
yum -y install $(cat /home/[user]/Desktop/installed-software.log)
To download all the packages without installing anything(to make a local repository perhaps)
Quote:
yumdownloader $(cat /home/[user]/Desktop/installed-software.log) --destdir="/home/[user]/Desktop/local_repository"