开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜