User Tools

Site Tools


centos_package_management

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
centos_package_management [2018/03/05 08:34]
rpjday removed
centos_package_management [2018/11/08 14:21] (current)
rpjday [Basic rpm querying]
Line 1: Line 1:
 +===== Overview =====
 +
 +Basic and advanced package management.
 +
 +===== ELRepo =====
 +
 +  * [[http://​elrepo.org/​tiki/​tiki-index.php|ELRepo.org]]
 +
 +Import public key:
 +
 <​code>​ <​code>​
-/etc+# rpm --import https://​www.elrepo.org/​RPM-GPG-KEY-elrepo.org (external link) 
 +</​code>​ 
 + 
 +Install ELRepo: 
 + 
 +<​code>​ 
 +# rpm -Uvh https://​www.elrepo.org/​elrepo-release-7.0-3.el7.elrepo.noarch.rpm (external link) 
 +</​code>​ 
 + 
 +===== Basic rpm querying ===== 
 + 
 +Starting off: 
 + 
 +<​code>​ 
 +$ rpm -qa 
 +$ rpm -qa "​*core*"​ 
 +$ rpm -qf /​usr/​bin/​gzip 
 +$ rpm -q gzip 
 +$ rpm -ql gzip 
 +$ rpm -qfl /​usr/​bin/​gzip 
 +</​code>​ 
 + 
 +Querying a package: 
 + 
 +<​code>​ 
 +$ rpm -ql gzip 
 +$ rpm -qi gzip 
 +$ rpm -qR gzip 
 +$ rpm -q --changelog gzip 
 + 
 +$ rpm -qc httpd 
 +$ rpm -qd httpd 
 +$ rpm -q --scripts httpd 
 +</​code>​ 
 + 
 +===== (Example) How to install ReiserFS ===== 
 + 
 +[[https://​tthtlc.wordpress.com/​2014/​09/​16/​how-to-install-reiserfs-in-centos/​|How to install ReiserFS]]:​ 
 + 
 +<​code>​ 
 +$ rpm --import https://​www.elrepo.org/​RPM-GPG-KEY-elrepo.org 
 +$ rpm -Uvh http://​www.elrepo.org/​elrepo-release-7.0-3.el7.elrepo.noarch.rpm 
 +$ yum update 
 +$ yum install kmod-reiserfs reiserfs-utils
 </​code>​ </​code>​
centos_package_management.1520238875.txt.gz · Last modified: 2018/03/05 08:34 by rpjday