查看RPM包依赖 ゝ一世哀愁。 2022-05-26 11:51 646阅读 0赞 * 查看`.rpm` 包依赖: rpm -qpR [package] * 安装`.rpm` 包时,如果缺少依赖,报错信息中会打印出缺少的依赖: rpm -ivh [package] 或者 yum localinstall *.rpm * 通过查询 [https://pkgs.org/][https_pkgs.org] 来查询包的依赖关系。 * 通过`yum install --downloadonly --downloaddir=[download_dir] [package]` 或 `yum download`来只下载包不安装包 * 运行`yum list [package] --showduplicates` 来查看包的多个版本 扩展阅读: * [查看已经安装的RPM包][RPM] * [https://ma.ttias.be/removing-a-package-without-its-dependencies-in-centos-or-rhel/][https_ma.ttias.be_removing-a-package-without-its-dependencies-in-centos-or-rhel] [https_pkgs.org]: https://pkgs.org/ [RPM]: https://blog.csdn.net/nklinsirui/article/details/80287417 [https_ma.ttias.be_removing-a-package-without-its-dependencies-in-centos-or-rhel]: https://ma.ttias.be/removing-a-package-without-its-dependencies-in-centos-or-rhel/
还没有评论,来说两句吧...