“『YUM COMMAND CHEAT SHEET』”的版本间差异
无编辑摘要 |
无编辑摘要 |
||
第180行: | 第180行: | ||
! colspan="2"| MANAGE LANGUAGE PACKAGES WITH YUM | ! colspan="2"| MANAGE LANGUAGE PACKAGES WITH YUM | ||
|- | |- | ||
| | | langavailable | ||
| | | ''List all available languages *'' | ||
|- | |- | ||
| | | langinfo | ||
| | | ''List packages available for a language *'' | ||
'''yum langinfo es'''<br/> | |||
List packages associated with Spanish language<br/> | |||
|- | |||
| langinstall | |||
| ''Install packages associated with a particular language *'' | |||
'''yum langinstall es'''<br/> | |||
Install packages associated with Spanish language<br/> | |||
|- | |||
| langlist | |||
| ''List languages that are installed *'' | |||
|- | |||
| langremove | |||
| ''Remove installed language packs for a language *'' | |||
'''yum langremove es'''<br/> | |||
Remove packages associated with Spanish language<br/> | |||
|- | |- | ||
! colspan="2"| POPULAR OPTIONS FOR DIFFERENT YUM COMMANDS ** | ! colspan="2"| POPULAR OPTIONS FOR DIFFERENT YUM COMMANDS ** | ||
|- | |- | ||
| | | -y | ||
| | | ''Assume yes if prompted'' | ||
|- | |||
| --assumeno | |||
| ''Assume no if prompted'' | |||
|- | |||
| -q | |||
| ''Produce no output'' | |||
|- | |||
| -v | |||
| ''Produce extra debugging output'' | |||
|- | |||
| --noplugins | |||
| ''Run command without loading any yum plugins'' | |||
|- | |||
| --disableplugin= | |||
| ''Disable a particular plugin for single command'' | |||
'''yum --disableplugin=langpacks info vsftpd'''<br/> | |||
|- | |||
| --enableplugin= | |||
| ''Enable a plugin that is installed, but currently disabled'' | |||
'''yum --enableplugin=ps ps'''<br/> | |||
Show packages tied to running processes<br/> | |||
|- | |||
| --enablerepo= | |||
| ''Enable currently disabled repo for a single command (wildcards okay)'' | |||
'''yum install docker \ --enablerepo=rhel-7-server-extras-rpm'''<br/> | |||
|- | |||
| --disablerepo= | |||
| ''Disable currently enabled repo for a single command (wildcards okay)'' | |||
'''yum list available --disablerepo=epel'''<br/> | |||
|- | |||
| --downloadonly | |||
| ''Download to /var/cache/yum/arch/prod/repo/packages/, but don’t install'' | |||
'''yum install --downloadonly vsftpd'''<br/> | |||
Download vsftpd package to cache<br/> | |||
|- | |||
| --filter-???= | |||
| Replace ??? with vendors, rpm-groups, arches, and others to filter output | |||
|- | |- | ||
| | | --changelog | ||
| | | Display changelog information of package | ||
|- | |- | ||
! colspan="2"| MORE YUM-RELATED COMMANDS (install the yum-utils package) | ! colspan="2"| MORE YUM-RELATED COMMANDS (install the yum-utils package) |
2020年10月15日 (四) 23:57的版本
Download YUM COMMAND CHEAT SHEET for Red Hat Enterprise Linux
SUBCOMMAND | DESCRIPTIONS AND TASKS |
---|---|
YUM QUERIES | |
help | Display yum commands and options
yum help |
list | List package names from repositories
yum list available |
info | Display information about a package
yum info vsftpd |
deplist | Display dependencies for a package
yum deplist nfs-utils |
provides | Find packages that provide the queried file
yum provides “*bin/top” |
search | Search package names and descriptions for a term
yum search samba |
updateinfo | Get information about available package updates
yum updateinfo security |
grouplist | List names of installed and available package groups |
groupinfo | Display description and contents of a package group
yum groupinfo “Web Server” |
check-update | Query repositories for available package updates |
INSTALL, REMOVE AND UPGRADE PACKAGES WITH YUM | |
install | Install a package from a repository to your system
yum install vsftpd |
update | Update one or all packages on your system
yum update |
update-to | Update one or all packages to a particular version |
upgrade | Update packages taking obsoletes into account |
localinstall | Install a package from a local file, http, or ftp
yum localinstall abc-1-1.i686.rpm |
downgrade | Downgrade a package to an earlier version
yum downgrade abc |
reinstall | Reinstall the current version of a package
yum reinstall util-linux |
swap | Remove one package and install another
yum swap ftp lftp |
erase | Erase a package (and possibly dependencies) from your system
yum remove vsftpd |
remove | Same as erase |
autoremove | Same as erase, plus removes additional unneeded packages *
yum autoremove httpd |
groupinstall | Install all packages in the selected group
yum groupinstall “Web server” |
TROUBLESHOOT AND MAINTAIN YUM | |
check | Check the local RPM database for problems (runs for a long time) |
history | View and use yum transactions
yum history list |
clean | Clear out cached package data
yum clean packages |
fssnapshot | List LVM stapshots (helps roll back after package updates) |
fs | Act on filesystem (prevent doc or language file install on minimal systems)
yum fs filters |
MANAGE YUM REPOSITORIES | |
repolist | Display enabled software repositories |
repoinfo | Display information about enabled yum repositories *
yum repoinfo rhel-7-server-rpms |
repo-pkgs | Work with packages in a particular repository *
yum repo-pkgs my-rpms list |
makecache | Download yum repository data to cache |
MANAGE LANGUAGE PACKAGES WITH YUM | |
langavailable | List all available languages * |
langinfo | List packages available for a language *
yum langinfo es |
langinstall | Install packages associated with a particular language *
yum langinstall es |
langlist | List languages that are installed * |
langremove | Remove installed language packs for a language *
yum langremove es |
POPULAR OPTIONS FOR DIFFERENT YUM COMMANDS ** | |
-y | Assume yes if prompted |
--assumeno | Assume no if prompted |
-q | Produce no output |
-v | Produce extra debugging output |
--noplugins | Run command without loading any yum plugins |
--disableplugin= | Disable a particular plugin for single command
yum --disableplugin=langpacks info vsftpd |
--enableplugin= | Enable a plugin that is installed, but currently disabled
yum --enableplugin=ps ps |
--enablerepo= | Enable currently disabled repo for a single command (wildcards okay)
yum install docker \ --enablerepo=rhel-7-server-extras-rpm |
--disablerepo= | 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 install
yum install --downloadonly vsftpd |
--filter-???= | Replace ??? with vendors, rpm-groups, arches, and others to filter output |
--changelog | Display changelog information of package |
MORE YUM-RELATED COMMANDS (install the yum-utils package) | |