April 19, 2024, 12:03:09 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: yum server  (Read 3775 times)

Offline praveensriwashtwa

  • New Member
  • Posts: 1
yum server
« on: November 23, 2009, 07:50:25 AM »
how can i make yum server to my pc

Offline kaushalpatel1982

  • LST CareTaker
  • Linux Learner
  • *****
  • Posts: 87
Re: yum server
« Reply #1 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.