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 insta开发者_开发技巧lling i need to find the prefix value .How i can do that?
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
rpm -q --queryformat '%{INSTALLPREFIX}\n' package_name
for finding the different tags with --queryformat
you can check here.
精彩评论