cheat/cheatsheets/yum

30 lines
659 B
Text
Raw Normal View History

2013-08-19 07:03:18 +02:00
To install the latest version of a package:
yum install <package name>
2013-08-22 07:34:42 +02:00
To perform a local install:
yum localinstall <package name>
To remove a package:
yum remove <package name>
2013-08-19 07:03:18 +02:00
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>
2013-08-22 07:34:42 +02:00
To find information about a package:
2013-08-19 07:03:18 +02:00
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
2013-08-22 07:34:42 +02:00
yum-utils package)