[問題] 我好像用yum 毀了我的 CentOS 5

看板Linux作者 (())時間3年前 (2021/09/15 12:53), 3年前編輯推噓8(8012)
留言20則, 12人參與, 3年前最新討論串1/1
最近要更新 openssl 板本, 打算用 yum 移除舊版 結果: [root@host02 openssl-1.1.1l]# yum remove openssl openssl-devel -y Loaded plugins: fastestmirror Setting up Remove Process Resolving Dependencies --> Running transaction check ---> Package openssl.i686 0:0.9.8e-39.el5_11 set to be erased --> Processing Dependency: libcrypto.so.6 for package: postgresql-libs --> Processing Dependency: libcrypto.so.6 for package: openssh --> Processing Dependency: libcrypto.so.6 for package: tcpdump --> Processing Dependency: libcrypto.so.6 for package: cyrus-sasl-md5 --> Processing Dependency: libcrypto.so.6 for package: bind-utils . . . [root@host02 openssl-1.1.1l]# ls bash: /bin/ls: 沒有此一檔案或目錄 [root@host02 openssl-1.1.1l]# /bin/ awk gawk mail red tracepath6 bash grep mktemp sed traceroute cpio gunzip pgawk setserial traceroute6 ed gzip ping sh tracert egrep igawk ping6 tcptraceroute zcat fgrep keyctl ps tracepath [root@host02 openssl-1.1.1l]# 這..... 應該是沒救了吧 QQ -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 211.21.104.32 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1631681614.A.3ED.html

09/15 13:22, 3年前 , 1F
yum history undo xx
09/15 13:22, 1F

09/15 13:43, 3年前 , 2F
連 yum 都沒了 QQ
09/15 13:43, 2F
[root@host02 openssl-1.1.1l]# yum bash: /usr/bin/yum: 沒有此一檔案或目錄 ※ 編輯: seaping (211.21.104.32 臺灣), 09/15/2021 13:45:57 我剛才查 log 發現這個, 只能說太不小心了, 沒想到竟然會這樣.. -y 絕對不能亂下 ---> Package kernel-devel.i686 0:2.6.18-398.el5 set to be erased ---> Package kernel-devel.i686 0:2.6.18-408.el5 set to be erased --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Removing: openssl i686 0.9.8e-39.el5_11 installed 3.9 M openssl-devel i386 0.9.8e-39.el5_11 installed 4.5 M Removing for dependencies: Deployment_Guide-zh-CN noarch 5.8-1.el5.centos installed 12 M Deployment_Guide-zh-TW noarch 5.8-1.el5.centos installed 12 M GConf2 i386 2.14.0-9.el5 installed 4.6 M GConf2-devel i386 2.14.0-9.el5 installed 643 k MAKEDEV i386 3.23-1.2 installed 642 k NetworkManager i386 1:0.7.0-13.el5 installed 3.3 M NetworkManager-glib i386 1:0.7.0-13.el5 installed 154 k NetworkManager-gnome i386 1:0.7.0-13.el5 installed 862 k OpenIPMI i386 2.0.16-16.el5 installed 287 k OpenIPMI-libs i386 2.0.16-16.el5 installed 1.4 M PyQt i386 3.16-4 installed 8.3 M PyQt-devel i386 3.16-4 installed 1.1 M PyXML i386 0.8.4-6.el5 installed 5.1 M SDL i386 1.2.10-9.el5 installed 538 k SysVinit i386 2.86-17.el5 installed 191 k acpid i386 1.0.4-12.el5 installed 36 k alacarte noarch 0.10.0-1.fc6 installed 604 k . . . . . yp-tools i386 2.9-2.el5 installed 153 k ypbind i386 3:1.19-12.el5_6.1 installed 53 k yum noarch 3.2.22-40.el5.centos installed 3.3 M yum-fastestmirror noarch 1.1.16-21.el5.centos installed 47 k yum-metadata-parser i386 1.1.2-4.el5 installed 53 k yum-updatesd noarch 1:0.9-6.el5_10 installed 55 k zenity i386 2.16.0-2.el5 installed 2.0 M zsh i386 4.2.6-10.el5_11 installed 3.4 M Transaction Summary ================================================================================ Remove 618 Package(s) Reinstall 0 Package(s) Downgrade 0 Package(s) Downloading Packages: Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction ※ 編輯: seaping (211.21.104.32 臺灣), 09/15/2021 13:50:39

09/15 14:14, 3年前 , 3F
抓source code 來compile 不知道有沒有得救
09/15 14:14, 3F

09/15 14:32, 3年前 , 4F
yum 不能 要用rpm直接移除才不會出問題
09/15 14:32, 4F

09/15 14:33, 3年前 , 5F
yum理論上還在 因為他是protected
09/15 14:33, 5F

09/15 14:34, 3年前 , 6F
如果是新版 Centos8有 --noautoremove
09/15 14:34, 6F

09/15 14:52, 3年前 , 7F
舊版5.11 .. 不過我找一下看看, 感謝樓上大大
09/15 14:52, 7F

09/15 15:53, 3年前 , 8F
永遠記得備份, /home 用rsync,獨立的root/boot分區用dd
09/15 15:53, 8F

09/15 16:51, 3年前 , 9F
我好像幹過一樣的事,最後用rpm裝回來
09/15 16:51, 9F

09/15 17:20, 3年前 , 10F
我目前也是, 剛把rpm 生回來
09/15 17:20, 10F

09/15 21:08, 3年前 , 11F
openssl更新為何要移除阿 直接upgrade不行嗎
09/15 21:08, 11F

09/15 21:36, 3年前 , 12F
因為找不到在 CentOS 5 的下升級套件, 打算自己 make
09/15 21:36, 12F

09/15 21:36, 3年前 , 13F
想說在 make 前先移除一下原本的套件, 就 ... QQ
09/15 21:36, 13F

09/16 00:22, 3年前 , 14F
我也做過類似的事情…
09/16 00:22, 14F

09/16 15:18, 3年前 , 15F
這個相依樹好怪,移除openssl竟然連基礎套件都移除
09/16 15:18, 15F

09/16 21:00, 3年前 , 16F
你是不是亂裝非套件版本的 openssl (sudo make install
09/16 21:00, 16F

09/16 21:03, 3年前 , 17F
看到上面推文了... 果然
09/16 21:03, 17F

09/17 22:34, 3年前 , 18F
掛光碟repo 裝回去
09/17 22:34, 18F

09/17 23:37, 3年前 , 19F
推樓上
09/17 23:37, 19F

09/19 01:48, 3年前 , 20F
用我跑虛擬化開 Snapshot 不香嗎?
09/19 01:48, 20F
文章代碼(AID): #1XGNnEFj (Linux)
文章代碼(AID): #1XGNnEFj (Linux)