Re: Migration from Debian/powerpc to Debian/i386



On Sat, 2006-12-30 at 13:29 -0300, Eduardo Trápani wrote:
Hi,

I'm currently using Debian on an iMac G5. Everything is alright but I
have to hand the computer over to another user and I will get a PC in
return.

I'm not sure what would be the best path to follow to recreate my debian
environment in the new machine. I cannot repackage packages because the
architecture is different,but maybe there is an automatic tool to save
the configuration and the list of packages.

On top of that, I don't know if things like MySQL databases can be
simply copied or if I should export/import them. Is there a way to know
if a package data is platform independent? (little/big endian issues
and things like that).

Install a base-only system on the new machine.

On the old machine:

dpkg --get-selections > my-packages.txt
tar jcf my-etc.tar.bz /etc

Copy this file to a medium that works on either machine (scp, a usb
thumb.. etc)

On the new machine from the transfer method of your choice:

cat my-packages.txt | dpkg --set-selections
apt-get dselect-upgrade

Extract you /etc in a temporary location, do comparisons between the
ones form the old machine and the current ones in /etc. Make the changes
as needed (or if not relevant now ignore them)

Of course this will not be fool proof, some things will need to be
hashed out. But all in all it should go very well.

For the DBs, you'll need to export and import them, being the safest
way. The only packages that are platform independent are the "all"
packages, which are mainly some text scripts and documentation.

To bad about losing the G5, its a nice platform to work on.
--
greg, greg@xxxxxxxxxxxxxxx

The technology that is
Stronger, better, faster: Linux

Attachment: signature.asc
Description: This is a digitally signed message part



Relevant Pages

  • unsubscribe
    ... > Subject: debian newbie... ... If I need to recompile the kernel, ... Also, what other additional packages, ... >> The package you're trying to install presumably ...
    (Debian-User)
  • Debian Weekly News - July 20th, 2004 (fwd)
    ... Debian Weekly News - July 20th, ... General Resolution to force AMD64 into Sarge? ... his plan to upload gcc-3.4 packages to unstable. ... the Free Software Printing Summit that was held during this year's LSM ...
    (comp.os.linux.announce)
  • Re: Before going with debian questions.
    ... > and is slow to get security updates. ... selected packages installed from unstable, ... I'd recommend running Debian for 3-6 months before hopping onto the ... many bugs _are_ caught in the first ten days of release. ...
    (Debian-User)
  • Re: Running testing? -- read this.
    ... I'm just an average Testing user, have been for a while, and around me almost every Debian users I know are using Testing, mostly because it's the Debian's flavour which can compare with other distros in term of being usable on a reasonably new computer, with up-to-date softwares. ... be considered a developer-only version, and according to my experience (i use it for work, along with Ubuntu stations... ... better still (it has NEWER packages!), but Unstable must not work well, ... You will also get the pleasure of finding all the bugs, ...
    (Debian-User)
  • Debian Weekly News - August 17th, 2004 (fwd)
    ... Debian Weekly News - August 17th, ... Investigating Sarge Security. ... installing only a minimal number of packages, ...
    (comp.os.linux.announce)