Create Channel/Repository In SpaceWalk
Aug 12, 2015
Technology
Package Preparation
First you should enable the repository via:
# wget http://yum.spacewalkproject.org/2.3/RHEL/6/x86_64/spacewalk-repo-2.3-4.el6.noarch.rpm
# rpm -ivh spacewalk-repo-2.3-4.el6.noarch.rpm
# vim /etc/yum.repos.d/jpackage-repo.repo
[jpackage-generic]
name=JPackage generic
#baseurl=http://mirrors.dotsrc.org/pub/jpackage/5.0/generic/free/
mirrorlist=http://www.jpackage.org/mirrorlist.php?dist=generic&type=free&release=5.0
enabled=1
gpgcheck=1
gpgkey=http://www.jpackage.org/jpackage.asc
Install the spacewalk-remote-utils
package:
# yum install -y spacewalk-remote-utils
WebUI Create Repository
Create an ia32-debian based channel, in WebUI:
Continue to create some child channel:
Now create the repository like following:
Until you created all of the ia32 based repositories:
Associate the repository with channels.
Sync Repositories
Use following scripts for syncing the packages into the system:
# vim precise-update.sh
until spacewalk-debian-sync.pl --username xxxxx --password xxxx --channel 'precise-ia32-updates' --url 'http://192.168.0.79/ubuntu/dists/precise-updates/main/binary-i386/'
do
echo "retry again"
sleep 30
done
# sh precise-update.sh
INFO: Repo URL: http://192.168.0.79/ubuntu/dists/precise-updates/main/binary-i386/
INFO: Ubuntu root is http://192.168.0.79/ubuntu/
INFO: Fetching Packages.gz... done
........