rahul
rahul

Reputation: 41

How to find rpm prefix after installing the rpm package

I have installed a rpm package using command "rpm -ivvh --prefix=/home/mypkg package_name ".After installing i need to find the prefix value .How i can do that?

Upvotes: 3

Views: 3039

Answers (2)

mtneagle
mtneagle

Reputation: 136

a very stale thread, but I have an answer. I found it just by typing

# rpm --querytags

here's an example of the output:

# rpm -qa --queryformat '%{name}-%{version} %{instprefixes}\n' lgtoclnt

lgtoclnt-7.6.5 /usr

Upvotes: 2

rahul
rahul

Reputation: 41

rpm -q --queryformat '%{INSTALLPREFIX}\n' package_name

for finding the different tags with --queryformat you can check here.

Upvotes: 1

Related Questions