Log in Go to the main page Page History Go to the file list Go to the site toolbox

Yum command

From NetworkStuff


Linux-logo-large.png

Contents


A CLI command available on Red Hat and derivative Linux platforms; used to manage RPM software packages. Management functions include software package installation, update, upgrade, information display and removal.

Preferences-desktop-font-v2-22.png Usage Syntax

yum command [options] [package_name]

Common commands include;

  • list [options] -
list options include;
  • all - display all available and installed packages
  • glob_exp1 -
  • available [glob_exp1] - display all packages in the yum repositories available to be installed
  • update [glob_exp1] - display all packages with updates available in the yum repositories
  • installed [glob_exp1] - display all packages installed, or packages installed that match the specified glob_exp1
  • extras [glob_exp1] - display the packages installed that are not available in any yum repository listed in the config file
  • obsoletes [glob_exp1] - display the packages installed that are obsoleted by packages in any yum repository listed in the config file
  • recent - display packages recently added into the repositories
  • update [package_name] -
  • check-update -
  • remove package_name -
  • erase package_name -
  • search search_string -

Vm-power-on-medium.png Usage Examples

Preferences-desktop-keyboard-shortcuts-medium.png Interactive Functions

Accessories-text-editor-v2-medium.png Usage Notes

Accessories-text-editor-v2-medium.png Linux Usage Notes

With most Linux or Unix commands;

  • Non root users may need to prefix commands with the sudo command, for example: sudo chmod 644 *
  • Brief help can be displayed using the -h or --help parameter, for example: chmod --help
  • A full command manual can be displayed using the man command followed by the command name, for example: man chmod
  • Sometimes 'info' pages are used instead of or to provide more information than man pages; for example: info chmod
  • Version information can normally be display using the -v, -V or --version parameter, for example: chmod --version. However, this paramater is also frequently used to display verbose output.

Utilities-terminal-medium-v2.png Typical Output

Software-update-available-v2-22.png Availability

Most Red Hat based Linux platforms, including;

  • Fedora
  • CentOS
  • Mandriva

Folder-medium.png Related Files

The yum executable is normally found here: /usr/bin/yum

Icemon-medium.png Related Commands

The Linux command equivalent is the Tux-small.png

Object-flip-vertical-medium.png Command Alternatives

Use the apt-get command instead on most Debian based Linux platforms, including;

  • Ubuntu

Icemon-medium.png Related Articles

Information on other Linux commands Tux-small.png

Information on F5 BigIP commands F5-logo-small.png

Information on Cisco commands Cisco-logo-small.png

Information on Windows commands Preferences-system-windows-small.png

Information on Vyatta commands Vyatta-logo-small.png

Information on Extreme commands Extreme-logo-small.png

Information on Nortel commands Nortel-logo-small.png

Information on Zebra commands

Information on Secure Platform commands

Information on Blue Coat SGOS commands

Information on Nokia IPSO commands


Internet-group-chat-small.png We really do appreciate all feedback so please do send your comments, suggestions or corrections to steve#networkstuff.eu (replacing the # with an @)


Personal tools
This page was last modified on 28 January 2010, at 12:35. - Disclaimers - About Network Stuff
Powered by MediaWiki