1yum-aliases(1) yum-aliases(1)
2
3
4
6 yum aliases plugin
7
9 yum [options] alias
10
12 This plugin changes other commands in yum, much like the alias command
13 in bash. There are a couple of notable differences from shell style
14 aliases though. The alias command has three forms:
15 * alias
16 * alias command
17 * alias command result
18
19 The first form lists all current aliases with their final result, the
20 second form looks up a "command" and shows it's final result or an
21 error message. The last form creates a new alias.
22
24 When you type an aliased command, like "yum --disableexcludes UPT lsu"
25 using the default aliases, the yum-aliases plugin first takes the first
26 "command", by skipping over any options, and then looks up the result
27 (in this case "UPT" is converted to "--enablerepo=updates-testing"). If
28 there is a match, then it will replace the aliased "command" in the
29 argument list and try again (again skipping over any options). By con‐
30 vention, in the default aliases list, alias "commands" that are in all
31 CAPS only add options so you can join together a chain of them before
32 any real command or aliased command.
33
34 There are two things that can alter the above, if you have the "recur‐
35 sive" configuration option set to off then alias processing will stop
36 after the first alias to command substitution. Also, like in shell
37 aliases, if the result starts with \ then alias processing will stop.
38
40 To create a new alias command called "rm" which does the same thing as
41 the command "remove" use:
42
43 yum alias rm remove
44
45 To always add the --skip-broken --disableexcludes=all --obsoletes
46 options to the update command (but leaving the upgrade option alone),
47 you could use:
48
49 yum alias update \update --skip-broken --disableexcludes=all
50 --obsoletes
51
52 To override the default "up" alias to use the above update command, and
53 never ask for confirmation, you could use:
54
55 yum alias up update -y
56
57
58
60 James Antill <james@and.org>
61
63 yum-utils(1) yum(1)
64
65
66
67James Antill 31 March 2008 yum-aliases(1)