LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-10-2004, 04:10 PM   #1
bfloeagle
Member
 
Registered: Jun 2000
Location: Upstate New York
Distribution: Ubuntu
Posts: 158

Rep: Reputation: 30
Long shot... Reinstall Debian


I'm planning on switching from my current linux box to a newer faster one in the next couple of weeks. I have Debian Woody installed on the current one...

What I'm looking to do, is feed a list of packages to the fresh install of Debian and make it update and install everything that I had previously on the older install of Debian... What I mean is that I essentially want a clone of the old system on the new hardware (and I don't think a disk image will work b/c of the major differences in hardware). I'd like to have a software setup as similar as possible to the way it was before...

I know I can output a current list of packages installed on the system by using "dpkg --list" and I know how to save it to a file but is there a way dpkg (or is it apt-get?) can read this and grab everything from the Internet automagically?

I'm trying to not have to manually add a couple of hundred packages on my own using dselect...

Anyone know if it is possible?

Andy

Last edited by bfloeagle; 02-10-2004 at 04:12 PM.
 
Old 02-10-2004, 04:16 PM   #2
llamakc
Member
 
Registered: Nov 2003
Distribution: Debian & Ubuntu
Posts: 402

Rep: Reputation: 31
On old machine that has the packages you want to dupe:

Code:
dpkg --get-selections >selections.txt
On new hardware with the SAME /etc/apt/sources.list:

Code:
dpkg --set-selections < selections.txt
apt-get deselect-upgrade
HTH
 
Old 02-10-2004, 04:20 PM   #3
bfloeagle
Member
 
Registered: Jun 2000
Location: Upstate New York
Distribution: Ubuntu
Posts: 158

Original Poster
Rep: Reputation: 30
Awseome! Thanks!!!
 
  


Reply


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
A Long Shot. Domino for Linux problem. Pcghost Linux - Software 14 05-03-2006 11:07 PM
Long Shot Question - Solaris 9 / Sudo / TSM Server. FragInHell Solaris / OpenSolaris 2 11-25-2004 09:05 AM
A long shot: any C++ financial analysts out there? frankie_DJ Programming 1 10-09-2004 08:16 AM
This is a long shot, but... veritas General 0 06-15-2004 06:51 PM
Microsoft on a long shot.... Underworld General 6 12-01-2003 11:47 AM

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

All times are GMT -5. The time now is 09:37 AM.

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