LinuxQuestions.org

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

johnyhasan 12-21-2012 05: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 07:22 AM

hey did u got the solution????

unSpawn 12-21-2012 07: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.

arun5002 12-23-2012 06: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 10:57 PM.