爱咋咋地
分类: LINUX
2010-04-12 22:59:34
Yum server Howto /
Configuration / Setup Thru Ftp service
( This is submitted by Mr. Rajendra
Raghuvanshi to ElectroMech and VGLUG on May 28 )
( Version 1.000 )
Configuring Yum Server in RHEL5 you
should have two RPM -
1.vsftpd->vsftpd-2.0.5.10.el5.i386.rpm
2.createrepo ->
createrepo-0.4.4-2.0.fc6.noarch.rpm
step
1.--------------------------------------
1. Run vsftpd rpm
rpm -ivh vsftpd-*.rpm
2. iptables -I INPUT -p tcp
--dport 20 -j ACCEPT
2. iptables -I INPUT -p tcp --dport 21 -j
ACCEPT
3. iptables -I INPUT -p udp --dport 21 -j ACCEPT
3.
iptables -I INPUT -p udp --dport 20 -j ACCEPT
4. This is for SELinux
setsebool allow_ftpd_full_access on
5. open the file :- vim
/etc/sysconfig/iptables-config and modify below mention
line
IPTABLES_MODULES="ip_conntrack_netbios_ns
ip_conntrack_ftp"
and now your ftp server is ready to
take the responsibilty of yum server.
step
2.--------------------------------------
Copy all rpm atÂ
/var/ftp/pub  in respective folder that you want to access
from yum repository and If you have any default repodata/
directories it's time to re-create them using the "createrepo"
command. Now this command doesn't comes by default I guess so we need
to install it's rpm
****1.rpm -ivh
createrepo-0.4.4-2.rpm
/var/ftp/pub
3.createrepo -V .
it will create repodata file and now you system ready for yum
server.
----------------------------Client-------------------------
The
above commands will do most part of the job. Now it's time to
configure the vim /etc/yum.repos.d/rhel-debuginfo.repo for our
local repository.
#vim
/etc/yum.repos.d/rhel-debuginfo.repo
[reposfile]
name=
Updates
baseurl=
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY
-----------
Thanx to Mr. Rajendra Raghuvanshi
ElectroMechÂ
Nilesh J. Vaghela