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:
yum update
– updates all packages on the system to the latest versionyum install [package name]
– installs a specific package on the systemyum remove [package name]
– removes a specific package from the systemyum search [keyword]
– searches for packages containing a specific keywordyum list
– lists all installed packages on the systemyum clean all
– clears the yum cacheyum check-update
– checks for updates to installed packagesyum groupinstall [group name]
– installs a group of packagesyum groupremove [group name]
– removes a group of packagesyum history
– shows the history of yum transactions
Examples:
yum install nano
– installs the nano text editoryum remove httpd
– removes the Apache web server packageyum search php
– searches for packages containing the keyword “php”yum groupinstall "Development Tools"
– installs a group of development toolsyum history undo 6
– undo the transaction 6
Please note that yum commands must be run as root or with superuser privileges.