Yum: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 3: Line 3:
* [[Linux#Commands|Linux Commands]]
* [[Linux#Commands|Linux Commands]]


=Find Packages that Might Contain a Certain Command=
=Overview=
 
=Recipes=
 
==Find Packages that Might Contain a Certain Command==


<pre>
<pre>
Line 9: Line 13:
</pre>
</pre>


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


<pre>
<pre>
Line 23: Line 27:
</pre>
</pre>


=Update All Packages=
==Update All Packages==


<pre>
<pre>
Line 29: Line 33:
</pre>
</pre>


=Uninstall a Package=
==Uninstall a Package==


<pre>
<pre>
yum remove <package-name>
yum remove <package-name>
</pre>
</pre>

Revision as of 19:37, 4 April 2017

Internal

Overview

Recipes

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

Update All Packages

yum -y update

Uninstall a Package

yum remove <package-name>