Cobbler adds a custom YUM source, cobbleryum

Source: Internet
Author: User

Cobbler adds a custom YUM source, cobbleryum

Link: http://blog.csdn.net/kongxx/article/details/43924263


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

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-0baseurl=http://192.168.31.102/cobbler/ks_mirror/CentOS-6.6-x86_64enabled=1gpgcheck=0priority=1[my_repo]name=my_repobaseurl=http://192.168.31.102/cobbler/repo_mirror/my_repoenabled=1priority=99gpgcheck=0


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


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.