[PLUG] Using YUM to install RPMs from a text file list
Matt McKenzie
lnxknight at gmail.com
Sun Jul 19 09:23:45 UTC 2009
So, I have Fedora 11 running in a VirtualBox VM.
I had it setup earlier, but somehow screwed it up and decided to just wipe
it and start over (its only a VM anyway).
Before I did, I created a list of installed RPMs (after installing many from
regular repos and RPMFusion), so I wouldn't have to go through manually and
reinstall them.
So I have a file generated by
$ rpm -qa > rpmlist.txt
So far I can't seem to find a way to have yum fetch and install the RPMs
listed in a text file.
My google fu so far hasn't come up with anything, but perhaps there is some
better way of wording it...
hopefully someone else has run into something like this. Funny how I
haven't yet, though I have used Fedora since FC1, and RedHat 5-9 before that
(as in the old RedHat Linux, not RHEL)
In a nutshell I want to do something like this:
$ sudo yum install < rpmlist.txt
But that doesn't work, since yum isn't setup to directly take pipes or
redirects from command line.
Also note the package list has full RPM names, including version, so the
list may need to be trimmed or something to just the package names only.
(Ex... foo-bar-1.2.3-fc11.i586.rpm, and yum probably wants just foo-bar
only)
Any help, hints, nudges where to look, etc...
Thanks!
----------
Matt M.
LinuxKnight
More information about the PLUG
mailing list