LinuxQuestions.org
Visit Jeremy's Blog.
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-23-2011, 02:21 AM   #1
qrange
Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian
Posts: 750

Rep: Reputation: 29
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, 02:40 AM   #2
jim_p
Member
 
Registered: Aug 2009
Distribution: Debian testing
Posts: 497

Rep: Reputation: 112Reputation: 112
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, 07:29 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,653
Blog Entries: 2

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

1. Get a list of your installed packages and save it to a file:
Code:
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:
Code:
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 09:55 AM. Reason: Fixed a typo in the code
 
1 members found this post helpful.
Old 02-23-2011, 09:40 AM   #4
oOarthurOo
LQ Newbie
 
Registered: Feb 2011
Location: ZZ9 Plural Z Alpha
Distribution: Debian
Posts: 17

Rep: Reputation: 5
For #2, maybe something like:
Code:
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 09:41 AM.
 
  


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


All times are GMT -5. The time now is 07:26 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration