Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个需要安装的 RPM 文件,在安装之前我想检查其中包含的软件包的版本。如果软件包已经安装,我可以使用rpm -qi知道版本号,但是如果未安装软件包,我使用什么选项来查找版本?
rpm -qi
该-p选项可用于将查询定向到已卸载的包。
-p
rpm -qip package.rpm