Yum: Difference between revisions
Line 15: | Line 15: | ||
=Yum Repository= | =Yum Repository= | ||
|How can I create a yum repository? [http://yum.baseurl.org/wiki/Faq#Q.11:HowcanIcreateayumrepository] | |||
{{{ | |||
/etc/yum.repos.d/ | |||
}}} | |||
<font color=red> | |||
yum will get the package from the repository listed first in the yum.conf file. | |||
</font> | |||
=Recipes= | =Recipes= |
Revision as of 19:59, 4 April 2017
External
Internal
Overview
yum is an interactive, rpm-based package manager. It can automatically perform system updates, including dependency analysis and obsolete processing based on repository metadata. It can also perform installation of new packages, removal of old packages and perform queries on the installed and/or available packages among many other commands/services.
yum logs in /var/log/yum.log.
Yum Repository
|How can I create a yum repository? [1]
{{{
/etc/yum.repos.d/
}}}
yum will get the package from the repository listed first in the yum.conf file.
Recipes
Queries
Find Packages that Might Contain a Certain Command
yum provides sealert
Find Whether a Package is Installed
yum list installed | grep <package-name>
Example of positive hit:
[root@ns ~]# yum list installed | grep httpd httpd.x86_64 2.4.6-40.el7 @rhel-7-server-rpms httpd-tools.x86_64 2.4.6-40.el7 @rhel-7-server-rpms
List of Everything Installed
yum info
Information about a Specific Package
yum info <package-name>
This can be used for information on packages that already have been installed or on package that has't been installed yet. If the package has been installed, yum info will report Installed Packages, otherwise will say Available.
Generic Search
yum search <string>
Update All Packages
yum -y update
Update a Package
yum update <package-name>
Install a Package
yum install <package-name>
Uninstall a Package
yum remove <package-name>