Linux 确定 yum 包安装到的路径
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1766380/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Determining the path that a yum package installed to
提问by brettbuddin
I've installed ffmpeg using yum under Redhat, and I'm having difficulty figuring out where (what path) it installed the package to. Is there an easy way of determining this without resorting to finding it myself manually?
我已经在 Redhat 下使用 yum 安装了 ffmpeg,但我很难弄清楚它将软件包安装到的位置(路径)。是否有一种简单的方法可以确定这一点,而无需自己手动查找?
采纳答案by Maggs
回答by Reynolds
I don't know about yum, but rpm -ql
will list the files in a particular .rpm file. If you can find the package file on your system you should be good to go.
我不知道 yum,但rpm -ql
会列出特定 .rpm 文件中的文件。如果你能在你的系统上找到包文件,你应该很高兴。
回答by developmentalinsanity
Not in Linux at the moment, so can't double check, but I think it's:
目前不在 Linux 中,因此无法仔细检查,但我认为是:
rpm -ql ffmpeg
That should list all the files installed as part of the ffmpeg package.
这应该列出作为 ffmpeg 包的一部分安装的所有文件。