LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-14-2005, 08:31 PM   #1
Arodef
Member
 
Registered: Apr 2004
Distribution: Centos, Fedora
Posts: 123

Rep: Reputation: 17
yum question: How to update from backed up yum cache?


I just did an initial yum update on a fresh system and it took a long time since it had to download 500+MB of updated packages.

I'm going to backup /var/cache/yum/* so I can avoid having to download the package again for my next build. How do I specify to yum to use the backup to install the rpms?

Or do I just manually go into the directory with the rpms and do a rpm -Uvh *.rpm? I'm wondering if the dependencies might screw that up since it will just install the rpms in order.
 
Old 02-02-2010, 07:48 PM   #2
Rothbardian_Tech
LQ Newbie
 
Registered: Jan 2010
Distribution: Fedora / CentOS
Posts: 16

Rep: Reputation: 0
Installing from backup of yum cache

I'ts interesting you are posting such question, since I'm planning to do the same in other computers with a Fedora Distro. I never tried it, but if you do (in the local directory where the rpms are located)

yum localinstall *.rpm

It should check and locate the necessary dependencies automatically, and install in the proper order.
 
Old 02-02-2010, 11:42 PM   #3
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 770
Blog Entries: 6

Rep: Reputation: 75
if you backup /var/cache/yum there also packages in
next time u run yum , yum will look at the packages u have first
mean but if your packages inside is old yum will download new one

dont forget to edit yum.conf keepcache=1
 
  


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
problem after yum yum yum (delicious) alaios Fedora 3 01-14-2009 02:34 AM
yum update yum? TranceDude Linux - Software 3 08-23-2005 09:56 AM
Error: Caching enabled and local cache: //var/cache/yum/base/primary.xml.gz does... dr_zayus69 Linux - Software 2 07-06-2005 04:32 AM
Yum upgrade/update question stefaandk Linux - Newbie 1 06-23-2005 12:04 AM
yum update... question :S kevingpo Fedora 5 06-17-2005 11:01 PM


All times are GMT -5. The time now is 09:12 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration