Setup YUM repository on HTTP
Many times we need to give access to YUM repository to our clients browsing through www!
Lets assume you need to setup YUM repository on HTTP and clients will download RPM's from this http yum repository
client --> Downloads RPM's --> http://ip/Server --> YUM REPOSITORY on SERVER
Server Side :
1) Copy Server folder from Red Hat dvd into /var/www/html
2) If you don't have www folder in var it means you have not installed "httpd" daemon
3) Install it! (Am not gonaa tell you in this article about installing RPM)
4) If you don't hace "createrepo" installed then install it!
5) Go to directory in which u have copied Server directory
6) Fire-up command : createrepo Server
7) Now! start httpd daemon :
- service httpd start
- chkconfig httpd on
Client Side :
1) Go to /etc/yum.repos.d
2) cp rhel-debug-info.repo myrepo.repo
3) Edit file myrepo.repo
- [Server]
- baseurl=http://serverip/Server
- enabled=1
- gpgchec=0
- #gpgkey . . . . . . . (# comment is imp)
4) Fire-up :
- service yum-updatesd restart
- chkconfig yum-updatesd on
- yum clean all
5) Thats it! Now you can install rpm from http yum repository
Test it : yum install httpd*
Happy Linux!
0 comments:
Post a Comment