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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-03 17:55:01  来源:igfitidea点击:

Determining the path that a yum package installed to

linuxredhatrpmyum

提问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

yum uses RPM, so the following command will list the contents of the installed package:

yum 使用RPM,因此以下命令将列出已安装包的内容:

$ rpm -ql package-name

回答by Reynolds

I don't know about yum, but rpm -qlwill 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 包的一部分安装的所有文件。