User Tools

Site Tools


centos_package_management

This is an old revision of the document!


Overview

Basic and advanced package management.

ELRepo

Import public key:

# rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org (external link)

Install ELRepo:

# rpm -Uvh https://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm (external link)

Basic rpm querying

Starting off:

$ rpm -qa
$ rpm -qa "*core*"
$ rpm -qf /usr/bin/gzip
$ rpm -ql gzip
$ rpm -qfl /usr/bin/gzip

Querying a package:

$ rpm -ql gzip
$ rpm -qi gzip
$ rpm -qR gzip
$ rpm -q --changelog gzip
$ rpm -q --scripts httpd

(Example) How to install ReiserFS

How to install ReiserFS:

$ 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
centos_package_management.1541665144.txt.gz · Last modified: 2018/11/08 08:19 by rpjday