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 or pax append of files known rpm database suitably large archive area. rpm -qa gives list of packages, , rpm -qlpackage 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 -qfpathname can tell owns given file- or directory. have check cases rpm not know owns it.


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -