You need to pass the repolist option to the yum command. This option will show you a list of configured repositories under RHEL / Fedora / SL / CentOS Linux. The default is to list all enabled repositories. Pass -v (verbose mode) optionn for more information is listed.
Syntax
The syntax is:
yum repolist yum [options] repolist [option] yum -v repolist
Examples
Type the following command:
# yum -v repolist
# yum -v repolist | less
# yum repolist
Sample outputs:
To list only enabled repos, enter:
# yum repolist enabledTo list only disabled repos, enter:
# yum repolist disabledTo list all repos (default), enter:
# yum repolist allTo list available packages under a repo called ksplice-uptrack, enter:
# yum --disablerepo="*" --enablerepo="ksplice-uptrack" list availableSample outputs:
Loaded plugins: product-id, rhnplugin, security, subscription-manager Updating certificate-based repositories. Unable to read consumer identity Available Packages ksplice-uptrack-release.noarch 1-2 ksplice-uptrack python-ksplice-uptrack.noarch 0.2.2-1.el6 ksplice-uptrack uptrack-PyYAML-debuginfo.x86_64 3.08-4.el6 ksplice-uptrack uptrack-libyaml-debuginfo.x86_64 0.1.3-1.el6 ksplice-uptrack uptrack-libyaml-devel.x86_64 0.1.3-1.el6 ksplice-uptrack uptrack-python-cjson.x86_64 1.0.5-5.el6 ksplice-uptrack uptrack-python-cjson-debuginfo.x86_64 1.0.5-5.el6 ksplice-uptrack
Where,
- --disablerepo="*" : Disables specific repositories by id or glob. In this example, disable all repos.
- --enablerepo="ksplice-uptrack" : Enable specific repositories by id or glob. In this example, enable a repo called ksplice-uptrack
See also
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop



![RHEL / CentOS Yum Command: Blacklist Packages [ Disable Certain Packages ]](http://s0.cyberciti.org/images/rp/1/21.jpg)









{ 1 comment… read it below or add one }
Thanks,really helpful