CentOS / RHEL: List All Configured Repositories

www.laut‮oc.irut‬m
CentOS / RHEL: List All Configured Repositories

To list all configured repositories on CentOS or Red Hat Enterprise Linux (RHEL), you can use the yum or dnf package manager with the repolist command.

To list all enabled repositories, you can use the following command:

sudo yum repolist

or

sudo dnf repolist

This will show a list of all enabled repositories, along with the number of packages available in each repository.

To list all available repositories, including disabled repositories, you can use the --all option:

sudo yum repolist --all

or

sudo dnf repolist --all

This will show a list of all available repositories, including enabled and disabled repositories.

You can also use the yum-config-manager or dnf config-manager command to list and manage repositories. For example, to list all enabled repositories:

sudo yum-config-manager --list-enabled

or

sudo dnf config-manager --list-enabled

To list all available repositories, including disabled repositories:

sudo yum-config-manager --list

or

sudo dnf config-manager --list

Note: The yum-config-manager and dnf config-manager commands are part of the yum-utils and dnf-utils.

Created Time:2017-10-16 14:38:41  Author:lautturi