20130827 feeding a list of pkgs to yum - plembo/onemoretech GitHub Wiki

title: Feeding a list of pkgs to yum link: https://onemoretech.wordpress.com/2013/08/27/feeding-a-list-of-pkgs-to-yum/ author: phil2nc description: post_id: 6288 created: 2013/08/27 17:20:04 created_gmt: 2013/08/27 21:20:04 comment_status: closed post_name: feeding-a-list-of-pkgs-to-yum status: publish post_type: post

Feeding a list of pkgs to yum

Want to make one server like another? Here's at least the beginning of an answer. First you need to make a list of packages on the "template" machine (the one you want the other machine to look like).

rpm -qa | grep 'perl-' >pkg-list.txt

rpm -qa | grep 'php' >>pkg-list.txt

You get the idea. Then copy the list to the other server and run yum with this syntax:

yum install `cat pkg-list.txt`

Pretty neat, eh? (sorry, just practicing my Canadian English)

Copyright 2004-2019 Phil Lembo