LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   yum server and client configaration same pc (RHEL 6) (https://www.linuxquestions.org/questions/linux-newbie-8/yum-server-and-client-configaration-same-pc-rhel-6-a-4175442420/)

johnyhasan 12-21-2012 04:55 AM

yum server and client configaration same pc (RHEL 6)
 
how i can configure yum server and client configaration in my pc.
that means my pc will be server and my pc will be client.
plz help me

hamzar.pm 12-21-2012 06:22 AM

hey did u got the solution????

unSpawn 12-21-2012 06:50 AM

Quote:

Originally Posted by johnyhasan (Post 4854242)
how i can configure yum server and client configaration in my pc.

http://wiki.centos.org/HowTos/CreateLocalMirror or http://www.howtoforge.com/creating_a...ository_centos to list just two.

jsaravana87 12-23-2012 05:46 AM

server side

cd /etc/yum.repos.d
mv C* /tmp
cat > create.repo
[rhel-server]
name=redhat
baseurl=ftp://10.200.xx.xx/pub/server ---- put ur server side ipaddress
enabled=1
gpgcheck=0

mount /dev/cdrom /mnt
mkdir -p /var/pub/server
cd /mnt/Centos

cp -rfv * /var/pub/server
wait for it to finished it off
move all repositoryrpm to /var/pub/server

cd /var/pub/server
rpm -ivh create.repo --install these package
rpm -ivh vsftpd ---install these package
createrepo -g /var/pub/server


start vsftpd service

service vsftpd restart
chkconfig vsftpd on


client side

cd /etc/yum.repos.d
touch create.repo
vi create.repo
[rhel-server]
name=redhat
baseurl=ftp://10.200.xx.xx/pub/server MENTION UR SERVER IP HERE
enabled=1
gpgcheck=0


All times are GMT -5. The time now is 02:06 PM.