RPM Package Management: Difference between revisions

From wiki
Jump to navigation Jump to search
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.
* https://en.wikipedia.org/wiki/DNF_(software)
* https://en.wikipedia.org/wiki/DNF_(software)



Revision as of 12:24, 17 June 2021

DNF

DNF is a rewrite of yum, DNF replaced YUM as the default package manager in Fedora 22.

yum

yum-utils

$ yum install yum-utils

repoquery

--plugins: enable YUM plugin support.

$ repoquery --query --list --plugins PACKAGE

rpm

$ rpm --query -f FILE
  • list the contents of PACKAGE:
$ rpm --query PACKAGE
$ rpm --query --queryformat "[%{=NAME}-%{=VERSION}-%{=RELEASE}:\t%-50{FILENAMES} %10{FILESIZES}\n]" PACKAGE