Tuesday, June 26, 2012

how to install yum server in redhat 6/linux 6/RHEL 6

There are some difference installing yum server in red hat 6 and red hat 5. now i am going to show how to install yum server in red hat 6.

1.mount your red hat 6 DVD  in /media folder like 
#mount /dev/Dvd  /media

2.go to /media/RHEL_6.0*86_64(H:)/Packages folder like this
#cd  /media/RHEL_6.0*86_64(H:)/Packages


3.install vsftpd rpm like this 
#rpm -ivh vsftpd-2.2.2-6.el6.x86_64.rpm

4.go /media/RHEL_6.0*86_64(H:) copy Packages folder to /var/ftp/pub write this command like  
#cp -rfv  /media/RHEL_6.0*86_64(H:)/Packages  /var/ftp/pub and enter

5.go to /etc/yum.repos.d make a file server.repo edit this file by vim or vi and write like this way

#vim /etc/yum.repos.d/server.repo

[server]
baseurl=ftp://your ip/pub
enabled=1
gpgcheck=0


6.install three rpm  a.create repo b.deltarpm c.python-deltarpm like
#rpm -ivh createrepo  deltarpm  python-deltarpm

7. go to /media/RHEL DVD/Server folder copy repodata  folder and paste in /var/ftp/pub folder like 
#cp -rfv /media/RHEL DVD/Server  /var/ftp/pub
8.run this command like
#chkconfig vsftpd on

9.run this command like
#  /etc/init.d/vsftpd restart

10.run this command like
#creterepo -v /var/ftp/pub/Packages

11.run this command like
#yum clean all

12.and finally install your service like  
#yum install  squid* -y

13.to remove service run like 
#yum remove squid* -y


Protected by Copyscape Plagiarism Checker

No comments:

Post a Comment