LinuxQuestions.org
Visit Jeremy's Blog.
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 12-16-2007, 10:44 AM   #1
Phiebie
Member
 
Registered: Oct 2004
Location: Austria
Distribution: Debian testing
Posts: 114

Rep: Reputation: 17
Upgrading from 32-bit to 64-bit


In the next few days I will (hardware)upgrade my system from a 'stoneage' 32-bit motherboard and CPU to a modern 64-bit with an AMD X2-processor.
I have an empty harddisk available and want to install, via netinst-amd64, the completely - as far as available - 64-bit version of LENNY.
My nowadays installation contains some 72k of files and directories, with perfect functionality, all maintained via aptitude.
Via netinst I want to get on the new disk exactly the same applications, that I now have, not more and not less.
Writing down the *aptitude-contents now* from "installed" and then selecting these under the new installation is a task, that a medieval monk would have done, but not me:-)
Is there a way to copy (via a helpful Knoppix-CD if necessary) all the wanted applications automagically into aptitude and let the program then do the upgrade?
Anyway, I don't want my nowadays other disks to be overwritten with the new system; I need all the configurations and other things on them *till* I have the new system up-and-running to my full satisfaction.
 
Old 12-16-2007, 11:01 AM   #2
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
You'll need to look at the aptitude man-pages and in particular the --get-selections and --set-selections options
 
Old 12-16-2007, 01:18 PM   #3
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by Dutch Master View Post
You'll need to look at the aptitude man-pages and in particular the --get-selections and --set-selections options

I think you mean dpkg because I just looked at the aptitude man page and the options are not in my copy of it. For the OP to use this method on your now existing install dpkg --get-selections > selections.txt then copy the selections.txt to the new install after having just done a base install (eg. unselect the extra packages like the desktop task when doing the netinstall when you get to this part of the install) then use dpkg --set-selections < selections.txt when logged in as root at the console. Now you would use dselect update then apt-get dselect-upgrade to install the list you just set. If wanting to use aptitude for your package installer from this point on then I believe you would use aptitude keep-all to set the packages installed on your system then you can continue as normal using aptitude.
 
Old 12-16-2007, 01:45 PM   #4
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Errr, you're right. It should be dpkg instead of aptitude...
 
Old 12-18-2007, 11:16 AM   #5
Phiebie
Member
 
Registered: Oct 2004
Location: Austria
Distribution: Debian testing
Posts: 114

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by HappyTux View Post
I think you mean dpkg because I just looked at the aptitude man page and the options are not in my copy of it. For the OP to use this method on your now existing install [i]dpkg --get-selections > selections.txt][i] ....
Sorry, I don't want to be impolite by not answering, but the new hardware hasn't arrived yet. So please have a little patience, I will then report my woes and wees.
Thanks already now for your profound instructions.
 
Old 01-08-2008, 10:33 AM   #6
Phiebie
Member
 
Registered: Oct 2004
Location: Austria
Distribution: Debian testing
Posts: 114

Original Poster
Rep: Reputation: 17
Thumbs up

Quote:
Originally Posted by HappyTux View Post
For the OP to use this method on your now existing install dpkg --get-selections > selections.txt then copy the selections.txt to the new install after having just done a base install (eg. unselect the extra packages like the desktop task when doing the netinstall when you get to this part of the install) then use dpkg --set-selections < selections.txt when logged in as root at the console. Now you would use dselect update then apt-get dselect-upgrade to install the list you just set. If wanting to use aptitude for your package installer from this point on then I believe you would use aptitude keep-all to set the packages installed on your system then you can continue as normal using aptitude.
Well I made it a long quote just to point out, that the described method worked like a charm from beginning to end!
Only one minor glitch occurred: I had to install also the lib32 to get *all* my old programs working.

Thank you very much.
 
  


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
no KDE in Kubuntu 6.10 64-bit(ATI X800 GTO 256 bit DDr3) exul182 Linux - Hardware 2 01-04-2007 02:47 PM
Integrated 16-bit Sound Blaster Pro compatible audio 24-bit DAC jelgavchik Linux - Laptop and Netbook 2 11-16-2006 09:20 PM
Integrated 16-bit Sound Blaster Pro compatible audio 24-bit DAC jelgavchik Linux - Hardware 1 11-16-2006 05:31 PM
32 bit or 64 bit install - is 32 bit easier for a newbie? dms05 Linux - Newbie 3 05-19-2006 03:05 PM
Upgrading From 32-Bit To 64-Bit SUSE linuxdawg SUSE / openSUSE 6 02-07-2005 09:41 AM

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

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