Go to the version of this page provided by the dnf project
NAME | SYNOPSIS | DESCRIPTION | Explanation of alias to final result conversion | EXAMPLES | AUTHORS | SEE ALSO | COLOPHON |
|
|
yum-aliases(1) yum-aliases(1)
yum aliases plugin
yum [options] alias
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.
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 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.
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
James Antill <[email protected]>
yum-utils(1) yum(1)
This page is part of the yum-utils (Yum Package Manager
utilities) project. Information about the project can be found
at ⟨https://github.com/rpm-software-management/yum⟩. It is not
known how to report bugs for this man page; if you know, please
send a mail to [email protected]. This page was obtained from
the project's upstream Git repository
⟨https://github.com/rpm-software-management/yum-utils.git⟩ on
2023-12-22. (At that time, the date of the most recent commit
that was found in the repository was 2020-03-11.) If you
discover any rendering problems in this HTML version of the page,
or you believe there is a better or more up-to-date source for
the page, or you have corrections or improvements to the
information in this COLOPHON (which is not part of the original
manual page), send a mail to [email protected]
James Antill 31 March 2008 yum-aliases(1)