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 |
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-02-2009, 05:14 AM
|
#1
|
Member
Registered: Nov 2009
Location: Kolkata, India
Distribution: Fedora 11
Posts: 136
Rep:
|
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.
|
|
|
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,831
|
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?
|
|
|
12-02-2009, 03:11 PM
|
#3
|
Member
Registered: Nov 2009
Location: Kolkata, India
Distribution: Fedora 11
Posts: 136
Original Poster
Rep:
|
Thanks for taking time to answer.
I do not reinstall frequently. Sometimes i have to due to some bad experiments.
|
|
|
All times are GMT -5. The time now is 10:34 AM.
|
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
|
|