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

How to install glibc 2.14 on RHEL 6/ RHEL 7/ CentOS 7

Export and Import users/groups and OU in AD Server 2008 using LDIFDE command.

How to Set Up and Configure latest yum repository on CentOS