Re: rpm uninstallation

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

 



shane c branch wrote:


for i in `cat rpms` do rpm -evv --nodeps $i done

Joe


i must have missed something. i tried executing those commands, and i did receive some output when it completed, but i don't think it uininstalled anything.

the output called an error on 'cat' apparently thinking it was a package, as well as on the filename i used to store the list of packages i want removed.


Those quotes are back-quotes. This is 'cat rpms' in single quotes and `cat rpms` in backquotes. I often use the alternative syntax:

   for i in $(cat rpms)
   do
      rpm -evv $i
   done

Although, in this case

rpm -evv $(cat rpms)

works (I think), not to mention the more obscure

rpm -evv $(< rpms)

This last one is blindingly efficient for things like

echo $(< /etc/redhat-release)

since it doesn't involve starting any new processes.

There, now, are you sorry you asked? :-)

jch


-- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux