Tag Archives: commands

Yummy Yum Commands from CentOS

Cheatsheet for often used YUM Commands:

  • check-update   Check for available package updates
  • clean              Remove cached data
  • deplist            List a package’s dependencies
  • downgrade      downgrade a package
  • erase             Remove a package or packages from your system
  • groupinfo        Display details about a package group
  • groupinstall     Install the packages in a group on your system
  • grouplist         List available package groups
  • groupremove   Remove the packages in a group from your system
  • help               Display a helpful usage message
  • info               Display details about a package or group of packages
  • install            Install a package or packages on your system
  • list                List a package or groups of packages
  • localinstall      Install a local RPM
  • provides         Find what package provides the given value
  • reinstall          reinstall a package
  • repolist           Display the configured software repositories
  • resolvedep      Determine which package provides the given dependency
  • search           Search package details for the given string
  • shell              Run an interactive yum shell
  • update           Update a package or packages on your system
  • upgrade         Update packages taking obsoletes into account
  • yum list available
  • yum list updates
  • yum list installed  OR # rpm -qa
  • yum list installed  httpd OR # rpm -qa | grep httpd*
  • yum list all
  • yum list extras

Reference: http://www.cyberciti.biz/faq/rhel-centos-fedora-linux-yum-command-howto/