Example: tourism industry

YUM COMMAND - Red Hat Customer Portal

YUM COMMAND CHEAT SHEET for Red Hat Enterprise LinuxYUM QUERIESSUBCOMMANDDESCRIPTIONS AND TASKS helpDisplay yum commands and optionsyum help Show yum subcommands and optionsIndividual packageslistList package names from repositoriesyum list available List all available packagesyum list installed List all installed packagesyum list all List installed and available packagesyum list kernel List installed and available kernel packagesinfoDisplay information about a packageyum info vsftpd List info about vsftpd packagedeplistDisplay dependencies for a packageyum deplist nfs-utils List dependencies and packages providing themprovidesFind packages that provide the queried fileyum provides *bin/top Show package that contains top commandyum provides

yum reinstall util-linux Reinstall util-linux (to replace any deleted files) swap Remove one package and install another yum swap ftp lftp Remove ftp package and install lftp package erase Erase a package (and possibly dependencies) from your system yum remove vsftpd Remove the vsftpd package and dependencies remove Same as erase

Tags:

  Linux

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Transcription of YUM COMMAND - Red Hat Customer Portal

1 YUM COMMAND CHEAT SHEET for Red Hat Enterprise LinuxYUM QUERIESSUBCOMMANDDESCRIPTIONS AND TASKS helpDisplay yum commands and optionsyum help Show yum subcommands and optionsIndividual packageslistList package names from repositoriesyum list available List all available packagesyum list installed List all installed packagesyum list all List installed and available packagesyum list kernel List installed and available kernel packagesinfoDisplay information about a packageyum info vsftpd List info about vsftpd packagedeplistDisplay dependencies for a packageyum deplist nfs-utils List dependencies and packages providing themprovidesFind packages that provide the queried fileyum provides *bin/top Show package that contains top commandyum provides * Show package containing filesearchSearch package names and descriptions for a termyum search samba Find packages with samba in name or descriptionupdateinfoGet information about available package updatesyum updateinfo security Get info on

2 Available security updatesGroups of packagesgrouplistList names of installed and available package groupsgroupinfoDisplay description and contents of a package groupyum groupinfo Web Server See packages in Web Server groupcheck-updateQuery repositories for available package updatesMANAGE YUM REPOSITORIESSUBCOMMANDDESCRIPTIONS AND TASKS repolistDisplay enabled software repositoriesrepoinfoDisplay information about enabled yum repositories *yum repoinfo rhel-7-server-rpms See info on rhel-7-server-rpms reporepo-pkgsWork with packages in a particular repository *yum repo-pkgs my-rpms list List packages from my-rpms repoyum repo-pkgs my-rpms install Install all packages from my-rpms repoyum repo-pkgs my-rpms remove Remove all packages from my-rpms repomakecacheDownload yum repository data to cacheTROUBLESHOOT AND MAINTAIN YUMSUBCOMMANDDESCRIPTIONS AND TASKS checkCheck the local RPM database for problems (runs for a long time)

3 HistoryView and use yum transactionsyum history list List all yum install, update and erase actionsyum history info 3 Show details of yum transaction 3yum history undo 3 Undo the yum action from transaction 3yum history redo 3 Redo the undone yum action from transaction 3clean Clear out cached package datayum clean packages Delete packages saved in cacheyum clean all Clean out all packages and meta data from cachefssnapshotList LVM stapshots (helps roll back after package updates)fsAct on filesystem (prevent doc or language file install on minimal systems)yum fs filters List enabled filesystem filtersyum fs documentation Filters all docs from being installed (careful!)

4 INSTALL, REMOVE AND UPGRADE PACKAGES WITH YUMSUBCOMMANDDESCRIPTIONS AND TASKS installInstall a package from a repository to your systemyum install vsftpd Install the vsftpd packageupdateUpdate one or all packages on your systemyum update Update all packages with available updatesyum update httpd Update the httpd package (if available)yum update --security Apply security-related package updatesupdate-toUpdate one or all packages to a particular versionupgradeUpdate packages taking obsoletes into accountlocalinstallInstall a package from a local file, http, or ftpyum localinstall Install abc package from local directoryyum localinstall http.

5 // Install abc from FTP sitedowngradeDowngrade a package to an earlier versionyum downgrade abc Downgrade the abc package to an earlier versionreinstallReinstall the current version of a packageyum reinstall util- linux Reinstall util- linux (to replace any deleted files)swapRemove one package and install anotheryum swap ftp lftp Remove ftp package and install lftp packageeraseErase a package (and possibly dependencies) from your systemyum remove vsftpd Remove the vsftpd package and dependenciesremoveSame as eraseautoremove Same as erase.

6 Plus removes additional unneeded packages *yum autoremove httpd Remove httpd and other unneeded packagesgroupinstall Install all packages in the selected groupyum groupinstall Web server Install Web Server packagesMANAGE LANGUAGE PACKAGES WITH YUMSUBCOMMANDDESCRIPTIONS AND TASKS langavailable List all available languages *langinfo List packages available for a language *yum langinfo es List packages associated with Spanish languagelanginstall Install packages associated with a particular language *yum langinstall es Install packages associated with Spanish languagelanglist List languages that are installed *langremove Remove installed language packs for a language *yum langremove es Remove packages associated with Spanish languagePOPULAR OPTIONS FOR DIFFERENT YUM COMMANDS **OPTIONDESCRIPTION-yAssume yes if prompted--assumeno Assume no if prompted-q Produce no output-v Produce

7 Extra debugging output--noplugins Run COMMAND without loading any yum plugins--disableplugin= Disable a particular plugin for single commandyum --disableplugin=langpacks info vsftpd--enableplugin= Enable a plugin that is installed, but currently disabledyum --enableplugin=ps ps Show packages tied to running processes--enablerepo= Enable currently disabled repo for a single COMMAND (wildcards okay)yum install docker \ --enablerepo=rhel-7-server-extras-rpm--d isablerepo= Disable currently enabled repo for a single COMMAND (wildcards okay)yum list available --disablerepo=epel--downloadonly Download to /var/cache/yum/arch/prod/repo/packages/, but don t installyum install --downloadonly vsftpd Download vsftpd package to cache--filter-?

8 ??= Replace ??? with vendors, rpm-groups, arches, and others to filter output--changelog Display changelog information of packageMORE YUM-RELATED COMMANDS (install the yum-utils package)COMMANDDESCRIPTION find-repos-of-installFind which repository a package comes fromneeds-restartingFind processes that have been updated and need to restartrepoclosureGet unmet dependency list from repositoriesrepoqueryQuery remote repos and local RPM databaserepoquery --requires --resolve bash Show dependent packagesreposyncSynchronize yum repositories to a local directoryreposync -r rhel-atomic-host-beta-rpms Get packages from reporepotrackDownload a package and all its dependenciesshow-installedList

9 Installed RPM packages and statisticsverifytreeCheck the local yum repository for consistencyyum-complete-transactionTry to complete yum transactions that didn t finishyumdbCheck or change the yum databaseyumdownloaderDownload a package from a repo to current directoryTyp e 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 available 2014 Red Hat, Inc. Red Hat, Red Hat Enterprise linux , the Shadowman logo, and JBoss are trademarks of Red Hat, Inc.

10 , registered in the and other countries. linux is the registered trademark of Linus Torvalds in the and other countries.


Related search queries