Product SiteDocumentation Site

7.2.2. Ejemplos de uso

Abajo ls es un alias para list, lsi es un alias para ls installed y a su vez lsu es un alias para list updates.
Lista todos los paquetes, instalados y disponibles.
# 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
Lista los paquetes instalados.
# 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
Lista las actualizaciones disponibles.
# 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
Actualizar un paquete.
# yum up curl
...
Dependencias resueltas

=============================================================================
 Paquete         Arquitectura   Versión                Repositorio     Tamaño
=============================================================================
Actualizando:
 curl            x86_64         7.20.1-4.fc13          updates         203 k
Actualizando para las dependencias:
 libcurl         i686           7.20.1-4.fc13          updates         181 k
 libcurl         x86_64         7.20.1-4.fc13          updates         175 k

Resumen de la transacción
=============================================================================
Upgrade       3 Package(s)

Tamaño total de la descarga: 559 k
Está de acuerdo [s/N]:s
...
Alias disponibles
Hay muchos alias predefinidos en /etc/yum/aliases.conf que puede usar y por supuesto puede agregar nuevos. Usando yum alias puede listar los alias configurados, de caja esto lo que obtiene:
# yum alias
Complementos cargados:aliases, appmarket, download-order, downloadonly,
                    : filter-data, keys, list-data, presto, verify
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
Agregar alias con yum alias
# yum alias ver version
...
alias done
# yum alias ver 
...
Alias ver = version
alias done