Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Update old System -> Install brand new in chroot?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
LOR
n00b
n00b


Joined: 25 Aug 2015
Posts: 5

PostPosted: Wed Jan 11, 2017 1:15 pm    Post subject: Update old System -> Install brand new in chroot? Reply with quote

Hi Gentooers!

I have an old Gentoo Desktop PC (8y) which I updated the last time 2 years ago. To work around the package blocking hell, I am looking for a method that is more convenient: Install a new system parallel to the old system in a chroot, just like installing it on a virgin disk. Then I would delete most of the old system. Has anybody tried that before? Is this a stupid way to update an old gentoo system?

Thanks
Werner
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43194
Location: 56N 3W

PostPosted: Wed Jan 11, 2017 1:56 pm    Post subject: Reply with quote

LOR,

That works. Except for your last step. With the @system set updated, you should be able to coax the old install to update using binary packages made by the new install.
Some mutual blockers will need to go through the intermediate steps. e.g. gcc and glibc. glibc needs a certain gcc to build. To build a certain gcc needs a certain glibc.

The general method is Fix My Gentoo the steps it describes uses a non bootable rescue install to fix your original install, almost regardless of how broken it is.

Before you go down that route though, try the following.

Run
Code:
/usr/portage/scripts/bootstrap.sh
it does not support resume, so it must run to completion in one go.
That's a stage1 install start point. It rebuilds your toolchain. It may fail on gcc/glibc for the reasons outlined.
Build intermediate versions. Do not forget gcc-config to select the new gcc.

Once that works,
Code:
emerge -e @system
thats a stage2 install start point.
To make that work, you may need to turn off some desktop related USE flags.

None of the above does any damage to your existing install. There is more ... see how that goes.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
LOR
n00b
n00b


Joined: 25 Aug 2015
Posts: 5

PostPosted: Thu Jan 12, 2017 5:58 pm    Post subject: Reply with quote

OK, thank's for your help! I will try it that way.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum