cheat/cheatsheets/yum

29 lines
679 B
Text
Raw Normal View History

# To install the latest version of a package:
2013-08-19 07:03:18 +02:00
yum install <package name>
# To perform a local install:
2013-08-22 07:34:42 +02:00
yum localinstall <package name>
# To remove a package:
2013-08-22 07:34:42 +02:00
yum remove <package name>
# To search for a package:
2013-08-19 07:03:18 +02:00
yum search <package name>
# To find what package installs a program:
2013-08-19 07:03:18 +02:00
yum whatprovides </path/to/program>
# To find the dependencies of a package:
2013-08-19 07:03:18 +02:00
yum deplist <package name>
# To find information about a package:
2013-08-19 07:03:18 +02:00
yum info <package name>
# List currently enabled repositories:
2013-08-19 07:03:18 +02:00
yum repolist
# To download the source RPM for a package:
2013-08-19 07:03:18 +02:00
yumdownloader --source <package name>
# (You have to install yumdownloader first, which is installed by the yum-utils package)