View previous topic :: View next topic |
Author |
Message |
E001754 Guru
Joined: 01 Aug 2004 Posts: 442 Location: Paris, France
|
Posted: Thu Jan 17, 2008 10:35 am Post subject: I have been an happy gentoo user for years... |
|
|
... and I want to stay an happy gentoo user for next years, however, my current computer is aging and I'm planning to change it in the next weeks to come (In fact, I'm waiting UT3 to be out for Linux to change my whole hardware )
And, therefore, rise the question of "how the hell can I migrate my current gentoo from my old computer to my new" ??
I guess that dd -if /old_computer -of /new_computer by plugging the old disk in the new computer wont gives nice results ?
I'd rather recompile everything from scratch because :
- I want to optimize all the programs for my new arch
- I want to clean all orphan packages once for all
I'm already happy with the package selection I've made so far on my computer, and I'd like the same for my new computer.
What tips for migrating could you suggest ?
I know that I must copy /home.
There are some files, especially in /etc/ that I want to save, especially fstab, world file, grub.conf, bashrc.
Probably by following the gentoo installation guide, I can either copy from old computer or recreate from scratch the needed files.
The world file gives me headache : simply transfer it to the new computer and type emerge --sync and then emerge --update --world --newuse --deep ??
Thx for any suggestions as I didn't find any relevant things either in gentoo documentation or in the forums. |
|
Back to top |
|
|
psomas Retired Dev
Joined: 23 Sep 2006 Posts: 212 Location: Greece
|
Posted: Thu Jan 17, 2008 10:40 am Post subject: |
|
|
is the architecture the same for both computers? _________________ myblog
FOSS NTUA Community |
|
Back to top |
|
|
E001754 Guru
Joined: 01 Aug 2004 Posts: 442 Location: Paris, France
|
Posted: Thu Jan 17, 2008 10:43 am Post subject: |
|
|
No, I have a Pentium4 and I'd like a Core2 Quad 6600.
However, running through the forums, I've found that topic : https://forums.gentoo.org/viewtopic-t-618527.html
I think this topic has already been answered there. |
|
Back to top |
|
|
BitJam Advocate
Joined: 12 Aug 2003 Posts: 2508 Location: Silver City, NM
|
Posted: Fri Jan 18, 2008 1:52 am Post subject: |
|
|
Save:- old world file
- old /etc
- old home directory
This is probably 98% of the information you need. You can emerge all your old stuff on the new system with the command: Code: | # emerge `cat old-word` |
where old-world is a copy of your world file from the old system. I found there were many packages I didn't want on the new system so I just removed them from the old-world file.
I migrated from a dying laptop to a new desktop about a year ago and with the information above, it was pretty easy. I also had a lot of my own stuff under /usr/local so you might want to see if there is anything there you want to keep. |
|
Back to top |
|
|
E001754 Guru
Joined: 01 Aug 2004 Posts: 442 Location: Paris, France
|
Posted: Fri Jan 18, 2008 10:07 am Post subject: |
|
|
Many thanks for your answer !
This migration should run smooth
|
|
Back to top |
|
|
BitJam Advocate
Joined: 12 Aug 2003 Posts: 2508 Location: Silver City, NM
|
Posted: Fri Jan 18, 2008 4:11 pm Post subject: |
|
|
I always copy my old $HOME directory to my new system. It makes a big difference because all my settings are there. It makes me feel right at $HOME. |
|
Back to top |
|
|
|