Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

yum-aliases(1) [centos man page]

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-test- ing"). 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 convention, 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 "recursive" 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)

Check Out this Related Man Page

YUM-VERSIONLOCK.CONF(5) 					   File Formats 					   YUM-VERSIONLOCK.CONF(5)

NAME
yum-versionlock.conf(5) SYNOPSIS
yum-versionlock.conf(5) is the configuration file for yum-versionlock(1) Yum plugin for excluding packages that aren't listed in the ver- sionlock file. The plugin will walk each line of the versionlock file, parse out the name and version of the package. It will then exclude any package by that name that doesn't match one of the versions listed within the file (or, optionally, any obsoleter of that package). This is basically the same as doing an exclude for the package name itself (as you cannot exclude installed packages), but yum will still see the versions you have installed/versionlocked as available so that "yum reinstall" will still work, etc. It can also work in the oppo- site way, like a fast exclude, by prefixing a '!' character to the version. FILES
/etc/yum/pluginconf.d/versionlock.conf FILE FORMAT
yum-versionlock.conf(5) utilizes configuration options in the form of OPTION=VALUE OPTION
follow_obsoletes This option is a boolean flag which specifies if the versionlock plugin should look at all the obsoletes, and see if any of the packages specified have an obsoleter. If an obsoleter is found then all versions of that package will be excluded. This option is off by default, as yum-versionlock(1) will take some time to do the obsoletes processing, and for non-rename obsoletes any issues you had which kept you at a specific version of a package should be different with another package. OPTION
locklist This option is a string with points to the file which will have the versionlock information in it. Note that the file has to exist (or the versionlock plugin will make yum exit). However it can be empty. AUTHOR
Chitlesh Goorah <chitlesh@fedoraproject.org> James Antill <james@fedoraproject.org> SEE ALSO
yum-versionlock(1) 27 July 2008 YUM-VERSIONLOCK.CONF(5)
Man Page