20 Linux YUM Commands for Package Management
YUM (Yellowdog Updater Modified) is an open source command-line as well as graphical based package management tool for RPM (RedHat Package Manager) based Linux systems. It allows users and system administrator to easily install, update, remove or search software packages on a systems
Install a Package with YUM
# Install a package called Firefox automatically and install all required dependencies for Firefox yum install firefox yum -y install firefox
Removing a Package with YUM
# Remove a package completely with their all dependencies yum remove firefox yum -y remove firefox
Updating a Package using YUM
# Update it to the latest stable version yum update mysql
List a Package using YUM
# Use the list function to search for the specific package with name yum list openssh
Search for a Package using YUM
# Use search function to search all the available packages to match the name of the package you specified yum search vsftpd
Get Information of a Package using YUM
# Get information of a package before installing it yum info firefox
List all Available Packages using YUM
# List all the available packages in the Yum database yum list | less
List all Installed Packages using YUM
# List all the installed packages on a system yum list installed | less
Yum Provides Function
# Yum provides function is used to find which package a specific file belongs to yum provides /etc/httpd/conf/httpd.conf
Check for Available Updates using Yum
# Find how many of installed packages on your system have updates available yum check-update
Update System using Yum
# Keep your system up-to-date with all security and binary package updates yum update
List all available Group Packages
# Install particular group that will install all the related packages that belongs to the group # List all the available groups yum grouplist
Install a Group Packages
# Install a particular package group yum groupinstall 'MySQL Database'
Update a Group Packages
# Update any existing installed group packages yum groupupdate 'DNS Name Server'
Remove a Group Packages
# Delete or remove any existing installed group from the system yum groupremove 'DNS Name Server'
List Enabled Yum Repositories
# List all enabled Yum repositories in your system yum repolist
List all Enabled and Disabled Yum Repositories
# Display all enabled and disabled yum repositories on the system yum repolist all
Install a Package from Specific Repository
# Install a particular package from a specific enabled or disabled repository # Use --enablerepo option in your yum command yum --enablerepo=epel install phpmyadmin
Interactive Yum Shell
# Yum utility provides a custom shell where you can execute multiple commands yum shell
Clean Yum Cache
# By default yum keeps all the repository enabled package data in /var/cache/yum/ with each sub-directory # Clean all cached files from enabled repository yum clean all
View History of Yum
# View all the past transactions of yum command yum history
Comments
Post a Comment