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?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
There is a way to do this. Relevant options for
q means query and
-i, --info Display package information, including name, version, and description. This uses the --queryformat if one was specified.
rpm -qi <file>.