Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-02-2009, 05:14 AM   #1
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, 09:21 AM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,043
Blog Entries: 14

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

It should have lines like:

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, 03:11 PM   #3
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.


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

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration