CentOS Stream 9にリポジトリの一覧を確認する

環境
CentOS Stream release 9

操作方法
1.リポジトリの一覧を確認します

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# dnf repolist --all
# dnf repolist --all
# dnf repolist --all

2.無効になっているリポジトリの一覧を確認します

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# dnf repolist --disabled
# dnf repolist --disabled
# dnf repolist --disabled

3.有効になっているリポジトリの一覧を確認します

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# dnf repolist
# dnf repolist
# dnf repolist

4.リポジトリ詳細を確認します

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# dnf repolist -v
# dnf repolist -v
# dnf repolist -v

5.リポジトリを有効化します

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# sudo dnf config-manager --enable リポジトリ名
# sudo dnf config-manager --enable リポジトリ名
# sudo dnf config-manager --enable リポジトリ名

6.リポジトリを無効化します

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# sudo dnf config-manager --disable リポジトリ名
# sudo dnf config-manager --disable リポジトリ名
# sudo dnf config-manager --disable リポジトリ名

 

CentOS Stream 9

Posted by arkgame