Yum: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 13: | Line 13: | ||
<pre> | <pre> | ||
yum list installed | grep <package-name> | yum list installed | grep <package-name> | ||
</pre> | |||
Example of positive hit: | |||
<pre> | |||
[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 | |||
</pre> | </pre> |
Revision as of 22:05, 9 January 2016
Internal
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