Redhat Package Management - Paiet/Tech-Journal-for-Everything GitHub Wiki
Redhat Packages
- Redhat Package Manager (RPM)
- Developed by Redhat
- Also used by CentOS, Fedora and SuSe
- Software is gathered into a single archive
- Install/Uninstall performed with various utilities
Package Naming Convention
httpd-2.4.6-31.el7.centos.x86_64.rpm
A B C D E
A = Package Name B = Version # C = Build # D = Distribution E = Architecture
x86_64 / amd64 i386 ARM noarch
http://mirror.centos.org/centos/7/os/x86_64/Packages
Install a local package with rpm
rpm -Uvh webmin-1.850-1.noarch.rpm
rpm -ivh webmin-1.850-1.noarch.rpm
-i
Install only (no upgrade) -U
Install or Upgrade -vh
Displays hash marks on the screen to represent progress
Webmin Dependencies yum -y install perl perl-Net-SSLeay openssl perl-IO-Tty
List details of an installed package with rpm
rpm -qi webmin
-q Queries the package if it exists -i Displays information
Removing a package with rpm
rpm -e webmin-1.850-1.noarch.rpm
Installing a package with yum
yum list httpd
yum install httpd
yum info httpd
yum erase httpd
yum repositories
/etc/yum.repos.d/[name].repo
[Webmin]
name=Webmin Distribution Neutral
#baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=1
wget http://www.webmin.com/jcameron-key.asc
rpm --import jcameron-key.asc
yum install webmin