How to configure yum repository server in RHEL 5

24,353 views

Published on

How to configure yum repository server in RHEL 5

Published in: Self Improvement
3 Comments
3 Likes
Statistics
Notes
No Downloads
Views
Total views
24,353
On SlideShare
0
From Embeds
0
Number of Embeds
20
Actions
Shares
0
Downloads
476
Comments
3
Likes
3
Embeds 0
No embeds

No notes for slide

How to configure yum repository server in RHEL 5

  1. 1. How to Configure aYum Repository Server in RHEL 5 Written By: Ahmer Mansoor Email : ahmer_mansoor@hotmail.com Profile : http://www.linkedin.com/in/ahmermansoor
  2. 2. Written By: Ahmer MansoorEmail : ahmer_mansoor@hotmail.comProfile : http://www.linkedin.com/in/ahmermansoor1) Install vsftpd (FTP Server) & createrepo Packages Insert RHEL 5 Installation DVD # mkdir ~/Desktop/rhel_cd # mount /dev/cdrom ~/Desktop/rhel_cd # cd ~/Desktop/rhel_cd/Server # rpm –ivh vsftpd* # rpm –ivh createrepo*2) Copy all packages from DVD to LINUX filesystem # cp ~/Desktop/rhel_cd/Server/ /var/ftp/pub # cd / # eject3) Configure Local Yum Repository Server # cd /var/ftp/pub/Server/repodata # cp comps-rhel5-server-core.xml /var/ftp/pub/Server/ # cd /var/ftp/pub/Server # createrepo -vg comps-rhel5-server-core.xml /var/ftp/pub/Server/ # service vsftpd start # chkconfig --add vsftpd4) Configure Clients Run following commands on clients # vi /etc/yum.repos.d/yum_server.repo Add: [Server] name=YUM_SERVER baseurl=ftp://192.168.2.100/pub/Server gpgcheck=0 # vi /etc/vsftpd/vsftpd.conf Page | 2
  3. 3. Written By: Ahmer MansoorEmail : ahmer_mansoor@hotmail.comProfile : http://www.linkedin.com/in/ahmermansoor Set the following parameter (if not already set) anonymous_enable = yes # service vsftpd restartNow your clients can use this yum server to download & install packages & resolvedependencies. Page | 3

×