Linux Yum handy commands for Amazon Linux, Centos, RHEL Linux
- Show Repository list
sudo yum repolist
sudo yum repolist all (includes disabled also) - List all packages from all repos
sudo yum list - List packages matching specific name pattern
sudo yum list “mysql*” - install a package
sudo yum install mysql-community-server - Remove packages based based on a name pattern
sudo yum remove “mysql*” - Show duplicates of a package
yum list php –showduplicates - Install package from a specific repo (e.g. remi-php73)
yum –disablerepo “*” –enablerepo “remi-php73” php