View previous topic :: View next topic |
Author |
Message |
Elaman n00b
Joined: 28 Jul 2016 Posts: 32
|
Posted: Sun Nov 19, 2017 11:24 am Post subject: Recommended way to re-install gentoo |
|
|
I have an existing Gentoo installation and I found myself with way too many packages to be merged for updating @world, plus different ebuilds fail. In my experience with previous updates I realize it would be way shorter to simply re-install Gentoo, but maybe it's not necessary to re-create the partitions and go through all the steps.
What is the recommended way to go about it? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54239 Location: 56N 3W
|
Posted: Sun Nov 19, 2017 11:37 am Post subject: |
|
|
Elaman,
Does Code: | emerge -e @world --backtrack=50 --keep-going --with-bdeps=y | not work?
It will keep going when things break, allowing you to fix things at the end.
It won't cope the the rebuilds required by the gcc-4 to gcc-5 update very well though.
Save /etc/portage/* save your world file. Save anything in /home you want, or if its its own partition, leave it in place.
Do a normal handbook install but reinstate /etc/portage/* and world in the new install.
Code: | emerge -e @world --backtrack=50 --keep-going --with-bdeps=y | will now rebuild your install.
You will need to reinstall the boot loader.
Such drastic surgery should not be required unless your install is over a year old.
Even then it can usually be updated. As you say though, a new install may be faster. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Elaman n00b
Joined: 28 Jul 2016 Posts: 32
|
Posted: Sun Nov 19, 2017 1:14 pm Post subject: |
|
|
Thanks NeddySeagoon for your answer. What I want is to install something with "vanilla" configuration files and @world, but I was wondering if I could skip the deletion and recreation of partitions, specially the boot partition, as those will remain the same |
|
Back to top |
|
|
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
Posted: Sun Nov 19, 2017 1:54 pm Post subject: |
|
|
Clean up your world file.
I have some sort of principle. Keeping low on packages. Check dependencies
equery depends XY
emerge -av package
Changing desctop environments, software when it drags in to much clutter.
Some stuff can not be replaced like k3b. kde is really bad maintained. k3b does not need so much, but it's too bothersome to fix ebuilds, reduce dependencies. a gentoo mess is that some ebuilds do not have requirements statet, others have too many like k3b.
I care about download / disk size / compile time / backup size.
--
In the past i did regularly emerge -e --keep-going --deep -N world. This is not necessary anymore because portage has improved, my hardware is much better now too!
--
I recommend that you fix your existing installation. A reinstall is a bad approach, won't fix things in the long run
qlist -Iv package
may help to determine whats installed.
--
a good way to reduce clutter is to check what is updated. When I do not want it anymore unmerge it instead of updating. check dependies too at that stage.
--
off topic:
some bugs are not fixed, although known for a very long time, for example
Code: | >>> '/var/tmp/portage/media-libs/sdl2-mixer-2.0.2/temp/build.log'
*
* The following package has failed to build, install, or execute postinst:
*
* (media-libs/sdl2-mixer-2.0.2:0/0::gentoo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/media-libs/sdl2-mixer-2.0.2/temp/build.log'
|
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54239 Location: 56N 3W
|
Posted: Sun Nov 19, 2017 2:54 pm Post subject: |
|
|
Elaman,
Vanillia Gentoo has an empty world file. It records the things you explicitly install and the packages where you should have used --oneshot but forgot.
The latter leads to an accumulation of rubbish in world and installed on your system, which portage tries to maintain.
You can check with checkworldfile but do make a backup first.
Its not infallible. You may have sound reasons to have something in the world file that no script can ever know about.
So think about what it wants to deselect before you do it.
Even if you reinstall, there is no point in taking a polluted world with you. The problems that causes will follow.
You can skip the deletion and recreation of partitions but if you really go the reinstall route, you should remake your filesystems.
That's destructive - be sure you have everything you want backed up, verified and that you can read the backups.
/boot can be saved but save /lib/modules too as that's where the modules are to match the kernels in /boot.
Already this reinstall is growing arms and legs ....
Save /boot, save /lib/modules, save /home, save /etc/portage, save world ... save other stuff. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|
|
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
|
|