How To Install mysql-common on Rocky Linux 8
Introduction
In this tutorial we learn how to install mysql-common
on Rocky Linux 8.
What is mysql-common
The mysql-common package provides the essential shared files for any MySQL program. You will need to install this package to use any other MySQL package.
We can use yum
or dnf
to install mysql-common
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install mysql-common.
Install mysql-common on Rocky Linux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install mysql-common
using dnf
by running the following command:
sudo dnf -y install mysql-common
Install mysql-common on Rocky Linux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install mysql-common
using yum
by running the following command:
sudo yum -y install mysql-common
How To Uninstall mysql-common on Rocky Linux 8
To uninstall only the mysql-common
package we can use the following command:
sudo dnf remove mysql-common
mysql-common Package Contents on Rocky Linux 8
/usr/lib64/mysql
/usr/share/doc/mysql-common
/usr/share/doc/mysql-common/COPYING.Google
/usr/share/doc/mysql-common/COPYING.Percona
/usr/share/doc/mysql-common/README
/usr/share/doc/mysql-common/README.mysql-docs
/usr/share/doc/mysql-common/README.mysql-license
/usr/share/licenses/mysql-common
/usr/share/licenses/mysql-common/LICENSE
/usr/share/mysql
/usr/share/mysql/charsets
/usr/share/mysql/charsets/Index.xml
/usr/share/mysql/charsets/README
/usr/share/mysql/charsets/armscii8.xml
/usr/share/mysql/charsets/ascii.xml
/usr/share/mysql/charsets/cp1250.xml
/usr/share/mysql/charsets/cp1251.xml
/usr/share/mysql/charsets/cp1256.xml
/usr/share/mysql/charsets/cp1257.xml
/usr/share/mysql/charsets/cp850.xml
/usr/share/mysql/charsets/cp852.xml
/usr/share/mysql/charsets/cp866.xml
/usr/share/mysql/charsets/dec8.xml
/usr/share/mysql/charsets/geostd8.xml
/usr/share/mysql/charsets/greek.xml
/usr/share/mysql/charsets/hebrew.xml
/usr/share/mysql/charsets/hp8.xml
/usr/share/mysql/charsets/keybcs2.xml
/usr/share/mysql/charsets/koi8r.xml
/usr/share/mysql/charsets/koi8u.xml
/usr/share/mysql/charsets/latin1.xml
/usr/share/mysql/charsets/latin2.xml
/usr/share/mysql/charsets/latin5.xml
/usr/share/mysql/charsets/latin7.xml
/usr/share/mysql/charsets/macce.xml
/usr/share/mysql/charsets/macroman.xml
/usr/share/mysql/charsets/swe7.xml
References
Summary
In this tutorial we learn how to install mysql-common
on Rocky Linux 8 using yum and dnf.