0% found this document useful (0 votes)
112 views2 pages

Yum Command Cheat Sheet

Uploaded by

Fabrizio Bamba
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
112 views2 pages

Yum Command Cheat Sheet

Uploaded by

Fabrizio Bamba
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 2
YUM COMMAND CHEAT SHEET for Red Hat Enterprise Linux YUM QUERIES 'SUBCOMMAND help ‘DESCRIPTIONS AND TASKS Display yum commands and options yu help Show yur subcommands and options Individual packages List nfo provides search updateinto List package names from repositories yum List available Ustallavalable packages yum List installed {ist all installed packages yum List all {st installed and available packages yum List kernel {ist installed and available kernel packages Display information about a package yum info vsftpd Ustinfo about vsftpd package Display dependencies tor a package yum deplist nfs-utils {ist dependencies and packages providing them Find packages that provide the queried file yum provides “*bin/top” Show package that contains top commana yum provides “*/READNE. top’ Show package contaning README.op fhe ‘Search package names and descriptions for aterm yum search sanba Find packages with samba in name or description Get information about available package updates ‘yum updateinfo security Get info on available security updates Groups of packages, grouplist ‘groupinfo check-update List names of installed and avaiable package groups Display description and contents of a package group yum groupinfo “Web Server” See packages in Web Server group Query repesiteres for available package updates Psa ne SSUBCOMMAND repolist repointo Fep0-pkos, mmakecache [DESCRIPTIONS AND TASKS Display enabled software repositories, Display information about enabled yum repositories * yun repoinfo rhel-7-server -rpas. See info on rhel7-server-rpms repo ‘Work with packages in a particular repository * yum repo-pkgs my-rpas List {ist packages from my-rpms repo yum repo-pkgs ay-rpas install. Install all packages from my-rpms repo ‘Yun repo-pkgs sy-rpas renove Remove all packages from my-"pms repo Download yum repository data to cache FEMUR ‘SUBCOMMAND check history fssnapshot fs ‘SUBCOMMAND “instal update vupdate-to upgrade ocalinstall ‘downgrade reinstall, autorenove ‘roupinstall DESCRIPTIONS AND TASKS ‘Check the iocal RPM database for problems (runs fora long time) View and use yum transactions yun history List List all yum instal, update and erase actions yun history info 3 Show details of yum transaction 3 yun history undo 3 Undo the yum action from transaction 3 yun history redo 3 Redo the undone yum action from transaction3 Clear out cached package data yun clean packages Delete packages saved in cache yun clean all Clean out a packages and meta data from cache LUstLVM stapshots(heips rol backatter package updates) {Acton filesystem (prevent doc or language file install (on minimal systems) yun fs filters Uist enabied filesystem fiters yun fs. documentation ter all docs from being installed (careful) a DESCRIPTIONS AND TASKS Tnstall@ package froma repository to your system yun install vsftpd Install the vsttpd package Update one or all packages on your system yun update Update all packages with available updates yun update httpd Update the nttpd package (it available) ‘yun update --security Apply security-related package updates Update one or all packages toa particular version Update packages taking obsoletes info account Install a package froma loca file, tp, or ftp yu localinstall abe-1-1.5686.rpm Install abc package trom local directory yun localinstall http: /ayrepo/abe-1- Installabe trom FTP ste 1686.1 Downgrade a package to an earlier version ‘yun downgrade abe Bowngrade the abc package to an earlier version Reinstall the current version of a package yun reinstall util-Limox Reinstall utiinux to replace any deleted files) Remove one package andinstall another yun swap ftp ftp Remove ftp package and instal ftp package Erase a package (and possibly dependencies) from vour system yun renove vsftpd Remove the vsftpd package and dependencies Same as erase Some as erase pus removes addtional unneeded packages * yun autorenove httpd Remove httpd and other unneeded packages Install all packages in the selected group yun groupinstall “Web server” Install Web Server packages PS SUBCOMMANO DESCRIPTIONS AND TASKS. Pee ‘COMMAND DESCRIPTION Tangavailable List all avaliable languages = Langinfo List packages available fora language * ‘yun langinfo es Uist packages associated with Spanish language ‘anginstall Install packages associated witha particular language * ‘yum langinstall es Install packages associated with Spanish language angList List languages that are installed * Jangresove Remove installed language packs fora language * ‘yum langrenove es Remove packages associated with Spanish language Eee ed ‘OPTION DESCRIPTION “y_ Assume yesif prompted ‘Assume no it prompted +4 Produce no output -v_ Produce extra debugging output <-noplugins Run command without loading any yum plugins | s-disableplugin= Disable a particular plugin for single command ‘yun --disableplugin=langpacks info vsftpd s-enableplugin= Enable a plugin that is installed but currently, disabled yun --enableplugin=ps ps Show packages tied to running processes ‘enablerepo= Enable currently disabled repo fora single ‘command (wildcards okay) ‘yum install docker \ “-enablerepo=rhel-7-server-extras-rpm =-disablerepo= Disable currently enabled repo fora single ‘command (wildcards okay) ‘yun List available --disablerepo=epel =-downloadonly Download to /var/cache/yum/arch/prod|repoy packages/, but don't instal ‘yum install --dovmlosdonly vsftpd Download vstted package to cache Replace 272 with vendors, rom-groups, fond others to iter output ches, Display changelog information of package apg © 2014 eat ne. Ra at, Red at rere Lin he Shuman oo. and. ae radars ot Reo repeteresinine Us ana nr curr Unt te regeteres ager tin avalos inthe US and ote cones. Tind-repos-of-install Find which repository @ package comes trom’ needs-restarting Find processes that have been updated ‘andneed to restart repoclosure Get unmet dependency ist from repositories repoquery Query remote repos and ocal RPM database epoquery --requires --resolve bash ‘Show dependent packages reposyne Synchronize yum repositories to @ local airectory reposyne -r rhel-atonic-host-beta-rpas Get packages from repo repotrack Download a packege andallits dependencies. ‘show-installed List installed RPM packages and statistics verifytree Check the local yum repesitory for consistency. ‘yun-conplete-transaction Try to complete yum transactions that didnt finish yumi Check or change the yum database yundowloader Download a package from arepo to current directory Type man yum for futher details on all yum subcommands and options * New options for RHEL 7 “== Some options need yum plugins. Type yum List “yum-plugin** to see avaliable plugin. gag redhat.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy