Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| centos_package_management [2018/03/04 18:58] – [Adding EPEL repo] rpjday | centos_package_management [2018/11/08 14:21] (current) – [Basic rpm querying] rpjday | ||
|---|---|---|---|
| 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 |
| - | | + | |
| - | | + | Import public key: |
| - | /etc pki | + | |
| - | $ | + | < |
| + | # rpm --import https:// | ||
| + | </ | ||
| + | |||
| + | Install ELRepo: | ||
| + | |||
| + | < | ||
| + | # rpm -Uvh https:// | ||
| + | </ | ||
| + | |||
| + | ===== Basic rpm querying ===== | ||
| + | |||
| + | Starting off: | ||
| + | |||
| + | < | ||
| + | $ rpm -qa | ||
| + | $ rpm -qa " | ||
| + | $ rpm -qf / | ||
| + | $ rpm -q gzip | ||
| + | $ rpm -ql gzip | ||
| + | $ rpm -qfl / | ||
| + | </code> | ||
| + | |||
| + | Querying a package: | ||
| + | |||
| + | < | ||
| + | $ rpm -ql gzip | ||
| + | $ rpm -qi gzip | ||
| + | $ rpm -qR gzip | ||
| + | $ rpm -q --changelog gzip | ||
| + | |||
| + | $ rpm -qc httpd | ||
| + | $ rpm -qd httpd | ||
| + | $ rpm -q --scripts httpd | ||
| + | </ | ||
| + | |||
| + | ===== (Example) How to install ReiserFS ===== | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | < | ||
| + | $ rpm --import https:// | ||
| + | $ rpm -Uvh http:// | ||
| + | $ yum update | ||
| + | $ yum install kmod-reiserfs reiserfs-utils | ||
| + | </ | ||