RPM vs. YUM: Learn the Difference

RPM and YUM are package management systems created for Red Hat-based
Linux distributions. A package management system is a collection of tools used
for automating package installation, updating, and removal.

RPM: (RedHat Package Manager)

RPM stands for Redhat package Manager. Using RPM, You can install, uninstall and query individual software package.
https://rpmfind.net/linux/rpm2html/search.php?query=rpm

  1. RPM can install only single package at a time
    Ex: # rpm install package_name
  2. RPM cannot resolve the dependency like yum
  3. Cannot rollback with RPM
  4. To install, upgrade or delete an .rpm package using RPM
# rpm -i package_name
# rpm -u package_name
# rpm -ivh package_name
# rpm -evh package_name

Note:- v = verbose and h for = hash to show progress

5. To query all the installed package

# rpm -qa
# rpm -qa | grep package_name

6. More into about the package

# rpm -qi httpd
# rpm -qi sshd

7. Info about config files for a package

# rpm -qc package_name

YUM : (Yellow dog updater modified)

YUM stands for yellow – dog updater modified

  1. Yum is the primary package management tool for redhat
  2. Yum can install multiple pakcage at a time
    Ex:- yum install httpd vsftpd
  3. Yum can resolve dependencies automatically.
  4. Yum can rollback any changes.

5. How to install and remove a package

# yum install samba -y
# yum remove httpd

6. How to upgrade or update a package

# yum upgrade package_name
# yum update vsftpd

7. What is the difference between Yum update & upgrade
Update:- keep the old package, we can roolback
Upgrade: – will delete the old package

    8. You can see all the option using

    # yum -option

    9. To check the available update for package

    # yum check-update

    Leave a Reply

    Your email address will not be published. Required fields are marked *