November 23, 2024, 08:09:09 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: YUM CONFIGURATION  (Read 13016 times)

Offline PCSSUN0007

  • New Member
  • Posts: 1
YUM CONFIGURATION
« on: June 19, 2009, 09:08:56 AM »
hi all,

i want to make local yum repositry for standalone pc

Offline idveera

  • Linux Noob !
  • *
  • Posts: 4
Re: YUM CONFIGURATION
« Reply #1 on: June 21, 2009, 07:11:42 AM »
hi

first mount DVD ( redhat os) for your /mnt directory

then follow below steps

# mkdir  /var/ftp/pub/Server
# cd /mnt
# cd /Server
# cp -r . /var/ftp/pub/Server
# rpm -ivh createrepo -v /var/ftp/pub/Server

then

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


(RHEL)
name=RHEL
baseurl=file:///var/ftp/pub/Server
enabled=1
gpgcheck=0


wq!  -- to save


# cd /var/ftp/pub/Server
Server# rm -rf .olddata

#yum clean all
# yum install package name










Offline itguy

  • New Member
  • Posts: 2
Re: YUM CONFIGURATION
« Reply #2 on: January 26, 2013, 06:45:36 PM »
you can check below site for step by step info.

http://redhatserverconfiguration.blogspot.in/p/yum-server-introduction-yellowdog.html