Yum commands


1. Check and update all the packages:

  • yum check-update
  • yum list updates
  • yum update   (Update but preserve obsolete packages, safer option)
  • yum upgrade (Update plus forcefully remove obsolete packages)

2. Install or update, list and get details of a package:

  • yum install|update|remove pckg
  • yum list|info|search pckg
  • yum provides | whatprovides “/etc/logrotate.conf”
  • yum deplist pckg
  • yum verify pckg
  • repoquery -qil pckg (List contents of the package)

3. List available or installed packages

  • yum list installed|updates|available
  • yum list installed “kernel*”
  • yum list “kernel*”
  • yum verify-all

6. Group of packages

  • yum grouplist
  • yum groupinfo “GNOME Desktop”
  • yum groupinstall “GNOME Desktop”
  • yum groupremove “”GNOME Desktop”

7. Repository list

  • yum repolist

8. Config files

  • /etc/yum.conf
  • /etc/yum.repos.d/
Advertisements

About Ishtiaque

I am IBM Certified Infrastructure Systems Architect, TOGAF 9 Certified, ITIL V3 Foundation certified and Oracle Certified Export in Java Web Component Developer with over 10 years of support and development experience in IBM middleware software and Java. Additionally, have a sound grip in databases, Linux and OpenStack administration. I hold the following certifications: IBM Certified Infrastructure Systems Architect TOGAF 9 Certified Oracle Certified Expert, Java EE6 Web Component Developer Oracle Certified Professional – Java 6 Programmer ITIL v3 Foundation Certified IBM Certified Solution Architect – Cloud Computing Infrastructure V1 IBM Certified System Administrator – WebSphere Portal V8, V7, V6.1, V6 IBM Certified System Administrator – WebSphere Application Server V7, V6.1 IBM Certified System Administrator – AIX V7 IBM Certified System Administrator – WebSphere MQ V7 IBM Certified Deployment Professional – Business Process Manager Advanced V7.5 IBM Certified Solution Advisor – Cloud Computing Architecture V3 IBM Certified Solution Developer – WebSphere Portal V5.1
This entry was posted in LFCS, Linux and tagged , . Bookmark the permalink.