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/04 18:53]
rpjday [Adding EPEL repo]
centos_package_management [2018/11/08 14:21] (current)
rpjday [Basic rpm querying]
Line 1: Line 1:
 ===== Overview ===== ===== Overview =====
  
-Hints and examples of adding new repos, installing additional packages, etc.+Basic and advanced package management.
  
-===== Adding EPEL repo =====+===== ELRepo ​=====
  
-<​file>​ +  * [[http://​elrepo.org/​tiki/​tiki-index.php|ELRepo.org]]
-$ sudo yum install epel-release +
-</file>+
  
-<file+Import public key: 
-$ rpm -ql epel-release + 
-/etc +<code> 
-+# rpm --import https://​www.elrepo.org/​RPM-GPG-KEY-elrepo.org (external link) 
-</file>+</​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>
centos_package_management.1520189610.txt.gz · Last modified: 2018/03/04 18:53 by rpjday