what is YUM? 10 useful YUM commands in RedHat/CentOS/Fedora Linux

yum is a package manager for Linux systems, specifically for systems that use the RPM (Red Hat Package Manager) package format. It is commonly used on Red Hat, Fedora, and CentOS distributions. yum stands for “Yellowdog Updater, Modified”.

yum is a command-line tool that allows users to install, update, and remove software packages on their system. It also has the ability to manage software groups, search for packages, and check for updates. It automatically resolves dependencies, which means that if a package depends on another package to run, yum will automatically install that package as well. This makes it easier for users to install and manage software on their systems.

yum is designed to work with a central repository of software packages, which makes it easy to install new software and keep it updated. It also has the ability to install software from other repositories, which can be useful for installing software that is not included in the official repositories.

Here are some commonly used yum commands and their examples:

  1. yum update – updates all packages on the system to the latest version
  2. yum install [package name] – installs a specific package on the system
  3. yum remove [package name] – removes a specific package from the system
  4. yum search [keyword] – searches for packages containing a specific keyword
  5. yum list – lists all installed packages on the system
  6. yum clean all – clears the yum cache
  7. yum check-update – checks for updates to installed packages
  8. yum groupinstall [group name] – installs a group of packages
  9. yum groupremove [group name] – removes a group of packages
  10. yum history – shows the history of yum transactions

Examples:

  • yum install nano – installs the nano text editor
  • yum remove httpd – removes the Apache web server package
  • yum search php – searches for packages containing the keyword “php”
  • yum groupinstall "Development Tools" – installs a group of development tools
  • yum history undo 6 – undo the transaction 6

Please note that yum commands must be run as root or with superuser privileges.

Leave a Reply

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