简体   繁体   English

如何找到在centOS 7上安装binutils的位置?

[英]How to find where binutils is installed on centOS 7?

I used the following commands to install binutils on centOS 7: 我使用以下命令在centOS 7上安装binutils:

$ sudo yum install binutils
Package binutils-2.27-28.base.el7_5.1.x86_64 already installed and latest version

Then I query where it's installed by 然后我查询它的安装位置

$ rpm -q binutils
binutils-2.27-28.base.el7_5.1.x86_64

But I still don't know where it's installed. 但是我仍然不知道它的安装位置。 How do I find where it installed? 我如何找到它的安装位置?

Some thing like this 像这样的东西

rpm -ql binutils-2.27-28.base.el7_5.1.x86_64

The general command to find where is the package is installed is 查找软件包安装位置的一般命令是

rpm -ql <package>

To find out the location where all the files are installed for a given packagename you can use: 要查找给定软件包名称的所有文件的安装位置,可以使用:

rpm -ql package_name

It basically lists all the files that are installed on your system using the required package name. 它基本上使用所需的软件包名称列出了系统上安装的所有文件。 So it gives the complete plath for the files that the package has installed on your system. 因此,它为软件包已在系统上安装的文件提供了完整的提示。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM