LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-04-2010, 07:44 AM   #1
codenjanod
Member
 
Registered: Oct 2006
Posts: 38

Rep: Reputation: 15
Help with YUM setup with local repository


Hi all,

How would I go about setting up YUM on a server on my LAN, to connect to a local repository on my LAN ??

I have all the rpm files on a ftp server, with path:

ftp://linux/centos/5.4/updates/x86_64/

Do I make changes to the CentOS-Base.repo file ??

Do I create a new .repo file ??
What would it look like ??


Thanks
 
Old 03-04-2010, 07:52 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
No. Do not update the existing repos - add a new one. A couple of how-tos on this:

http://blogs.techrepublic.com.com/opensource/?p=609

http://www.howtoforge.com/creating_a...ository_centos

Both mention use of the "createrepo" command. To get that you need to use yum to install the createrepo package.
 
Old 03-05-2010, 03:09 AM   #3
kingston
Member
 
Registered: Mar 2008
Location: Bengaluru, India
Distribution: RHEL 5.5, Solaris 5.10
Posts: 215
Blog Entries: 1

Rep: Reputation: 21
create a base.repo file in your /etc/yum.repos.d directory
It should have the following content

[base.repo]
baseurl=ftp://..................
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

then start the yum-updatesd daemon in the client side. Now your yum setup is ready.
#yum list rpmname
#yum clean all
#yum install mod_ssl (for example)
It should work. Before doing this, ensure that vsftpd and yum-updatesd daemon should run in your server. Thats all
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
want to set up local yum repository linmix Linux - Software 4 04-23-2013 03:42 AM
Local YUM repository problem wegadnie Linux - Server 3 12-19-2008 11:33 PM
yum local repository rames2075 Linux - Enterprise 2 10-25-2008 08:16 AM
local yum repository tombolio Linux - Newbie 4 09-11-2008 07:28 PM
how can i add a local Folder on local Hard Disk as Yum Repository ?? vahid_p Fedora 4 02-22-2007 10:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration