April 02, 2018

How to use RPM and YUM

❑ RPM : A utility to manage packages. Since the dependence is weak, the related packages must be installed manually.
CommandDescription
rpm -ivh [Package name]Install the package.
rpm -ev [Package name]Remove the package.
rpm -Uvh [Package name]Update the package.


cat repository of yum in How to use RPM and YUM

❑ YUM : A utility to manage packages. Since the dependence is strong, the related packages is installed automatically.
CommandDescription
yum -y install [Package name]Install the package without asking whether to install or not.
yum remove [Package name]Remove the package.
yum update [Package name] Update the package.
yum listPrint all packages list.
yum list installedPrint installed packages list.
yum repolistCheck the repositories of yum.
* repository : The place to store information related to the installation of a packages.
* /etc/yum.repos.d/[File name].repo : The format of each repository file is as shown above. To input "file://" instead of "http://" is possible.
* How to install RPM with yum :  yum install http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm