| |
Installing and removing RedHat packages with YUM
RPM Package naming convention:
(package-name)-(source version)-(package release).(architecture).rpm
For example,
Package name is nano. The source version is 2.3.1. The package release is 10.el7 (Release 10 for RedHat Enterprise Linux 7). Architecture is x86_64.
Exercises
Start your CentOS7 VM, login to its console via
command virsh console CentOS7, and clean the yum cache:
Install package netpbm on it:
Reinstall package netpbm:
Install package acpid
Install YUM utils package:
Now you can run yumdownloader to download packages without installation, for example:
Check available updates for installed packages:
Update package tzdata.noarch
Updating all the installed packages:
To remove an installed package:
The same can be accomplished with:
The YUM cache location and configuration are stored in file /etc/yum.conf
The YUM repositores are defined in directory
/etc/yum.repos.d/*.repo
|
|