Yum command
From NetworkStuff
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.
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 -
Usage Examples
Interactive Functions
Usage Notes
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.
Typical Output
Availability
Most Red Hat based Linux platforms, including;
- Fedora
- CentOS
- Mandriva
Related Files
The yum executable is normally found here: /usr/bin/yum
Related Commands
The Linux command equivalent is the
Command Alternatives
Use the apt-get command instead on most Debian based Linux platforms, including;
- Ubuntu
Related Articles
Information on other Linux commands
Information on F5 BigIP commands
Information on Cisco commands
Information on Windows commands
Information on Vyatta commands
Information on Extreme commands
Information on Nortel commands
Information on Zebra commands
Information on Secure Platform commands
Information on Blue Coat SGOS commands
Information on Nokia IPSO commands




