cancel
Showing results for 
Search instead for 
Did you mean: 
Trevor
Starfighter Starfighter
Starfighter
  • 181 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
Labels (3)
1 Reply
TM
Flight Engineer Flight Engineer
Flight Engineer
  • 163 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.