Below ls
is an alias for list
, lsi
is an alias for ls installed
and lsu
is an alias for list updates
.
Lists all packages, whether installed or available.
# yum ls
...
zziplib.x86_64 0.13.49-8.fc12 fedora
zziplib-devel.i686 0.13.49-8.fc12 fedora
zziplib-devel.x86_64 0.13.49-8.fc12 fedora
zziplib-utils.x86_64 0.13.49-8.fc12 fedora
zzuf.x86_64 0.13-1.fc13 fedora
Lists installed packages.
# yum lsi
...
zip.x86_64 3.0-1.fc13 @anaconda-InstallationRepo.x86_64
zlib.i686 1.2.3-23.fc12 @fedora/12
zlib.x86_64 1.2.3-23.fc12 @anaconda-InstallationRepo.x86_64/12
zlib-devel.x86_64 1.2.3-23.fc12 @fedora/12
zvbi.x86_64 0.2.33-4.fc12 @fedora/12
Lists all available updates.
# yum lsu
...
curl.x86_64 7.20.1-4.fc13 updates
libcurl.i686 7.20.1-4.fc13 updates
libcurl.x86_64 7.20.1-4.fc13 updates
Updates a package.
# yum up curl
...
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Updating:
curl x86_64 7.20.1-4.fc13 updates 203 k
Updating for dependencies:
libcurl i686 7.20.1-4.fc13 updates 181 k
libcurl x86_64 7.20.1-4.fc13 updates 175 k
Transaction Summary
=============================================================================
Upgrade 3 Package(s)
Total download size: 559 k
Is this ok [y/N]:
...
Available alias
There are many predefined alias in /etc/yum/aliases.conf
you can use, and of course, you can add new ones. Using yum alias
you can list the configured aliases, in this case you get:
# yum alias
Loaded plugins: aliases, filter-data, presto
Alias ALL = --enablerepo=development --enablerepo=updates-testing --enablerepo=fedora-source --enablerepo=updates-source --enablerepo=development-source --enablerepo=updates-testing-source --enablerepo=fedora-debuginfo --enablerepo=updates-debuginfo --enablerepo=development-debuginfo --enablerepo=updates-testing-debuginfo
Alias ALLDBG = --enablerepo=fedora-debuginfo --enablerepo=updates-debuginfo --enablerepo=development-debuginfo --enablerepo=updates-testing-debuginfo
Alias ALLSRC = --enablerepo=fedora-source --enablerepo=updates-source --enablerepo=development-source --enablerepo=updates-testing-source
Alias DBG = --enablerepo=fedora-debuginfo --enablerepo=updates-debuginfo
Alias DEV = --enablerepo=development
Alias DEVDBG = --enablerepo=development-debuginfo
Alias DEVSRC = --enablerepo=development-source
Alias DUPS = --showduplicates
Alias FORCE = --skip-broken --disableexcludes=all
Alias SEC = --security
Alias SRC = --enablerepo=fedora-source --enablerepo=updates-source
Alias UPT = --enablerepo=updates-testing
Alias UPTDBG = --enablerepo=updates-testing-debuginfo
Alias UPTSRC = --enablerepo=updates-testing-source
Alias chk = check-update
Alias dbg-inst = --enablerepo=fedora-debuginfo --enablerepo=updates-debuginfo install
Alias dbg-install = --enablerepo=fedora-debuginfo --enablerepo=updates-debuginfo install
Alias down = downgrade
Alias force-inst = --skip-broken --disableexcludes=all install
Alias force-install = --skip-broken --disableexcludes=all install
Alias force-up = --skip-broken --disableexcludes=all upgrade
Alias force-update = --skip-broken --disableexcludes=all update
Alias force-upgrade = --skip-broken --disableexcludes=all upgrade
Alias h = history
Alias hi = history info
Alias hl = history list
Alias hs = history summary
Alias in = install
Alias inst = install
Alias ls = list
Alias lsa = list available
Alias lsi = list installed
Alias lssu = --security list updates
Alias lsu = list updates
Alias lupi = list-updateinfo
Alias rein = reinstall
Alias rm = remove
Alias up = upgrade
Alias v = version
alias done
Add an alias with yum alias
# yum alias ver version
...
alias done
# yum alias ver
...
Alias ver = version
alias done