LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-23-2006, 01:53 PM   #1
cwhh
LQ Newbie
 
Registered: Sep 2005
Posts: 25

Rep: Reputation: 15
Is it possible to store security update files for later reinstallation?


If people need to reinstall debian, they also need to upgrade all those security updates after the reinstallation. However, this kind of job is really daunting for dialup users. I recently intended to reinstall sarge r0a and found that I need to upgrade (download) about 220 MB during apt-get upgrade! For a dialup user like me, it's really impossible. So I consider buying a new sarge r2 dvd set which came out recently (April?), those security updates will be minimized.

In case of any disaster happened in the future and need to reinstall the whole debian linux, is there a way to store (or back up) those downloaded security updates during apt-get upgrade or after those upgrade processes before any disaster occurs?

If that's possible, where can I find those updates and how to apply them to the newly reinstalled system?

Any suggestion will be very much appreciated!

cwh
 
Old 05-23-2006, 02:13 PM   #2
Okie
Senior Member
 
Registered: Mar 2002
Location: Oklahoma
Posts: 1,154

Rep: Reputation: 187Reputation: 187
yup, i keep updates all in a seperate directory, and if my system ever borks i can re-install and in go in that update directory and just type in upgradepkg *tgz and all upgrades are done in one command...

your command to upgrade packages will depend on your distribution...
 
Old 05-23-2006, 02:28 PM   #3
cwhh
LQ Newbie
 
Registered: Sep 2005
Posts: 25

Original Poster
Rep: Reputation: 15
Thank you for your response Okie! I guess it is possible to do this, but.. Is there any debian users knows that in what directory can I find those downloaded updates in debian? and how to apply to the newly reinstalled system?

cwh
 
Old 05-23-2006, 05:58 PM   #4
Okie
Senior Member
 
Registered: Mar 2002
Location: Oklahoma
Posts: 1,154

Rep: Reputation: 187Reputation: 187
Debian's apt has a cache directory that stores those update packages after install, but one word about apt, if you use apt-get clean it will delete them all, so you need to save them somewhere outside your operating system's directory, maybe burn them to CDR or copy them over to a seperate disk partition before clearing them out of apt's cache directory
 
Old 05-26-2006, 05:59 PM   #5
cwhh
LQ Newbie
 
Registered: Sep 2005
Posts: 25

Original Poster
Rep: Reputation: 15
A way to reinstall all security updates without downloading them from the net

Thank you again Okie. I found the directory where all updates stored inside: /var/cache/apt/archives

If people ever need to reinstall the whole debian system using dial-up, the following steps will help to reinstall all security updates without downloading them from the net:

1. In a newly installed debian system, everytime when doing a security update, back up those downloaded updates in /var/cache/apt/archives to a secure place, such as a cd or another disk.

2. If any disaster occurs in the future, just reinstall the whole debian system.

3. Immediately after reinstallation, copy those backup security updates back into /var/cache/apt/archives

4. Run apt-get update && apt-get upgrade (or aptitude or synaptic) to reinstall those security updates without ever downloading them from the net again.

I did an experiment on my machine and it worked well!

cwh
 
Old 05-26-2006, 08:43 PM   #6
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
If that's what you are looking to do you may be interested in how you can store and reload your package selections for Debian..

On the source machine do
dpkg --get-selections >selections.txt
copy that selections.txt file to the destination machine it contains a list of the status of all packages installed on your machine.
On destination machine: (make sure sources.list is the same)

apt-get update
dpkg --set-selections <selections.txt
apt-get upgrade



Very usefull if you want to setup several machines hte same way.. or restore a machine that has crashed by reloading it ..
 
Old 05-27-2006, 02:04 PM   #7
cwhh
LQ Newbie
 
Registered: Sep 2005
Posts: 25

Original Poster
Rep: Reputation: 15
My original question was to back up downloaded security updates themselves for later reinstallation in case any disaster happens in the future, not just the list of the status of all packages installed on my machine. I think this is just good for distributing to multiple machines. It's helpful but not really relevant. But, thank you farslayer anyway!
 
Old 05-27-2006, 07:12 PM   #8
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
I figured since your last post was for system recovery after a disaster, you might find it usefull to add you your recovery plan.
 
  


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 do i store my html files for my apache? philfighter Linux - Networking 8 04-22-2015 08:26 AM
MandrivaLinux2006 - Can you store bookmarks onto your personal files/CD? JBailey742 Linux - Software 2 05-14-2006 04:23 PM
Partition where i can store my files while formatting anti.corp Slackware - Installation 1 12-02-2005 03:44 PM
where to store source files in vector dibblethewrecke Linux - Software 3 12-28-2003 04:29 AM
Slackware Security Update: GDM security update phoeniXflame Slackware 2 08-26-2003 04:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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