Yum: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 16: Line 16:
=Recipes=
=Recipes=


==Find Packages that Might Contain a Certain Command==
==Queries==
 
===Find Packages that Might Contain a Certain Command===


<pre>
<pre>
Line 22: Line 24:
</pre>
</pre>


==Find Whether a Package is Installed==
===Find Whether a Package is Installed===


<pre>
<pre>
Line 34: Line 36:
httpd.x86_64                    2.4.6-40.el7                @rhel-7-server-rpms
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
httpd-tools.x86_64              2.4.6-40.el7                @rhel-7-server-rpms
</pre>
===List of Everything Installed===
<pre>
yum info
</pre>
</pre>



Revision as of 19:49, 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 Repository

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

Update All Packages

yum -y update

Uninstall a Package

yum remove <package-name>