Yum repo server quick Manual

Source: Internet
Author: User
Tags gpg

I used apt rpm in the past, mainly because there were a considerable number of as3 machines at the time. It was too painful for as3 to install yum, so I gave up yum and used apt, now the system is basically rhel4 or 5, and we plan to maintain a repo on our own to facilitate upgrades and improve security. Record the process.

1. Download iso

2. Create the directory mkdir-p/repo/6/i386/base/repo/6/i386/update

3. Copy the rpm in the CD to the base and create the repo information.

[Root @ yumserver i386] # createrepo base

4. install yum-arch yum install yum-arch

5. Import key

Rpm-import/mnt/RPM-GPG-KEY-redhat-release
Rpm-import/mnt/RPM-GPG-KEY-redhat-beta

6. Create a head File

Yum-arch i386/base

Digesting rpms 100% complete:
Total: 2679
Used: 2679
Src: 0

Writing header.info file

7. Attach a repo File

[Base]
Name = Base
Base url = http://baoz.net/rhel/6/i386/base/
Gpgcheck = 1
Gpgkey = file: // etc/RPM-GPG-KEY-redhat-release

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.