Friends,
I've middle level understanding in Linux & I was going through the man pages where I got stuck to understand the functionality of -p
parameter generally used along with -q
& -V
RedHat documentation says -p
is used for querying/verifying the uninstalled package file-name passed as an argument to it.
Could someone explain this to me with examples from a live system pls?
-- Souvik
The -p
switch allows the rpm command to perform actions on a standalone rpm package, whether it be on the local filesystem or remote (URL).
i.e.
rpm -qip filename.rpm
Will list the information about the rpm package.
rpm -qlp filename.rpm
Will list all the files that will be installed by the rpm package.
rpm -qp --requires filename.rpm
Will list dependencies requires by the rpm package.
You can find additional information here.
Hope this helps.
1 Like