Yellow dog Updater, Modified (YUM) – open the console manager of RPM-packages.
YUM is designed for the following tasks:
– Find packages in the repositories;
– Installation of packages from the repositories;
– Installing packages from .rpm files with a resolution of dependencies using the repository;
– System update;
– Remove unwanted software.
To find installed packages using the options list, search, provide.
With the option list is searched for a package by name. Example:
# Yum list package_name
You can use substitution values with the symbol *, screening it with the \ character:
# Yum list packagen \ *
* Instead, you can use the? Character that replaces any single character in the search:
# Yum list mysq \?
Available Packages
mysql.x86_64 5.1.73-3.el6_5 updates
Search package repositories by its name (perhaps incomplete words) and in its description:
# Yum search squid
squid.x86_64: The Squid proxy caching server
squidguard.x86_64: Combined filter, redirector and access controller plugin for squid
squidguard-blacklists.noarch: Regularly updated blacklists for use with squidguard
calamaris.noarch: Squid native log format (NLF) analyzer and report generator
sarg.x86_64: Squid usage report generator per user / ip / name
Provides option is used to find the package containing the specified file in the search / directory. For example, you want to know which package a file belongs httpd.conf:
# Yum provides * / httpd.conf
httpd-2.2.15-15.el6.centos.1.i686: Apache HTTP Server
Repo: base
How to install a CentOS:
# Yum install mc
You can specify multiple packages to be installed, separated by spaces.
What would YUM did not request the setting of the package and / or its dependencies – use the key -y:
# Yum -y install mc
How to reinstall the package in CentOS:
# Yum reinstall packagename
How to install rpm-package in CentOS:
# Yum localinstall nginx-2.25.i386.rpm
How to update the installed package in CentOS:
# Yum update packagename
How to update all the packages in CentOS:
# Yum update
How to view a list of all installed packages:
# Yum list installed
How to view a list of installed packages that can be updated:
# Yum check-update
How to perform a downgrade package to its previous version:
# Yum downgrade packagename
How to remove the installed package from the system:
# Yum remove packagename
YUM and repositories
Show a list of active directory repositories of /etc/yum.repos.d/:
# Yum repolist
Show a list of all (including inactive) repositories from the catalog /etc/yum.repos.d/:
# Yum repolist all
Get information on all installed packages:
# Yum info
For a single package:
# Yum info packagename
How to delete a package from the package list for updates:
– Open the file for editing /etc/yum.conf, and add a line to it:
exclude = packagename, packagename2
How do I view a list of package dependencies:
# Yum deplist packagename
View a list of recent actions YUM:
# Yum history
Service commands YUM package manager
How to clear the cache YUM:
# Yum clean all
Recreate the cache:
# Yum makecache
How to view the list of packages on the date of their installation / upgrade:
# Rpm -qa -last | less