Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-08-2011, 09:58 AM   #1
Registered: Jun 2011
Posts: 96

Rep: Reputation: Disabled
yum local configuration

hi , i was trying to configure yum locally , can i copy files to any other location other than /var/ftp/pub.If possible please tell me how to configure yum.repos.d/rhel debuginfo file.
Old 08-08-2011, 01:14 PM   #2
Registered: Mar 2010
Posts: 58

Rep: Reputation: 5
Hi, mlnm,

I don't have a good idea about what you're trying to do, but yum repositories are actually very easy to set up. First, /etc/yum.repos.d/<anything>.repo will be read as a repository. I generally use base.repo, and avoid modifying the installed debug repository. Inside the repository file, entries have this form:
[Repository Label]
name=Repository Name
enabled=[0|1] tells yum whether or not to reference this repository.
gpgcheck=[0|1] tells yum whether or not to verify the GPG signature of the packages in the repository.

You can copy your RPM files to any directory you wish, provided yum can read from it. Then, provide the path in the baseurl value. If you are trying to manage several hosts, consider using Apache to set up an http file server on one host. Then, you can change baseurl and gpgkey to something like:

Finally, yum requires a "repodata" directory as a sub of the file location directory. Repodata is a set of XML files (and, optionally, an sqlite database) with information on the files available in the given packages, dependencies, etc. You create the repository by doing

[root]# /path/to/repository
[root]# createrepo -d .
(Note the cwd dot at the end of the createrepo command.) This will set up the repository for yum to use.

At the end, execute

[root]# yum repolist
to verify yum can correctly interact with your new repository.

Good luck!
Old 08-08-2011, 03:56 PM   #3
John VV
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,052

Rep: Reputation: 2459Reputation: 2459Reputation: 2459Reputation: 2459Reputation: 2459Reputation: 2459Reputation: 2459Reputation: 2459Reputation: 2459Reputation: 2459Reputation: 2459
without knowing what OS this is ???
rhel5 or 6
centos 5 or 6
SL 5 or 6
fedora 14 or 15

guessing fedora 15
if so did you read the documentation
that is covered
if rhel/cent/sl


repository, yum

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Yum local install - package and all dependencies in local directory lppatmore Linux - Newbie 6 02-21-2015 02:53 AM
Yum client package/updates installation and updates through local Yum Server gautamnarayan Linux - Server 1 03-11-2010 01:51 AM
local yum repository tombolio Linux - Newbie 4 09-11-2008 07:28 PM
Local YUM Repo lord loh. Linux - Software 2 05-28-2007 12:41 AM
how can i add a local Folder on local Hard Disk as Yum Repository ?? vahid_p Fedora 4 02-22-2007 10:43 AM

All times are GMT -5. The time now is 04:51 PM.

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