Cobbler add custom YUM Source

Source: Internet
Author: User

Cobbler add custom YUM Source

First, refer to my previous articles on Cobbler to create a Cobbler Remote Installation environment, and then create a YUM repository based on my previous articles on the RPM package and YUM installation source.

Related Articles:

  • Install and configure Cobbler in CentOS 6.5
  • Cobbler remote CentOS Installation
  • Cobbler batch installation of Ubuntu/CentOS Systems

 

  • Create your own YUM Repository
  • Yum configuration local source in CentOS

Run the following command on the host where Cobbler is located to add a Cobbler repo.

Sudo cobbler repo add -- name = my_repo -- arch = x86_64 -- breed = yum -- mirror = http: // 192.168.31.102/yum_repos/my/Packages/

Associate the repo created in the previous step with the specified profile. If there are multiple repositories, you can specify multiple

Sudo cobbler profile edit -- name = CentOS-6.6-x86_64 -- repos = "my_repo"

Then synchronize the repository.

Sudo cobbler reposync

In this step, you must note that I am using a self-created YUM source. If you want to specify the CentOS source, this step will be very slow and requires a large physical disk, this step synchronizes many rpm packages.

Finally, the test is done, use Cobbler to install a physical machine, and then view the/etc/yum. repos. d/cobbler-config.repo file on the newly installed machine, as shown below

[Core-0]
Name = core-0
Baseurl = http: // 192.168.31.102/cobbler/ks_mirror/CentOS-6.6-x86_64
Enabled = 1
Gpgcheck = 0
Priority = 1

[My_repo]
Name = my_repo
Baseurl = http: // 192.168.31.102/cobbler/repo_mirror/my_repo
Enabled = 1
Priority = 99
Gpgcheck = 0

In this case, you can use 'yum install helloworld' to install the software packages in our own repository.

This article permanently updates the link address:

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.