yum-aliases man page on RedHat

Man page or keyword search:  
man Server   29550 pages
apropos Keyword Search (all sections)
Output format
RedHat logo
[printable version]

yum-aliases(1)							yum-aliases(1)

NAME
       yum aliases plugin

SYNOPSIS
       yum [options] alias

DESCRIPTION
       This  plugin changes other commands in yum, much like the alias command
       in bash. There are a couple of notable  differences  from  shell	 style
       aliases though. The alias command has three forms:
	* alias
	* alias command
	* alias command result

       The  first  form lists all current aliases with their final result, the
       second form looks up a "command" and shows  it's	 final	result	or  an
       error message. The last form creates a new alias.

Explanation of alias to final result conversion
       When  you type an aliased command, like "yum --disableexcludes UPT lsu"
       using the default aliases, the yum-aliases plugin first takes the first
       "command",  by  skipping over any options, and then looks up the result
       (in this case "UPT" is converted to "--enablerepo=updates-testing"). If
       there  is  a  match,  then it will replace the aliased "command" in the
       argument list and try again (again skipping over any options). By  con‐
       vention,	 in the default aliases list, alias "commands" that are in all
       CAPS only add options so you can join together a chain of  them	before
       any real command or aliased command.

       There  are two things that can alter the above, if you have the "recur‐
       sive" configuration option set to off then alias processing  will  stop
       after  the  first  alias	 to  command substitution. Also, like in shell
       aliases, if the result starts with \ then alias processing will stop.

EXAMPLES
       To create a new alias command called "rm" which does the same thing  as
       the command "remove" use:

	      yum alias rm remove

       To  always  add	the  --skip-broken  --disableexcludes=all  --obsoletes
       options to the update command (but leaving the upgrade  option  alone),
       you could use:

	      yum  alias  update  \update  --skip-broken --disableexcludes=all
	      --obsoletes

       To override the default "up" alias to use the above update command, and
       never ask for confirmation, you could use:

	      yum alias up update -y


AUTHORS
	      James Antill <james@and.org>

SEE ALSO
       yum-utils(1) yum(1)

James Antill			31 March 2008			yum-aliases(1)
[top]

List of man pages available for RedHat

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net