

Starfighter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2024
01:49 AM
- 440 Views
List Files in RPM Package
I want to list the files in an rpm package that is NOT installed.
That rpm package resides in a respository, and the repository
is NOT enabled.
I want to list the files in the rpm package, but I don't want to have
to enable the repository, nor do I want to have to install the rpm.
What command can I execute that will list the files in this rpm,
without having to enable the repository that the rpm exist in,
and/or install the rpm?
Intended audience: RHCE level and below
Trevor "Red Hat Evangelist" Chandler
1 Reply


Flight Engineer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2024
05:33 AM
- 422 Views
Hi @Trevor,
I think the command below will do the trick: listing files in bar packages that resides in foo repository.
dnf --disablerepo=* --enablerepo=foo repoquery --list bar
Regards,
Tshimanga
Join the discussion
You must log in to join this conversation.