On Sun, Jul 19, 2009 at 2:23 AM, Matt McKenzie <[email protected]> wrote:
> 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 > _______________________________________________ > PLUG mailing list > [email protected] > http://lists.pdxlinux.org/mailman/listinfo/plug > I haven't tried this yet Matt as I just installed Fedora last night but you might try this. cat rpmlist.txt |xargs then copy the list and export it to a variable like RPMLIST for i in $RPMLIST; do yum install $i; done HTH, Drew- _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
