<\/span><\/h2>\nCleaning the yum cache is to reclaim the disk space. With the yum clean command we can clean the package headers, metadata, and packages. To clean all this stuff execute the following commands:<\/p>\n
yum clean headers\r\n\r\nyum clean metadata\r\n\r\nyum clean packages\r\n\r\n<\/pre>\nTo clean all information above in one command, execute the following line:<\/p>\n
yum clean all<\/pre>\n<\/span>3. Search Package<\/span><\/h2>\nTo search some specific package names you can use the following command:<\/p>\n
yum search PACKAGE NAME<\/pre>\nFor example, if we need the MariaDB package, we can simply execute the following line:<\/p>\n
yum search mariadb<\/pre>\nYou will receive the following output, or similar like this:<\/p>\n
[root@vps ~]# yum search mariadb\r\nLoaded plugins: fastestmirror\r\nLoading mirror speeds from cached hostfile\r\n * base: mirror.team-cymru.com\r\n * epel: ftp-chi.osuosl.org\r\n * extras: ftpmirror.your.org\r\n * updates: mirror.team-cymru.com\r\n========================================================================= N\/S matched: mariadb =========================================================================\r\nmariadb-bench.x86_64 : MariaDB benchmark scripts and data\r\nmariadb-devel.i686 : Files for development of MariaDB\/MySQL applications\r\nmariadb-devel.x86_64 : Files for development of MariaDB\/MySQL applications\r\nmariadb-embedded.i686 : MariaDB as an embeddable library\r\nmariadb-embedded.x86_64 : MariaDB as an embeddable library\r\nmariadb-embedded-devel.i686 : Development files for MariaDB as an embeddable library\r\nmariadb-embedded-devel.x86_64 : Development files for MariaDB as an embeddable library\r\nmariadb-libs.i686 : The shared libraries required for MariaDB\/MySQL clients\r\nmariadb-libs.x86_64 : The shared libraries required for MariaDB\/MySQL clients\r\nmariadb-server.x86_64 : The MariaDB server and related files\r\nanope-mysql.x86_64 : MariaDB\/MySQL modules for Anope IRC services\r\nmariadb.x86_64 : A community developed branch of MySQL\r\nmariadb-test.x86_64 : The test suite distributed with MariaD\r\npercona-xtrabackup.x86_64 : Online backup for InnoDB\/XtraDB in MySQL, Percona Server and MariaDB\r\n<\/pre>\n<\/span>4. Install Package<\/span><\/h2>\nNext, we will install the MariaDB package, since we successfully listed with the search command above. To install the mariadb-server<\/b> package execute the following command:<\/p>\nyum install mariadb-server<\/pre>\n<\/span>5. Reinstall Package<\/span><\/h2>\nLet’s say that the installation of the previous command was somehow compromised and the package was not installed properly. We can easily reinstall the package with the command below:<\/p>\n
yum reinstall mariadb-server<\/pre>\n<\/span>6. Update Specific Package<\/span><\/h2>\nAt the beginning of this tutorial we updated the whole system for the packages to get their latest versions available. We can update only a specific package if we do not want to wait longer for the update process. To update the MariaDB package execute the following command:<\/p>\n
yum update mariadb-server<\/pre>\n<\/span>7. Information about a Specific Package<\/span><\/h2>\nIf we want to know more about some package, about its version, size, release or someting else we can execute the following command:<\/p>\n
yum info mariadb-server<\/pre>\nYou should receive output similar to this:<\/p>\n
[root@vps ~]# yum info mariadb-server\r\nLoaded plugins: fastestmirror\r\nLoading mirror speeds from cached hostfile\r\n * base: mirror.team-cymru.com\r\n * epel: ftp-chi.osuosl.org\r\n * extras: ftpmirror.your.org\r\n * updates: mirror.team-cymru.com\r\nInstalled Packages\r\nName : mariadb-server\r\nArch : x86_64\r\nEpoch : 1\r\nVersion : 5.5.68\r\nRelease : 1.el7\r\nSize : 58 M\r\nRepo : installed\r\nFrom repo : base\r\nSummary : The MariaDB server and related files\r\nURL : http:\/\/mariadb.org\r\nLicense : GPLv2 with exceptions and LGPLv2 and BSD\r\nDescription : MariaDB is a multi-user, multi-threaded SQL database server. It is a\r\n : client\/server implementation consisting of a server daemon (mysqld)\r\n : and many different client programs and libraries. This package contains\r\n : the MariaDB server and some accompanying files and directories.\r\n : MariaDB is a community developed branch of MySQL.\r\n<\/pre>\n