Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Others => Miscellaneous => Topic started by: praveensriwashtwa on November 23, 2009, 07:50:25 AM

Title: yum server
Post by: praveensriwashtwa on November 23, 2009, 07:50:25 AM
how can i make yum server to my pc
Title: Re: yum server
Post by: kaushalpatel1982 on November 29, 2009, 09:17:15 AM
First of all, You should know about FTP or HTTP server. You should have createrepo rpm installed on your server.

1. Login with root
2. Create a folder. copy all the modules and dependencies in this folder. (Eg. Created folder in /var/ftp/pub/repo. copied all rpm from the DVD in this folder.)
3. Configure your FTP or HTTP Server to access this folder. After configuration restart service. (As I created folder in default FTP root, I need to just restart vsftpd to start ftp service)
4. Go to the folder and run following command,
# createrepo .

The command with create .xml file in folder. that is all you have to on server side. Now configure client to access the path in /etc/yum.repo.d/server.repo.

check the configuration using yum command.