packages - CentOS6 - Backup all RPMs and installed programs -
is there away backup installed applications/rpms/packages/ (even repositories) (with same exact versions/patches) on 1 script can re-install them on fresh bare bone server of same specs
note: can't image or clonezilla tricks
note: there 3rd party software not offered repos ... solution should contain backup of these packages (preferably all)
thanks!
as noted in comment, can backup rpm database, 1 part of replicating configuration server:
- rpm's database records almost of information regarding packages have installed. using database, in principle script used
cpio
orpax
append of files known rpm database suitably large archive area.rpm -qa
gives list of packages, ,rpm -ql
package gives list of files given package. - however, rpm's database not record files created package
%pre
,%post
scripts. - likewise, not record working data (such mysql database) may in
/var/lib
.
to handle last 2 cases, going have analysis of system ensure not leave behind. rpm -qf
pathname can tell owns given file- or directory. have check cases rpm not know owns it.
Comments
Post a Comment