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: