• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Yum Command – RPM Based Package Management Utility

by admin

What is Yum?

YUM Stands for Yellowdog Updater Modified. YUM is an interactive, rpm-based package manager. Yum is available in different Linux OS Like Redhat, Centos, Fedora, etc. It can also perform installation of new packages, removal of old packages, and perform queries on the installed and/or available packages among many other commands/services.

Yum Solves the Package dependencies problems which are generally found in RPM Command.

Syntax:

# yum [options] [command] [package ...]

Example 1: Install a Package

In the above command, to install Thunderbird we have to press Y for confirmation, so to avoid this we can pass the ‘y’ option in the yum command so that it automatically confirm and install the package.

# yum -y install thunderbird

Example 2: Remove a Package

Example 3: Check weather any updates are available for your system

Below Command will list no of the packages to be updated:

# yum check-update

To update a particular package to a specific version, use ‘update-to’ option in the yum command.

Example 4: To display information about a specific package

To List the information about available packages, example:

Example 5: Search packages when we know something about the package but aren’t sure of its name

Example 6: To find out which package provides a specific file like ‘/etc/inittab’

Example 7: To install all the packages of specific group

To install all packages of ‘Development tools’ :

# yum groupinstall 'Development tools'

To list all the available groups from all yum repos.

# yum grouplist

Example 8: To view history of a package install

To view the history of a package – what had happened in the past (yum transactions) like when it was installed, upgraded, and removed, use the below command:

Syntax:

# yum history [info/list/packages-list/packages-info/summary] package-Name

Example 9: View and Install security updates

Fo this, we need to first install the security plugin using the below yum command:

# yum install yum-security

To list all Available Security Updates:

# yum list-security

Filed Under: CentOS/RHEL, Linux, Ubuntu

Some more articles you might also be interested in …

  1. How to Password Protect GRUB2 in Oracle Enterprise Linux 7
  2. dnf Command Examples
  3. Understanding dm-Multipath Identifiers in Linux
  4. last Command Examples in Linux
  5. What are sparse files in Linux
  6. Understanding the /etc/fstab file in Linux
  7. CentOS / RHEL : How to install Open Virtual Machine Tools for Virtual machines Hosted on VMWare
  8. losetup: command not found
  9. How to disable ACPI in CentOS/RHEL 7
  10. CentOS / RHEL 6 : how to start the services interactively during boot (to disable/abort some services)

You May Also Like

Primary Sidebar

Recent Posts

  • pw-cat Command Examples in Linux
  • pvs: command not found
  • pulseaudio: command not found
  • pulseaudio Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright