RPM Package Management: Difference between revisions
Jump to navigation
Jump to search
(→DNF) |
No edit summary |
||
Line 1: | Line 1: | ||
== DNF == | == DNF == | ||
DNF is a rewrite of yum, DNF replaced YUM as the default package manager in Fedora 22. | DNF is a rewrite of yum, DNF replaced YUM as the default package manager in Fedora 22. | ||
* https://en.wikipedia.org/wiki/DNF_(software) | * https://en.wikipedia.org/wiki/DNF_(software) | ||
== yum == | == 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. | |||
* https://en.wikipedia.org/wiki/yum_(software) | * https://en.wikipedia.org/wiki/yum_(software) | ||
Line 23: | Line 27: | ||
* which package provides FILE? | * which package provides FILE? | ||
<pre> | <pre> | ||
$ rpm --query - | $ rpm --query --file FILE | ||
</pre> | </pre> | ||
* list the contents of PACKAGE: | * list the contents of PACKAGE: |
Revision as of 12:34, 17 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.
yum-utils
$ yum install yum-utils
repoquery
--plugins: enable YUM plugin support.
$ repoquery --query --list --plugins PACKAGE
rpm
- https://en.wikipedia.org/wiki/RPM_Package_Manager
- http://linux.die.net/man/8/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