"yum remove" bug in CentOS 7

General support questions
Post Reply
Feriman
Posts: 1
Joined: 2021/10/12 11:55:24

"yum remove" bug in CentOS 7

Post by Feriman » 2021/10/12 12:00:34

Hi,

I found a bug in CentOS 7, which is probably related to yum package manager.

As you can see on this screenshot below, if I run the yum remove command with a name of removeable application name, it cannot find the removeable package if the working directory contains a file with this name. When I change the directory to another, the yum remove commands works again.
bug-in-redhat.png
bug-in-redhat.png (95.24 KiB) Viewed 811 times
Is it a real bug?


Thanks!

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: "yum remove" bug in CentOS 7

Post by TrevorH » 2021/10/12 12:30:26

It's not a bug, it's working as designed. When you run yum remove *zabbix* then you enter that command at a bash prompt. Bash processes the wildcards and expands them to match any files that are present that match the pattern you give and then executes yum remove zabbix-agent-installer-sh since that file matches the pattern.

To avoid this you either need to run yum remove \*zabbix\* so that bash passes the exact pattern to yum or run it without a pattern, using full package names.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply