On Sun, Jan 30, 2022, 01:36 Andreas Fink <
finkandreas@web.de> wrote:
Hello,
I have a couple of systems that I do not update regularily (some not
even for years). But then sometimes I feel, hey I should do an update.
I have one master build server which builds packages and keeps them as
binary packages, annd all my systems pull the gentoo portage tree from
this master build server, additionally also the configs in /etc/portage
is the same amongst all boxes, i.e. use flags et al are all the same.
Now comes the misery when I want to update an old box, because of
unsupported EAPI and what not. One way that I used in the past was to
extract a stage-3 tarball over the existing root system, and then do
the upgrade, which works to some extent, but it does not seem right.
Coming now to my question: Is it possible to start a live gentoo system
with a recent portage version and then tell portage that it should
install the packages in /mnt/gentoo (which is the real system I care
about). I have heard about the prefix project, but I'm not sure if this
is exactly what I want.
Maybe a second approach would be to get the minimal set of binary
packages from the master build server and extract them manually, such
that I end up with a recent enough portage which supports all EAPIs
that are in the tree. But I have no clue how to get the minimal set of packages that I would need to extract.
Does anybody have other approaches (besides starting from scratch)?
Portage is supposed to offer an upgrade path for any system up to a year
out of date.
If you grab the version of portage from the last upgrade time of the system being updated plus 6-12 months (however daring you feel like being) you
should be able to upgrade it that much without needing to do a lot of
fiddling.
Repeat until you're updated.
Going forward, you could consider having your build host take a snapshot / backup of the binpkgs it builds every 3-6 months, with the associated
portage tree, so that you can use those to update your sporadically updated machines.
I strongly recommend against overwriting your system with a stage3. Any
package that has a changed list of files will leave orphans behind. And
finding them all will be pretty dang hard.
Personally I just make a point to keep my not very large number of machines updated, but I do it by hand. You might want to look and see if anyone's written any scripts that automatically update + restart services / reboot periodically, and email you upon problem
<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jan 30, 2022, 01:36 Andreas Fink <<a href="mailto:
finkandreas@web.de">
finkandreas@web.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="
margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
I have a couple of systems that I do not update regularily (some not<br>
even for years). But then sometimes I feel, hey I should do an update.<br>
I have one master build server which builds packages and keeps them as<br> binary packages, annd all my systems pull the gentoo portage tree from<br>
this master build server, additionally also the configs in /etc/portage<br>
is the same amongst all boxes, i.e. use flags et al are all the same.<br>
Now comes the misery when I want to update an old box, because of<br> unsupported EAPI and what not. One way that I used in the past was to<br> extract a stage-3 tarball over the existing root system, and then do<br>
the upgrade, which works to some extent, but it does not seem right.<br>
Coming now to my question: Is it possible to start a live gentoo system<br> with a recent portage version and then tell portage that it should<br>
install the packages in /mnt/gentoo (which is the real system I care<br> about). I have heard about the prefix project, but I'm not sure if this<br> is exactly what I want.<br>
Maybe a second approach would be to get the minimal set of binary<br>
packages from the master build server and extract them manually, such<br>
that I end up with a recent enough portage which supports all EAPIs<br>
that are in the tree. But I have no clue how to get the minimal set of<br> packages that I would need to extract.<br>
Does anybody have other approaches (besides starting from scratch)?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">Portage is supposed to offer an upgrade path for any system up to a year out of date.</div>
<div dir="auto"><br></div><div dir="auto">If you grab the version of portage from the last upgrade time of the system being updated plus 6-12 months (however daring you feel like being) you should be able to upgrade it that much without needing to do a
lot of fiddling.</div><div dir="auto"><br></div><div dir="auto">Repeat until you're updated.</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">Going forward, you could consider having your build host take a snapshot / backup of
the binpkgs it builds every 3-6 months, with the associated portage tree, so that you can use those to update your sporadically updated machines.</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">I strongly recommend against
overwriting your system with a stage3. Any package that has a changed list of files will leave orphans behind. And finding them all will be pretty dang hard.</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">Personally I just make
a point to keep my not very large number of machines updated, but I do it by hand. You might want to look and see if anyone's written any scripts that automatically update + restart services / reboot periodically, and email you upon problemĀ </div><
div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquote></div></div></div>
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)