Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 15th February 2011, 05:27 AM
seyd-ali's Avatar
seyd-ali Offline
Registered User
 
Join Date: Jul 2009
Location: iran-kermanshah
Posts: 67
linuxfedorafirefox
downloading all repositories

hello
how i can download all repositories without install a program with yum
Reply With Quote
  #2  
Old 15th February 2011, 10:18 AM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,929
linuxredhatfirefox
Re: downloading all repositories

One method would be to use reposync. This will download all files from a specific repository to the local hard disk.
Code:
reposync --repoid=fedora --download_path=/<wherever_you_want_the_files_saved>
You would then do the same for the other repositories. These downloads will take an extremely long time in most cases.
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #3  
Old 20th February 2011, 02:45 PM
seyd-ali's Avatar
seyd-ali Offline
Registered User
 
Join Date: Jul 2009
Location: iran-kermanshah
Posts: 67
windows_xp_2003firefox
offline repository

hello
how i can creat an offline repository and install packages that are downloaded by (yum install) in cache directory on another computer,without connecting to internet
Reply With Quote
  #4  
Old 20th February 2011, 04:30 PM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,929
linuxiceweasel
Re: offline repository

You use reposync to get the files and then manually create a local repository. Which repository do you want to "localize"?
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #5  
Old 20th February 2011, 05:12 PM
DavidMcCann Offline
Registered User
 
Join Date: Jul 2008
Location: London
Posts: 458
linuxopera
Re: offline repository

Have a look here
http://forums.fedoraforum.org/showth...dvd+repository

You'd need a file /etc/yum.repos.d/local.repo with something like

[local_repo]
name=local_repo
baseurl=hostname/path/to/your/repo
enabled=1
gpgcheck=0
Reply With Quote
  #6  
Old 22nd February 2011, 04:32 AM
seyd-ali's Avatar
seyd-ali Offline
Registered User
 
Join Date: Jul 2009
Location: iran-kermanshah
Posts: 67
linuxfedorafirefox
Re: offline repository

Quote:
Originally Posted by glennzo View Post
You use reposync to get the files and then manually create a local repository. Which repository do you want to "localize"?
fedora and rpm fusion
Reply With Quote
  #7  
Old 22nd February 2011, 09:31 AM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,929
linuxiceweasel
Re: offline repository

PHP Code:
reposync --repoid=fedora --download_path=/path/of/your/choice
reposync 
--repoid=rpmfusion-free --download_path=/path/of/your/choice
reposync 
--repoid=rpmfusion-nonfree --download_path=/path/of/your/choice 
This will take a while. The Fedora repository is fairly large. Once the downloads are complete you'll need to run createrepo against each and then actually create a yum repo file for them.

This also assumes that you have the rpmfusion repositories installed on your system.
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #8  
Old 22nd February 2011, 09:55 AM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,929
linuxiceweasel
Re: offline repository

OK. I've done this for the rpmfusion-nonfree repo. I started in a folder /temp in my home path, so it's /home/glenn/temp. I issued
PHP Code:
reposync --repoid=rpmfusion-nonfree --download_path=/home/glenn/temp 
This downloaded 176 files and saved them in /home/glenn/temp/rpmfusion-nonfree. Now I'll run createrepo. You will need to make sure that createrepo is installed on your system. If it isn't then install it with
PHP Code:
su -'yum install createrepo' 
Now you can run the command createrepo.
PHP Code:
[glenn@phenom14 temp]$ createrepo rpmfusion-nonfree
176
/176 larabie-uncommon-fonts-0-0.5.20011216.fc11.noarch.rpm                 
Saving Primary metadata
Saving file lists metadata
Saving other metadata 
Now create a .repo file in the folder /etc/yum.repos.d. Here's my test file.
PHP Code:
[rpmf-nonfree]
Name=RPMFusion Non-Free Local Repository
baseurl
=file:///home/glenn/temp/rpmfusion-nonfree/ 
Very basic but it works. Here's yum repolist on my system now.
Code:
[glenn@phenom14 yum.repos.d]$ yum repolist
Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit
Adding en_US to language list
Loading mirror speeds from cached hostfile
 * fedora: mirror.seas.harvard.edu
 * rpmfusion-free: mirror.liberty.edu
 * rpmfusion-free-updates: mirror.liberty.edu
 * rpmfusion-nonfree: mirror.liberty.edu
 * rpmfusion-nonfree-updates: mirror.liberty.edu
 * updates: mirror.seas.harvard.edu
repo id                                    repo name                                                     status
adobe-linux-i386                           Adobe Systems Incorporated                                            18
fedora                                     Fedora 14 - i386                                              17,779+104
fedora-local                               Fedora 14 i386 - Networked Repository                             17,761
flash                                      flash                                                                2+2
google                                     Google - i386                                                          5
google-chrome                              google-chrome                                                          3
rpmf-nonfree                               RPMFusion Non-Free Local Repository                                  176
rpmfusion-free                             RPM Fusion for Fedora 14 - Free                                      364
rpmfusion-free-updates                     RPM Fusion for Fedora 14 - Free - Updates                            432
rpmfusion-nonfree                          RPM Fusion for Fedora 14 - Nonfree                                   176
rpmfusion-nonfree-updates                  RPM Fusion for Fedora 14 - Nonfree - Updates                         222
updates                                    Fedora 14 - i386 - Updates                                     5,036+100
virtualbox                                 Fedora 14 - i386 - VirtualBox                                          5
repolist: 41,979
So it works. You can do the same for the others.
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #9  
Old 1st September 2012, 06:22 AM
Mahan Offline
Registered User
 
Join Date: Sep 2012
Location: Iran
Posts: 1
linuxfirefox
Re: offline repository

Hi
Many thank's about offline repository information .
I have new question ; my internet connection is very slow ! and i want to share repository in my workgroup with my friend in smal network about 10 computer and we want to work fedora together .
we want to use one system as a Server and other PC's connected to server for update and download package's .
For example when i want install VirtualBox we want it's download from Server and when other PC's want to install VirtualBox ; its download from Server no directly connect to internet and download it again .

Thank's
Reply With Quote
Reply

Tags
offline, repository

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Offline Install with offline dependencies. gracelyn Using Fedora 0 7th August 2010 05:25 AM
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Pleas tmick Using Fedora 3 24th August 2008 07:52 PM
How To: Offline Personal Repository phoxis Using Fedora 5 13th March 2008 01:28 AM
Question about building an offline Yum Repository elduderino Using Fedora 2 20th January 2008 11:36 PM
Build an Offline repository for someone W/O internet keiichi Using Fedora 3 24th March 2006 05:45 PM


Current GMT-time: 08:30 (Monday, 20-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat