[Yum] How to get yum to read package names from a file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Sorry, in fact I tried "cat foo | xargs yum install"
> That fails because now yum's stdin is redirected to foo,
> and it cannot ask for confirmation.

How about:

#!/bin/bash
for rpmfile in `cat foo`
do
    yum install $rpmfile
done

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux