mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-22 21:52:12 +01:00
commit
b6a17fac42
1 changed files with 29 additions and 0 deletions
29
cheatsheets/yum
Normal file
29
cheatsheets/yum
Normal file
|
@ -0,0 +1,29 @@
|
|||
To install the latest version of a package:
|
||||
yum install <package name>
|
||||
|
||||
To perform a local install:
|
||||
yum localinstall <package name>
|
||||
|
||||
To remove a package:
|
||||
yum remove <package name>
|
||||
|
||||
To search for a package:
|
||||
yum search <package name>
|
||||
|
||||
To find what package installs a program:
|
||||
yum whatprovides </path/to/program>
|
||||
|
||||
To find the dependencies of a package:
|
||||
yum deplist <package name>
|
||||
|
||||
To find information about a package:
|
||||
yum info <package name>
|
||||
|
||||
List currently enabled repositories:
|
||||
yum repolist
|
||||
|
||||
To download the source RPM for a package:
|
||||
yumdownloader --source <package name>
|
||||
|
||||
(You have to install yumdownloader first, which is installed by the
|
||||
yum-utils package)
|
Loading…
Reference in a new issue