因為 RHEL 需要收費, 很多人也會用 CentOS 代替 RHEL。以下會示範免費下載 RHEL 及更新的方法。
下載 RHEL 8 ISO
要免費下載 RHEL 8 的 ISO 檔, 可以進入 Reh Hat Developer 頁面, 註冊一個帳號。註冊完成後, 會收到一封確認電郵, 按下確認電郵的連結便註冊完成了.
註冊完成後, 進入 Red Hat 登入頁面, 填寫個人資料.
完成後, 進入 RHEL 8 下載頁面 按 “Download RHEL” 便可以下載 RHEL 8 的 ISO 檔, 目前最新下載版本是 8.2.0.
RHEL 8 更新檔
當安裝好 RHEL 8 後, 如果在 terminal 輸入 dnf 指令更新套件, 會出現以下錯誤:
Unable to read consumer identity
輸入以下指令便可更新:
# subscription-manager register –username your-username –password your-password
上面的 your-username 及 your-password 改成在 Reh Hat Developer 的註冊帳號登入資料。
然後執行以下指令:
# subscription-manager attach –auto
成功註冊後, 會出現以下訊息提示:
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux for x86_64
Status: Subscribed
Product Name: Red Hat Enterprise Linux for x86_64
Status: Subscribed
這個更新的訂閱有效期是 1 年, 過了 1 年後還可以繼續 renew.
你可能感興趣的內容: