On Sun, Jul 13, 2008 at 09:02:44AM -0600, Kenneth Burgener wrote:
On 7/13/2008 8:50 AM, David Hláčik wrote:
Hello, little tricky question : i have a file of packages for removal , which looks like that : atk libart_lgpl libXfixes audiofile libXcursor libxslt alsa-lib esound how to , provide that file to yum, using pipe, or redirect does not work cat result | yum remove ..
Try the xargs command:
cat result | xargs yum remove
You could probably also do something like:
# for line in `cat packages.txt`; do echo remove $line >> yumshell.txt; done # echo run >> yumshell.txt # yum shell yumshell.txt
That might be a bit faster as it'll only do the dep-solving one time.
Ray