开发者

How to find rpm prefix after installing the rpm package

开发者 https://www.devze.com 2023-02-11 14:54 出处:网络
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, bu

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消