Re: rpm erase or removal of rpms

2022-05-24 Thread Samuel Sieb
On 5/24/22 14:28, Barry wrote: On 23 May 2022, at 23:03, Todd Zullinger wrote: Hi, Bill Cunningham wrote: I have been trying to use rpm or dnf to remove some rpms. I'd use dnf. It provides a much wider safety net. I have always assumed that using rpm -e will mess up dnf. so I never u

Re: rpm erase or removal of rpms

2022-05-24 Thread Bill Cunningham
On 5/24/2022 6:26 PM, Bill Cunningham wrote: On 5/24/2022 6:23 PM, Bill Cunningham wrote: On 5/24/2022 5:28 PM, Barry wrote: On 23 May 2022, at 23:03, Todd Zullinger wrote: Hi, Bill Cunningham wrote: I have been trying to use rpm or dnf to remove some rpms. I'd use dnf.  It provides

Re: rpm erase or removal of rpms

2022-05-24 Thread Barry
> On 23 May 2022, at 23:03, Todd Zullinger wrote: > > Hi, > > Bill Cunningham wrote: >> I have been trying to use rpm or dnf to remove some rpms. > > I'd use dnf. It provides a much wider safety net. I have always assumed that using rpm -e will mess up dnf. so I never use rpm for any opera

Re: rpm erase or removal of rpms

2022-05-23 Thread Roger Heflin
Be careful with a "-y" on a dnf/yum remove. I have seen yum/dnf determine that a lot of packages need to go. The protected multi-lib/packages may stop a total disaster, but you could also remove a lot of packages you don't want to remove and have to go back through the list and reinstall a lot.

Re: rpm erase or removal of rpms

2022-05-23 Thread Bill Cunningham
On 5/23/2022 5:12 PM, Thomas Cameron wrote: Write your list so that all the packages are on a single line, and just add rpm -e to the head of that line: rpm -e foo bar baz Or: for i in `cat list`; do rpm -e $i     I see, thanks much Thomas, so this would then be kind of doing the work o

Re: rpm erase or removal of rpms

2022-05-23 Thread George N. White III
On Mon, May 23, 2022 at 6:27 PM Roger Heflin wrote: > rpm -e $(cat list) > > Even better: "dnf mark remove $(cat list) dnf mark remove ... Unmarks the specified packages as installed by user. Whenever you as a user don't need a specific pack‐ age you can mark it for

Re: rpm erase or removal of rpms

2022-05-23 Thread Bill Cunningham
On 5/23/2022 5:22 PM, Roger Heflin wrote: rpm -e $(cat list) On Mon, May 23, 2022 at 4:02 PM Bill Cunningham wrote:     I have been trying to use rpm or dnf to remove some rpms. Most the ones I am concerned with are docker related, and or to do with go (golang). You certainly ca

Re: rpm erase or removal of rpms

2022-05-23 Thread Todd Zullinger
Hi, Bill Cunningham wrote: > I have been trying to use rpm or dnf to remove some rpms. I'd use dnf. It provides a much wider safety net. You can do this with rpm as well, but it requires greater care. > Here is > an example of what I have been trying to do, ex: > >     list.txt, > > > gcc-d

Re: rpm erase or removal of rpms

2022-05-23 Thread Roger Heflin
rpm -e $(cat list) On Mon, May 23, 2022 at 4:02 PM Bill Cunningham wrote: > I have been trying to use rpm or dnf to remove some rpms. Most > the ones I am concerned with are docker related, and or to do with go > (golang). You certainly can't use wildcards with rpm erase. I have a > lis

Re: rpm erase or removal of rpms

2022-05-23 Thread Thomas Cameron
On 5/23/22 15:53, Bill Cunningham wrote: I have been trying to use rpm or dnf to remove some rpms. Most the ones I am concerned with are docker related, and or to do with go (golang). You certainly can't use wildcards with rpm erase. I have a list generated with the date these rpms were install