Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 01-30-2005, 12:35 PM   #1
Senior Member
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
want to set up local yum repository

I'm thinking about the following:

I have a very slow internet connection, but would like to download a number of large files. I have a friend with cable who's willing to do it for me, but he uses windows and won't let me set up linux on his box.
  • How do I go about getting all the necessary files listed (dependencies etc.)
  • Once he's downloaded it, how do I get yum to recognise the files and install them according to need

I'm guessing that if I can point yum to an internet address, I should be able to point it at a local address as well. Would I have to set up a server or is a directory enough?

Since I plan to copy my home setup at my office, this might also be a good way to download files only once...
Old 01-31-2005, 06:32 AM   #2
Senior Member
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
You should Google for the deps, then just download the RPM's onto a CD and mount it etc...
Old 02-03-2005, 10:26 AM   #3
Senior Member
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993

Original Poster
Blog Entries: 1

Rep: Reputation: 46
Does that mean I can treat the cdrom as a yum repo?
If not, how would I keep track of what I'd installed and what not and which dependencies to satisfy first...
Old 04-23-2013, 04:18 AM   #4
LQ Newbie
Registered: May 2012
Distribution: OpenSUSE, Sabayon, RHEL
Posts: 23

Rep: Reputation: Disabled

You can always google for the deps, just make sure that you mention the whole package name, along with the versions (also make sure they're compatible to your OS). One pretty solution that I use for downloading packages is this website

There you'll find your search results listed, along with the name their compatible OS name and version. Cuts out lots of confusion.

And here's how I did created local repository for RHEL6. My reposiroty not only contains the DVD packages, but also other packages I've downloaded. Here's how I did it.

1. Mount your disc, install the vsftpd package

2. Create a folder in /var/ftp (assume the folder name is 'folder')

3. Copy all the DVD packages in this folder, also copy the packages you have downloaded, along with their their dep packages.

4. Open terminal, and
# cd /var/ftp/folder
# rpm -ivh deltarpm*
# rpm -ivh python-deltarpm*
# rpm -ivh createrepo*

5. Then create the repository
# createrepo /var/ftp/folder

This might take a few minute

6. Create a .repo file in /etc/yum.repos.d (free to choose any name for the file, just mind the .repo extension, it's not a hidden file!)
The file content should be like this

name=My Repository

7. Start and enable the vsftpd service
# service vsftpd start ; chkconfig vsftpd on

8. Clean the yum data
# yum clean all

9. Test the repository
# yum repolist

That should do it, it works for me flawless.
If something goes wrong, the STDOUT will say 'repolist: 0', in that case, check your steps again

You can also share this repository with other computers in the network.
Just create the .repo file in their /etc/yum.repos.d, all you have to do is change the 'localhost' in baseurl with your own IP address.
And also allow the FTP service through your firewall.


Last edited by JackHamm3r; 04-23-2013 at 04:21 AM. Reason: Typing mistake!
Old 04-23-2013, 04:42 AM   #5
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 17,814

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
@JackHamm3r: thread is from 2005 ...


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
can i create a local yum repository? Sharaz Linux - General 5 01-21-2008 02:51 PM
yum repository problems kpachopoulos Fedora 2 07-28-2005 08:03 PM
Creating A Yum Repository SepitvaOra Linux - Newbie 1 04-04-2005 07:54 AM
yum repository for redhat 9 csfalcon Linux - Software 1 10-20-2004 12:31 PM
install local dir as yum repository unixmad Linux - Newbie 2 10-01-2004 05:07 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:48 AM.

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
Open Source Consulting | Domain Registration