LinuxQuestions.org
Review your favorite Linux distribution.
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 01-30-2005, 11:35 AM   #1
linmix
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, 05:32 AM   #2
scuzzman
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, 09:26 AM   #3
linmix
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, 03:18 AM   #4
JackHamm3r
LQ Newbie
 
Registered: May 2012
Distribution: OpenSUSE, Sabayon, RHEL
Posts: 23

Rep: Reputation: Disabled
Smile

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

http://rpm.pbone.net

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

[MY_REPO]
name=My Repository
baseurl=ftp://localhost/folder
enabled=1
gpgcheck=0

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.


Cheers!

Last edited by JackHamm3r; 04-23-2013 at 03:21 AM. Reason: Typing mistake!
 
Old 04-23-2013, 03:42 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,352

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


Reply


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 01:51 PM
yum repository problems kpachopoulos Fedora 2 07-28-2005 07:03 PM
Creating A Yum Repository SepitvaOra Linux - Newbie 1 04-04-2005 06:54 AM
yum repository for redhat 9 csfalcon Linux - Software 1 10-20-2004 11:31 AM
install local dir as yum repository unixmad Linux - Newbie 2 10-01-2004 04:07 PM

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

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

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