RPM Package Management: Difference between revisions

From wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
== yum-utils ==
== yum-utils ==
<pre>
<pre>
yum install yum-utils
$ yum install yum-utils
</pre>
</pre>


Line 14: Line 14:


<pre>
<pre>
repoquery --query --list --plugins PACKAGE
$ repoquery --query --list --plugins PACKAGE
</pre>
</pre>



Revision as of 12:22, 17 June 2021

DNF

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