Remove RPM-package/Disable YUM Repository – RHEL and CentOS


Before going to topic Remove RPM-package/Disable YUM Repository – RHEL and CentOS we should understand what is YUM repository and types of repository.

YUM repository are repo file which helps us to install RPM packages along with dependencies and  all dependencies are searched from all enabled repository which excludes disabled repositories.

Types repository:
  • Repo files 
          We have to add repo file manually and enable them to work
  • RPM package
         We have to install RPM repo file and enable them

Here we discuss how to Remove RPM-package/Disable YUM Repository – RHEL and CentOS. 

Remove RPM-package/Disable YUM Repository – RHEL and CentOS: 5 Easy Steps

(RPM Fusion repository taken as example)

Step 1: Find installed RPM repository
# rpm -qa | grep -i <repo-name>

EX-
# rpm -qa |grep -i rpmfusion
rpmfusion-nonfree-xxx-xxx

Step 2: Remove RPM repository
# rpm -e rpmfusion-nonfree-xxx-xxx

Step 3: Disable YUM Repository
# cd /etc/yum.repos.d

# vi <repo_file.repo>
Change enabled=0

Step 4: Remove repo file
# rm /etc/yum.repos.d/<repo_file.repo>

Step 5: Disable repo using config manager
# yum-config-manager --disable <repo-name>

Comments

Popular posts from this blog

[SOLVED] YUM: can not find RHNS CA file ERROR: can not find RHNS CA file: /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT

Setting an Operating System Release During Registration

YUM Update ERROR: 28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds' Trying other mirror