Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 02-23-2011, 01:21 AM   #1
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable, amd64
Posts: 827

Rep: Reputation: 32
Debian testing, installing 64bit

Can I keep the old 32bit_testing /home with all the hidden directories there when moving to 64bit_testing?

Is there a way to export a list of all installed packages in aptitude or synaptic, so that when reinstalling, it can be easily imported?
(reinstalling the same system)
Old 02-23-2011, 01:40 AM   #2
Registered: Aug 2009
Distribution: Debian testing
Posts: 550

Rep: Reputation: 127Reputation: 127
Yes you can. If it is on a seperate partition, just tell the installer to use it as /home when asked. If its not, tar it up, place it somewhere safe, install and untar it back.

As for the installed packages part, all I remember is that "dpkg --get-selections" will show you the packages you now have installed. You can save them on a file etc.
Old 02-23-2011, 06:29 AM   #3
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,137
Blog Entries: 2

Rep: Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839
My recommendation to change your system to 64 bit:

1. Get a list of your installed packages and save it to a file:
dpkg --get-selections > mypackages
2. IMPORTANT! Go through the file and change all occurrences of i386 and i686 to amd64.
3. Save the file to an external medium, or to your /home partition.
4. As always before making major changes, backup your important data (/home-partition), and may be the configuration files you want to use later again from /etc.
5. Do a minimal install of Debian. Minimal means, de-select all tasks (Desktop, Laptop, Standard, etc.) when it comes to software configuration.
6. After the install comes the part to do a new install of all your packages:
apt-get update
dpkg --clear-selections
dpkg --set-selections < mypackages
apt-get dselect-upgrade
Now all you packages will be installed, this will take some time and will bring up some configuration dialogs.
7. Reboot to your new old system, restore your config-files if necessary and have fun.

Last edited by TobiSGD; 02-23-2011 at 08:55 AM. Reason: Fixed a typo in the code
1 members found this post helpful.
Old 02-23-2011, 08:40 AM   #4
LQ Newbie
Registered: Feb 2011
Location: ZZ9 Plural Z Alpha
Distribution: Debian
Posts: 17

Rep: Reputation: 5
For #2, maybe something like:
sed -i 's/i386/amd64/g' mypackages
and repeat replacing i386 with i686

/untested, make a backup of mypackages first

Last edited by oOarthurOo; 02-23-2011 at 08:41 AM.


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
Installing cdw cd writing aplication on Debian testing electronpusher Debian 1 07-30-2008 11:49 AM
installing debian - stable / testing rangalo Debian 11 04-05-2006 03:40 AM
Problems installing PostgresQL on Debian 2.12 Testing LDMohican Linux - Software 8 03-07-2006 12:26 PM
installing open office under sarge 64bit debian linuxmandrake Linux - Software 0 09-21-2005 05:52 PM
Error installing debian Sarge testing acetone802000 Debian 5 10-21-2003 02:21 PM > Forums > Linux Forums > Linux - Distributions > Debian

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration