Professional Documents
Culture Documents
Chapter 4 Managing Packages Seak
Chapter 4 Managing Packages Seak
Managing Packages
By Msc. Khiev Sopheaktra Chapter 04: Managing Packages Edited by Mr. Kim No
RPM Package Management
•
RPM (Red Hat Package Manager) is an default open
source and most popular package management utility
for Red Hat based systems like (RHEL, CentOS and
Fedora).
•
The tool allows system administrators and users to
install, update, uninstall, query, verify and manage
system software packages in Unix/Linux operating
systems.
•
The RPM formerly known as .rpm file, that includes
compiled software programs and libraries needed by
the packages. This utility only works with packages that
built on .rpm format.
By Msc. Khiev Sopheaktra Chapter 04: Managing Packages 2
RPM Package Management
Query packages:
How to check an Installed RPM Package
•
Using -q option with package name, will show
whether an rpm installed or not.
# rpm -q samba
•
To install a package and its dependencies:
– yum install package
#yum install httpd
•
To install an update for an individual package:
– yum update package
•
To update all packages run:
– yum update
By Msc. Khiev Sopheaktra Chapter 04: Managing Packages 8
RPM Package Management
How to Remove a RPM Package
To un-install an RPM package, for example we
use the package name not the original package
name samba-3.6.9-151.el6.i686.rpm The -e
(erase) option is used to remove package.
# rpm -e samba
#rpm -e vsftpd
30 05 1-31/3 * * execute_this
30 05 */3 * * execute_this
0 */2 * * * execute this
By Msc. Khiev Sopheaktra Chapter 04: Managing Packages and Process
grep
THANKS
24