几天前,我安装了openssl rpm。之后,我无法卸载rpm,因此我/usr/bin/openssl
手动删除了该文件夹。尽管我手动删除了该文件夹,但是当我使用此命令grep时,rpm -qa openssl
我可以找到rpm。但是当我openssl
在终端中执行命令时,它显示bash:openssl: command not found...
尝试卸载时出现以下错误
[root@genius ~]# rpm -qa openssl
openssl-1.0.2k-8.el7.x86_64
[root@genius ~]# rpm -e openssl-1.0.2k-8.el7.x86_64
error: Failed dependencies:
/usr/bin/openssl is needed by (installed) authconfig-6.2.8-30.el7.x86_64
而且当我尝试安装rpm时,它也会显示以下输出
[root@genius openssl]# rpm -ivh openssl-1.0.2k-8.el7.x86_64.rpm
Preparing... ################################# [100%]
package openssl-1:1.0.2k-8.el7.x86_64 is **already installed**
最后,我需要将openssl软件包安装在我的centOS 7中,否则我需要完全删除openssl软件包而没有任何依赖项错误。
您可以在此处选择两个选项:
1. Remove using yum, Note: this may remove the dependency such as authconfig
$ yum remove openssl
2. Remove using rpm cmdline, but you have to force remove it. This will not remove the depencies
$ rpm -e openssl-1.0.2k-8.el7.x86_64 --nodeps
3. or try a reinstall if you have CentOS-7 repo
$ yum reinstall openssl
如果您要openssl
在系统中使用,请先尝试(3)。如果这不起作用,请尝试(2),然后执行yum install openssl
。(3)和(1)是要使用的选项。(2)将导致依赖包保留在系统中,并且依赖包可能会发生故障。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句