On Mon, Dec 1, 2008 at 6:21 PM, Michael Clark <[EMAIL PROTECTED]> wrote: > Cheng Renquan wrote: >> >> On Tue, Dec 2, 2008 at 10:02 AM, Michael Clark <[EMAIL PROTECTED]> >>> How do I do this with yum? >> >> How about this? >> >> machine a: >> rpm -qa > package.list >> >> machine b: >> yum install $(<package.list) >> > > [...] I thought of initially but my worry was that the output from rpm -qa > includes the fully qualified package name and version so if the exact > version is not in the repository it might not work (e.g. machine A has not > been updated or is on a different minor release which is the case for me). > Perhaps yum recognizes this and fetch the latest version anyway? [...]
I thought of that method too but my concern will be that `yum install ...` will install all the packages, but not necessarily removed any packages that are not specified in package.list. Does that matter for your use? (I might be making wrong assumptions, based on my limited usage of yum.) -- Chris [EMAIL PROTECTED] [EMAIL PROTECTED] _______________________________________________ Slugnet mailing list [email protected] http://wiki.lugs.org.sg/LugsMailingListFaq http://www.lugs.org.sg/mailman/listinfo/slugnet
