Rocky Linux 8.5でリポジトリを無効化する

2021年12月17日

環境
# cat /etc/redhat-release
Rocky Linux release 8.5 (Green Obsidian)
操作方法
1.リポジトリの一覧を確認します

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# dnf repolist --all
teams teams 有効化
# dnf repolist --all 略 teams teams 有効化
# dnf repolist --all
略
teams                          teams                                      有効化

2.「teams」を無効化にします

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# sudo dnf config-manager --disable teams
確認
# dnf repolist teams
repo id repo の名前 状態
teams teams 無効化
# sudo dnf config-manager --disable teams 確認 # dnf repolist teams repo id repo の名前 状態 teams teams 無効化
# sudo dnf config-manager --disable teams

確認
# dnf repolist  teams
repo id                               repo の名前                         状態
teams                                 teams                               無効化

3.「teams」を有効化にします

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# sudo dnf config-manager --enable teams
確認
# dnf repolist teams
repo id repo の名前 状態
teams teams 有効化
# sudo dnf config-manager --enable teams 確認 # dnf repolist teams repo id repo の名前 状態 teams teams 有効化
# sudo dnf config-manager --enable teams

確認
# dnf repolist  teams
repo id                               repo の名前                         状態
teams                                 teams                               有効化

 

Rocky Linux 8

Posted by arkgame