| Fedora This forum is for the discussion of the Fedora Project. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-19-2007, 07:44 AM
|
#1
|
|
LQ Newbie
Registered: Feb 2007
Posts: 4
Rep:
|
how can i add a local Folder on local Hard Disk as Yum Repository ??
hi frinds ,
i have FC6 and for installing new package with yum , it get this package from internet .
i create a Folder in /root/Desktop/CD and copy all files in it .
how can i add this folder to yum repository , because i want yum install new package from this location not intarnet .
Vary Thanks
|
|
|
|
02-19-2007, 08:06 AM
|
#2
|
|
Moderator
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.4 OpenSuSE 12.2
Posts: 9,896
|
You have to simply add the following entry in /etc/yum.repos.d/fedora-core.repo or create it if you don't have this file on your system:
Code:
[Local-Install]
name=Fedora Core $releasever - $basearch
baseurl=file:///root/Desktop/CD/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
|
|
|
|
02-19-2007, 09:30 AM
|
#3
|
|
Member
Registered: Jun 2003
Location: UK
Distribution: Fedora 8, Centos 5.1
Posts: 480
Rep:
|
Think about rsync as well for keeping it up to date.
I do similar due to having 3 machines running fedora, it consumes less bandwidth to rsync an update mirror, than for every machine to update on its own. The downside is the amount of space required (currently about 10GB on my ftp server.
|
|
|
|
02-22-2007, 08:55 AM
|
#4
|
|
Member
Registered: Aug 2005
Location: The Big Easy
Distribution: Slackware, RHEL
Posts: 667
Rep:
|
Quote:
|
Originally Posted by v00d00101
Think about rsync as well for keeping it up to date.
I do similar due to having 3 machines running fedora, it consumes less bandwidth to rsync an update mirror, than for every machine to update on its own. The downside is the amount of space required (currently about 10GB on my ftp server.
|
Or,you could use try using nfs to mount your /var/cache/yum directory to your other machines. That's what I do at home with my two fedora boxes. One will be the main server and I update that one first. After that one is done, the other machine does not have to download any files since it's already located in the server and I have mounted the yum directory on the second machine. Works well. I have never tried out rsync though. That is also a good way to do things.
|
|
|
|
02-22-2007, 10:43 AM
|
#5
|
|
Member
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 17, 18, RHL 5.2
Posts: 537
Rep:
|
I agree with what the others have said, but also recommend checking out the createrepo command/package. It will create the repo metadata based on the rpms in the local directory. Placing this repository under /root is probably not the best idea. My preference would be to place it under /usr/local.
For example someone may not have access to the internet and want to copy all the RPMS from the installation CDs into a directory. Once that is completed you would follow up with createrepo and then adjust your configuration file under /etc/yum.repos.d. Creating the metadata and a cache will decrease your processing time on subsequent runs. It will be very easy to use yum to add packages rather than going through the CDs.
Bill
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:11 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|