Delete the library and configuration file (repositoriesand+aitonfiles) of centosrel 1 delete the library configuration file
Run the following command as root:
[Plain]View plaincopyprint?
- # Cd/etc/yum. repos. d/
List all databases (repo)
[Html]View plaincopyprint?
- # Ls
- The CentOS-Base.repo epel. repo mirrors-rpmforge-testing
- CentOS-Debuginfo.repo epel-testing.repo rpmforge. repo
Delete the target database and specify a specific name.
[Plain]View plaincopyprint?
- # Rm epel. repo epel-testing.repo
[Html]View plaincopyprint?
- ###*****************************###
- ### Make sure you delete GPG keys also ###
- ###*****************************###
- # Rm/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
- # Yum clean all
2. delete the. rpm Package of the database.
[Plain]View plaincopyprint?
- # Rpm-qa | grep epel
Output:
[Html]View plaincopyprint?
- Epel-release-6-8.noarch
Delete
[Plain]View plaincopyprint?
- # Yum remove epel-release-6-8.noarch
Clear configurations
[Plain]View plaincopyprint?
- Yum clean all
-