Chinaunix首页 | 论坛 | 博客
  • 博客访问: 749920
  • 博文数量: 176
  • 博客积分: 2548
  • 博客等级: 少校
  • 技术积分: 1749
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-29 16:36
个人简介

爱咋咋地

文章分类

全部博文(176)

文章存档

2024年(1)

2023年(17)

2022年(19)

2021年(3)

2020年(1)

2018年(1)

2017年(1)

2014年(1)

2013年(4)

2012年(11)

2011年(19)

2010年(22)

2009年(71)

2008年(5)

分类: 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

阅读(1193) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~