RedHat6u redhat. repo File

Source: Internet
Author: User
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.