I work at a place where all of our servers are Debian. Now, one of our customers have their own external server running CentOS 7.
I've gotten the task to put all of our maintenance, update, monitoring, etc. scripts over to this CentOS server. One of those scripts is a very short one. It "backs up" the installed packages by putting the list of installed packages into a file, and thereafter the debconf database to a second file. Script below:
/usr/bin/dpkg --get-selections > /path/to/package.list
/usr/bin/debconf-get-selections > /path/to/debconfdb.backup
I want to figure out the equivalent of these for CentOS. I've only managed to cover the first command.
/usr/bin/rpm -qa > /path/to/package.list
I can't for the life of me figure out what the equivalent of debconf-get-selections
(or debconf
in general) is on CentOS, and if CentOS even has such a database.
Could someone guide me in the right direction, or blindly tell me the equivalent of the second line?