[CentOS] replicate package installation on multiple machines

Ralph Angenendt ra+centos at br-online.de
Wed Nov 26 11:10:50 UTC 2008


Davide Cittaro wrote:
> Hi all,
> Is there a way to dump the current packages installed on a machine and  
> use it do install/uninstall packages on other machines? I've configured 
> one at install time but to speed up other installations I would like to 
> install default packages and then install/uninstall some starting from my 
> first machine configuration...

rpm -qa > foobar

scp foobar machine2:/var/tmp

ssh machine2

sudo yum install $(cat /var/tmp/foobar)

Ralph
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.centos.org/pipermail/centos/attachments/20081126/6886d764/attachment.bin


More information about the CentOS mailing list