cheat-fork-echo/cheat/cheatsheets/yum

32 lines
769 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
2015-03-10 03:34:47 +01:00
# List packages containing a certain keyword:
yum list <package_name_or_word_to_search>
# 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)