linux 软件还原安装包,使用linux救援模式恢复rpm软件包

rpm作为linux最重要的软件管理工具,有着不可或缺的地位,连yum都要依赖于rpm的存在才能正常使用,所以掌握rpm的恢复还是很重要的,下面就来看一下如何恢复rpm。

卸载rpm软件包

[root@localhost ~]$ rpm -e rpm

error: Failed dependencies:

rpm = 4.11.3-17.el7 is needed by (installed) rpm-libs-4.11.3-17.el7.x86_64

rpm is needed by (installed) color-filesystem-1-13.el7.noarch

rpm = 4.11.3-17.el7 is needed by (installed) rpm-python-4.11.3-17.el7.x86_64

rpm >= 0:4.4.2 is needed by (installed) yum-3.4.3-132.el7.centos.0.1.noarch

rpm >= 4.1.1 is needed by (installed) createrepo-0.9.9-23.el7.noarch

rpm is needed by (installed) policycoreutils-2.2.5-20.el7.x86_64

rpm >= 4.9.0 is needed by (installed) redhat-rpm-config-9.1.0-68.el7.centos.noarch

rpm = 4.11.3-17.el7 is needed by (installed) rpm-build-4.11.3-17.el7.x86_64

[root@localhost ~]$ yum remove rpm

Loaded

你可能感兴趣的:(linux,软件还原安装包)