LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-02-2009, 04:14 AM   #1
imagine_me2
Member
 
Registered: Nov 2009
Location: Kolkata, India
Distribution: Fedora 11
Posts: 136

Rep: Reputation: 22
Unhappy Backing up software downloaded using yum.


Sometimes i use yum to download software that didnt come with my distro, and i lose them all when i reinstall my os.

How can i keep a copy of the software along with the dependencies that were downloaded so that i dont have to download every thing all over again.

For example (Vlc + Dependencies + Updates) cost me around 52 Mb. How do i backup those 52 Mb , so that i could get Vlc running later after a fresh install.

Thanks in advance.
 
Old 12-02-2009, 08:21 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Check out your yum.conf file (typically in /etc).

It should have lines like:
cachedir=/var/cache/yum
keepcache=1

The cachedir is where it would put files it had saved which include headers and rpms.
The keepcache if set to 1 tells it to save those files. If it is 0 it does NOT save the files.
You could periodically backup the contents of /var/cache/yum then restore it after a reinstall. You could use "rpm -ivh *.rpm" in that directory after the restore to reinstall all the rpms found there. Since they'll all be in the same rpm install they should resolve all dependencies.

Why are you having to reinstall frequently though?
 
Old 12-02-2009, 02:11 PM   #3
imagine_me2
Member
 
Registered: Nov 2009
Location: Kolkata, India
Distribution: Fedora 11
Posts: 136

Original Poster
Rep: Reputation: 22
Thanks for taking time to answer.
I do not reinstall frequently. Sometimes i have to due to some bad experiments.
 
  


Reply



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
Where can I find the rpm that yum already downloaded? mr3d Linux - Newbie 3 06-27-2009 05:25 PM
Backing up yum rpm's schnappy Fedora 3 03-08-2009 03:48 AM
where yum saves downloaded packages . how can i install all of these on other system amolgupta Linux - Software 3 11-22-2007 06:54 AM
Can YUM be used to installed locally downloaded RPMs? Akhran Linux - Newbie 5 04-01-2006 10:24 AM
Reinstalling yum downloaded files linmix Linux - Software 1 04-16-2005 01:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:48 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