To unify the repo File Name of the rhel system, the repo file that comes with rhel is called RedHat. repo is stored in/etc/yum. repos. d/I did not expect to always be rewritten as: # RedHatRepositories # Managedby (rhsm) subregion-manager if you are in redhat. in the repo, XXOOOOXX # XXXXXXXXXXXXXXXXX # kkkkkk is written.
To unify the repo File Name of the rhel system, the repo file that comes with rhel is called RedHat. repo.
Stored in/etc/yum. repos. d/
I did not expect it to always be rewritten:
#
# Red Hat Repositories
# Managed by (rhsm) sub‑manager
If you write in redhat. repo
XXOO
OOXX
# XXXXXXXXXXXXXXXXX
# KKKKKKKKKKKKKKKKKKKK
In the end, your comment row will be retained, and the data row will be deleted.
After searching, it was found that the plug-in submodules-manager of rhel6 was killed.
The file that comes with the sub‑manager plug-in is:
Script File:/usr/lib/yum-plugins/subscription-manager.py
Configuration File:/etc/yum/pluginconf. d/subscription-manager.conf
The script/usr/share/rhsm/repolib. py is called.
Rewrite or update the/etc/yum. repos. d/redhat. repo file.
This file is updated every time yum is called (without the help of plugins.
Therefore, to avoid conflict, you can perform the following operations:
1. rename your repo file, such as RHEL. repo.
Second, stop using the plug-in. Set enable to 0 in the configuration file.
In order not to affect the built-in functions of the system, we recommend that you select the first method,
In addition, it seems that the rhel6 system exists, and 4 and 5 are not found.