RPM Package Management: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(→yum) |
||
Line 10: | Line 10: | ||
* https://en.wikipedia.org/wiki/yum_(software) | * https://en.wikipedia.org/wiki/yum_(software) | ||
* | * which package provides this file? | ||
<pre> | <pre> | ||
$ yum provides /path/to/your/file | $ yum provides /path/to/your/file | ||
</pre> | |||
* which repo provides this package? | |||
<pre> | |||
$ yum list | fgrep PACKAGE | |||
</pre> | |||
* which repo is this this package installed from? | |||
<pre> | |||
$ yum list installed | fgrep PACKAGE | |||
</pre> | </pre> | ||
Revision as of 10:35, 18 June 2021
DNF
DNF is a rewrite of yum, DNF replaced YUM as the default package manager in Fedora 22.
yum
YUM allows for automatic updates and package and dependency management on RPM-based distributions. YUM works with software repositories (collections of packages), which can be accessed locally or over a network connection.
- which package provides this file?
$ yum provides /path/to/your/file
- which repo provides this package?
$ yum list | fgrep PACKAGE
- which repo is this this package installed from?
$ yum list installed | fgrep PACKAGE
yum-utils
$ yum install yum-utils
repoquery
--plugins: enable YUM plugin support.
- list the contents of PACKAGE -- PACKAGE is possibly not (yet) installed, i.e. only lives in the repo:
$ repoquery --query --list --plugins PACKAGE
rpm
- which package provides FILE?
$ rpm --query --file FILE
- list the contents of PACKAGE:
$ rpm --query PACKAGE $ rpm --query --queryformat "[%{=NAME}-%{=VERSION}-%{=RELEASE}:\t%-50{FILENAMES} %10{FILESIZES}\n]" PACKAGE