rpm -e --nodeps packagename 後沒有這樣的檔案或目錄而不是指令 not find

rpm -e --nodeps packagename 後沒有這樣的檔案或目錄而不是指令 not find

我安裝了ethtoolusing yum install ethtool,然後使用刪除了它,rpm -e --nodeps ethtool因為當我嘗試刪除ethtoolwith時yum,它將刪除一堆重要的依賴項,例如php, httpd, etc

當我運行任何不應該存在的命令時,例如fakecommand我收到此訊息:

[root@test sbin]# fakecommand
-bash: fakecommand: command not found
[root@test sbin]#

ethtool但是,當嘗試在刪除它後運行時,rpm -e --nodeps ethtool我得到No such file or directory而不是No such file or directory

[root@test sbin]# ethtool
-bash: /sbin/ethtool: No such file or directory
[root@test sbin]#

答案1

要解決此問題,您所需要做的就是重新啟動 ssh 連線。事實證明,這只是一個客戶端快取。

相關內容