About yum source configuration of RedHat5U3

Source: Internet
Author: User
Article Title: About the yum source configuration of RedHat5U3. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Today, in order to install a firefox flash plug-in under redhat, I introduced my yum source configuration. I used ubuntu's spt-get, which is quite easy to use, but it is based on the source selection. What is the source? When I first came into contact with the source term, it is hard to understand. No matter what it is, it is the most important thing to solve the problem for you ?! After your actual operations, the source is just like a water source, but you get the software you need in your system from the source. My understanding may be superficial, hope you can give me some advice.

The configuration of yum may be more difficult than the apt-get configuration in ubuntu, but it is only in different formats. Let's talk about my own experiences first. Previously, I used to install it on a CD, that is, the local source configuration used in yum.

1. Configure and use the yum local source

A: mount your CD to a directory: mount-t iso9660/dev/cdrom/mnt/cdrom

B: Modify your yum configuration file: edit the/etc/yum. repos. d/rhel-debuginfo.repo file, which has

[Rhel-debuginfo]

Name = Red Hat Enterprise Linux $ releasever-$ basearch-Debug

Baseurl = file: // mnt/cdrom/Server

Enabled = 1

Gpgcheck = 0

Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

It is mainly used to configure the baseurl, enabled, and gpgcheck fields. The local configuration is to use file: // absolute path.

Save and exit.

C: yum update

I think you may have a question: After the CD is put into the optical drive, if it can be identified, it will have been automatically mounted to/media. Why do we need to manually mount it? This is necessary, because if you do not mount the repodata file that yum requires, there is nothing to do with it, because yum will automatically resolve the dependency for you only if you want to read the file.

Another thing we want to learn with you is, what should we do when you have no disk and only iso files? A simple command solves mount-o loop/xx/xxx. iso/mnt/cdrom. You can continue. Haha ~

2. network source configuration

These are the essence of my predecessors, and I also modify the content in the configuration file mentioned above:

[Base]

CentOS-5-Base

# Items list = http://mirrorlist.centos.org /? Release = $ releasever5 & arch = $ basearch &

Repo = OS

# Baseurl = http://developer.centos.org/centos/?releasever/ OS /?basearch/

Baseurl = http://ftp.sjtu.edu.cn/centos/5/ OS /?basearch/

Gpgcheck = 1

Gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

# Released updates

[Update]

CentOS-5-Updates

# Items list = http://mirrorlist.centos.org /? Release = 4 & arch = $ basearch & repo = updates

Baseurl = http://ftp.sjtu.edu.cn/centos/5/updates/?basearch/

Gpgcheck = 1

Gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

# Packages used/produced in the build but not released

[Addons]

CentOS-5-Addons

# Items list = http://mirrorlist.centos.org /? Release = 4 & arch = $ basearch & repo = addons

Baseurl = http://ftp.sjtu.edu.cn/centos/5/addons/?basearch/

Gpgcheck = 1

Gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

# Additional packages that may be useful

[Extras]

Name = CentOS-5-Extras

# Items list = http://mirrorlist.centos.org /? Release = 4 & arch = $ basearch & repo = extras

Baseurl = http://ftp.sjtu.edu.cn/centos/5/extras/?basearch/

Gpgcheck = 1

Gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

# Additional packages that extend functionality of existing packages

[Centosplus]

CentOS-5-Plus

# Items list = http://mirrorlist.centos.org /? Release = 4 & arch = $ basearch & repo = centosplus

Baseurl = http://ftp.sjtu.edu.cn/centos/5/centosplus/?basearch/

Gpgcheck = 1

Enabled = 0

Gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

# Contrib-packages by Centos Users

[Contrib]

Name = CentOS-5-Contrib

# Items list = http://mirrorlist.centos.org /? Release = 4 & arch = $ basearch & repo = contrib

Baseurl = http://ftp.sjtu.edu.cn/centos/5/contrib/?basearch/

Gpgcheck = 1

Enabled = 0

Gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

# Vi dag. repo

[Dag]

Name = Dag RPM Repository for RHEL5

Baseurl = http://ftp.riken.jp/linux/dag/redhat/el5/en/?basearch/dag/

Enabled = 1

Gpgcheck = 1

Gpgkey = http://ftp.riken.jp/Linux/dag/packages/RPM-GPG-KEY.dag.txt

Import key rpm -- import http://ftp.sjtu.edu.cn/centos/5/ OS /i386/RPM-GPG-KEY-CentOS-5

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.