How to list the contents of a package using YUM?

Asked
Active3 hr before
Viewed126 times

8 Answers

usingpackage
90%

See the files installed by a yum package named bash: repoquery --list bash repoquery -l '*bash*',Open the terminal bash shell and type: sudo yum install yum-utils,The procedure to list the files installed by a yum package:,You learned various commands list the contents of a package using the yum command on a CentOS/RHEL and clones.

Loaded plugins: product - id, protectbase, rhnplugin, security, subscription -
   : manager
Updating certificate - based repositories.
Unable to read consumer identity
0 packages excluded due to repository protections
Setting up Install Process
Resolving Dependencies
-- > Running transaction check
-- - > Package yum - utils.noarch 0: 1.1 .30 - 14. el6 will be installed
   -- > Finished Dependency Resolution

Dependencies Resolved

   ===
   === === === === === === === === === === === === === === === === === === === === === === === === === ==
   Package Arch Version Repository Size ===
   === === === === === === === === === === === === === === === === === === === === === === === === === ==
   Installing:
   yum - utils noarch 1.1 .30 - 14. el6 rhel - x86_64 - server - 6 101 k

Transaction Summary
   ===
   === === === === === === === === === === === === === === === === === === === === === === === === === ==
   Install 1 Package(s)

Total download size: 101 k
Installed size: 0
Downloading Packages:
   yum - utils - 1.1 .30 - 14. el6.noarch.rpm | 101 kB 00: 00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: yum - utils - 1.1 .30 - 14. el6.noarch 1 / 1
Installed products updated.
Verifying: yum - utils - 1.1 .30 - 14. el6.noarch 1 / 1

Installed:
   yum - utils.noarch 0: 1.1 .30 - 14. el6

Complete!
load more v
88%

Meta Stack Overflow ,Stack Overflow en español,meaning installing a separate dnf-utils or yum-utils package is no longer required for the functionality as it is now being supported natively.,Stack Overflow em Português

There is a package called yum-utils that builds on YUM and contains a tool called repoquery that can do this.

$ repoquery--help | grep - E "list\ files" -
   l, --list list files in this package / group

Combined into one example:

$ repoquery - l time /
   usr / bin / time /
   usr / share / doc / time - 1.7 /
   usr / share / doc / time - 1.7 / COPYING /
   usr / share / doc / time - 1.7 / NEWS /
   usr / share / doc / time - 1.7 / README /
   usr / share / info / time.info.gz

To use dnf instead of yum-utils, use the following command:

$ dnf repoquery - l time /
   usr / bin / time /
   usr / share / doc / time - 1.7 /
   usr / share / doc / time - 1.7 / COPYING /
   usr / share / doc / time - 1.7 / NEWS /
   usr / share / doc / time - 1.7 / README /
   usr / share / info / time.info.gz
load more v
72%

It’s not possible by default, but you can install the yum-utils package that provides tools to list the contents of a certain package.,Very useful to combine with yum whatprovides */something searches to find exactly the package you need!,Now the repoquery tool is available, that allows you to look into (installed and not-yet-installed) packages., Hi! I'm Mattias Geniar, an independent developer, Linux sysadmin & general problem solver. Looking for help? I'm available for hire as a consultant. Want to get in touch? Have a look at my contact page.

It’s not possible by default, but you can install the yum-utils package that provides tools to list the contents of a certain package.

$ yum - y install yum - utils
load more v
65%

List the contents of an installed package in Ubuntu,The "yum-utils" package provides repoquery command, so let us install it using command:,List the contents of a non-installed package in Ubuntu,Here is another way to view the contents of an installed package in Ubuntu:

To view the contents of the Microsoft Teams package, simply run:

$ dpkg - L teams
load more v
75%

There is a package called yum-utils that builds on YUM and contains a tool called repoquery that can do this.,No need to install yum-utils, or to know the location of the rpm file.,If you are having this issue, try adding the --installed flag: repoquery --installed -l rpm.,To use dnf instead of yum-utils, use the following command:

There is a package called yum-utils that builds on YUM and contains a tool called repoquery that can do this.

$ repoquery--help | grep - E "list\ files" -
   l, --list list files in this package / group
load more v
40%

The cat command concatenates the contents of the file into the yum install command,Home » SysAdmin » How to List Installed Packages on CentOS with Yum or RPM,How to List Installed Packages with YUM,List Installed Packages with RPM

Use the following yum command  to display all installed packages:

sudo yum list installed
load more v
22%

To install and use yum-utils, run the commands below:,How to Install Wget in Linux,How to Install and Configure Zabbix Agents on Remote Linux – Part 3,How to Find and Kill Running Processes in Linux

To install and use yum-utils, run the commands below:

# yum update
# yum install yum - utils
load more v
60%

Lists all packages that are available in all enabled repositories and all packages that are installed on your system. , Lists all packages that are available to be installed in all enabled repositories. , Lists all enabled repositories. , Lists all packages that are installed on your system.

To list the files in a package, use the repoquery utility, which is included in the yum-utils package. For example, the following command lists the files that the btrfs-progs package provides.

# repoquery - l btrfs - progs /
   sbin / btrfs /
   sbin / btrfs - convert /
   sbin / btrfs - debug - tree
   .
   .
   .

Other "using-package" queries related to "How to list the contents of a package using YUM?"