Yum: Can a package have a alias or short name?

I have installed yum package "mysql" previously using :

yum install mysql

However when I try and list installed packages using filter:

yum list install *mysql"

It shows nothing but when I list installed packages without I can see package names which I believe is what my mysql installed:

mariadb.x86_64                                                                            1:5.5.65-1.el7                                                        @gl
mariadb-libs.x86_64                                                                       1:5.5.65-1.el7

Does yum have a concept of short names or aliases? just trying to understand how mysql maps to mariadb.exe and have googled various resources but didn’t find anything obvious.

Server Fault Asked by Rubans on November 14, 2021

1 Answers

One Answer

RPM packages can declare Provides: which mean that they provide some named capability. These are treated as equivalent to package names when yum decides what packages to install.

A recent version of the mariadb package does indeed declare several provides:

$ rpm -q --provides mariadb
config(mariadb) = 3:10.4.13-2.fc32
mariadb = 3:10.4.13-2.fc32
mariadb(x86-64) = 3:10.4.13-2.fc32
mysql = 3:10.4.13-2.fc32
mysql(x86-64) = 3:10.4.13-2.fc32
mysql-compat-client = 3:10.4.13-2.fc32
mysql-compat-client(x86-64) = 3:10.4.13-2.fc32

Packages can also declare Obsoletes: which are packages that the current package replaces. (Though this package doesn't declare any.) If a package with the old name is already installed, running yum upgrade will replace the old package with the new one.

Answered by Michael Hampton on November 14, 2021

Add your own answers!

Related Questions

inactive option not working for

1  Asked on August 5, 2020 by jakov-sosic


IPVS transmitting packets to incorrect backends

0  Asked on August 1, 2020 by vignesh-sp


Curl to host and port not working from inside Docker container

0  Asked on July 26, 2020 by bhanu-praveen-g


rsync unexpected remote arg: [email protected]:/path

2  Asked on July 21, 2020 by pdiracdelta


Ask a Question

Get help from others!

© 2021 All rights reserved.