LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-11-2005, 04:49 PM   #1
black_man
LQ Newbie
 
Registered: May 2003
Location: Iasi, Romania
Distribution: debian
Posts: 27

Rep: Reputation: 15
new system installation


hi !
i'm using debian unstable. i want to change my hdd and need to do a fresh install. of course i have installed many programs and i don't necessary want to search for each one again. my question is: is there any way i can save the list of the current installed packages and, after the new installation, automatically get them back ?
thanks !
 
Old 02-12-2005, 01:57 AM   #2
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
If you are putting in a new hard drive you do not necessarily need to do a new install. There are a couple of ways to go about this.
1. You could dump the contents of the old drive on to the new one with;

dd if=/dev/hddnn of=/dev/hddnn where nn is the partition #

Best to do this with Knoppix as the os is not operational.
You could then switch the drives around and this would not require any changes to fstab

2. Image the partition with PartImage on Knoppix and restore the image to the new drive. The negative of this is that the new partition is the same size as the old one and this is not always what you want.

3. To follow the route of a new install and use the existing packages then create a new directory under root called /debs. Copy the contents of /var/cache /apt/archives to /debs. Then do dpkg-scanpackages debs /dev/null | gzip > debs/Packages.gz (see APT documentation for further detail). This will produce the file Packages.gz which lists the contents of all the packages in /debs. You can then burn the contents of /debs to a cd and use apt-cdrom to install the packages or use dselect.

Last edited by TigerOC; 02-12-2005 at 02:00 AM.
 
  


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
Solaris Installation - System Keeps Rebooting qs_tahmeed Solaris / OpenSolaris 3 07-18-2005 12:34 AM
X-Window system installation through network saurabhnasa Linux - Networking 0 08-09-2004 08:24 AM
The Ultimate Installation System... anonE9 Programming 5 05-19-2004 11:24 PM
Base system installation lil_redman Linux - Newbie 6 10-29-2003 09:47 AM
redhat installation - system halted elizabetg Linux - Software 1 04-17-2001 11:59 AM

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

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