網頁

2020年1月18日 星期六

如何使用RHEL8 DVD(ISO檔案)創建本地YUM Repository

因為Local YUM Repository存放著rpm套件,可以做為RedHat或CentOS進行軟體安裝及系統更新的來源。同時也能節省從Internet下載的等待時間及頻寬消耗。

RHEL 8由兩個主要部分構成:BaseOS及AppStream。

  • BaseOS
Content in the BaseOS repository is intended to provide the core set of the underlying OS functionality that provides the foundation for all installations. This content is available in the RPM format and is subject to support terms similar to those in previous releases of Red Hat Enterprise Linux.
  • AppStream
Content in the AppStream repository includes additional user-space applications, runtime languages, and databases in support of the varied workloads and use cases. Content in AppStream is available in one of two formats - the familiar RPM format and an extension to the RPM format called modules.

新增來源並掛載



確認掛載內容



新增*.repo檔案,檔名可自行命名



baseurl須提供正確完整路徑(留意大小寫),gpgcheck可為0或1,若為1時,須提供gpgkey檔案正確完整路徑,0時可忽略。






清除與建立YUM快取



確認repo檔案是否正確



安裝示範

沒有留言:

張貼留言