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
- 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.
Also follow other topics how to Configure
latest yum repository for CentOS , Upgrade
CentOS to latest version using yum update command and Update
CentOS packages using yum update command without upgrading to minor release.
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
Post a Comment