Installation

在 Fedora 12 中安裝 Yum

  • July 10, 2014

出於某種我不知道的原因,我的 Fedora 12 安裝中的幾個預設軟體包失去、刪除或解除安裝。現在,在我目前的情況下,重新安裝 fedora 12 並不是一個好主意。有人可以指導我如何使用 rpm 安裝 yum 包嗎?我的意思是,我找不到 yum 的儲存庫。

非常感謝你!

更新:

一個小時後,我已經成功安裝了yum,但是一個一個地安裝了所有缺少的依賴項!謝謝大家!

您可能會搭便車,尤其是在您缺少依賴項的情況下。 是一個頁面,您可以在其中查看 RPM 及其依賴項的鏡像,並蒐索您沒有的依賴項,以防以下方法不起作用。

rpm -Uvh ftp://ftp.uni-bayreuth.de/pub/redhat.com/fedora/linux/releases/12/Everything/i386/os/Packages/yum-3.2.25-1.fc12.noarch.rpm

正如@qweet 指出的那樣,這不是一件小事,因為 yum 有大量的先決條件,尤其是 python 包。我的策略是

1. get the yum rpm (do not use source code) from a F12 repository (releases/12/Everything/i386/os/Packages/) and place in a fresh folder
2. try to install yum: rpm -Uvh ./yum.xxx.xxx.rpm
3. If dependencies have been deleted also then you will get plenty of complains
4. Download also one by one the dependencies
5. try #2 above again
6. repeat 4,5 until you have no errors!!

當然,如果您有 F12 磁碟,事情會變得更加容易。玩得開心

引用自:https://serverfault.com/questions/371025