Re: rpm uninstallation

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

 



John Haxby wrote:

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


not at all, this is helpful, i'm making progress.

of course now the problem is that the machine seems to think that the rpms i want removed are not installed. how do i determine the correct name to use for the rpm? do i simply lopp off the version information as in this example:
http://www.faqs.org/docs/securing/chap3sec20.html (see second example)


--

regards,

shane


-- 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