0

I'd like to issue a command to query information about a local rpm package. Something like this:

yum localinfo mylocalrpmpackage.rpm

yum info just queries information about remote packages.

Is there a way to do that?

1

There is a way to do this. Relevant options for rpm are: -qi. Where q means query and

-i, --info Display package information, including name, version, and description. This uses the --queryformat if one was specified.

For example rpm -qi <file>.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.