Article View: linux.gentoo.user
Article #159Re: [gentoo-user] Updating portage
From: Andre de Lima Schwarz
Date: Sun, 15 Nov 2026 16:10
Date: Sun, 15 Nov 2026 16:10
225 lines
13127 bytes
13127 bytes
--000000000000577a7d066052cb5f
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Just my two cents here. I think that prompt makes it easier to copy and
paste a command to address the issue. It is perfect for newcomers and lazy
users (like me).
It would be cool if Portage upgraded itself before parsing the other
packages instead, unless the user added the "--exclude 'sys-apps/portage'"
parameter to the emerge command. However, this and other added
functionalities could risk bloating up the package manager, with drawbacks
outweighing benefits.
And I'm pretty sure devs added other parameters to that copy-and-paste
command we would be discussing why those had been added instead of other
ones, like those who are the objects of litigation here.
Regards,
Andr=C3=A9
Em dom., 15 de nov. de 2026 =C3=A0s 13:29, Ben Knoble <ben.knoble@gmail.com=
>
escreveu:
>
> > Le 14 nov. 2026 =C3=A0 20:40, Eli Schwartz <eschwartz@gentoo.org> a =C3=
=A9crit :
> >
> > =EF=BB=BFOn 11/14/26 8:21 PM, Alexis wrote:
> >
> >> Your message arrived just as i sent my last one.
> >>
> >> As my last message shows, my question isn't about adding `-u` to `-1`
> >> (in my initial question, i asked about the reason for "using this opti=
on
> >> [i.e. `-1`] in this context, _rather than_ the `-u` / `--update`
> >> option", emphasis added) but why the command isn't simply:
> >>
> >> # emerge -u sys-apps/portage
> >>
> >> Here's what the emerge(1) man page says:
> >>
> >> ```
> >> --update, -u
> >> Updates packages to the best version available,
> >> which may not
> >> always be the highest version number due to masking
> >> for testing
> >> and development. Package atoms specified on the
> >> command line are
> >> greedy, meaning that unspecific atoms may match
> >> multiple
> >> versions of slotted packages. This option also
> >> implies the
> >> --selective option.
> >> ```
> >>
> >> Given your response, i even less understand what the `-u` option
> >> actually means and does. Does it download the best version available o=
f
> >> all the listed packages, such that one doesn't need to use it if that'=
s
> >> already happened but the downloaded packages haven't yet been installe=
d
> >> for some reason?
> >
> >
> > --update does not imply --oneshot, and --oneshot is independently
> > necessary to prevent recording in the world file.
> >
> > --update says to install any updated versions ("downloading" does not
> > make sense, since all ebuilds are already downloaded and fetching
> > SRC_URI without installing would be controlled by --fetchonly instead).
> > Of course, the default is to reinstall the package at its "best version=
"
> > regardless, so, the critical point is not that --update installs the
> > "best version", but rather that --update **implies --selective**.
>
> Let me see if I follow.
>
> * the default emerge behavior, given the portage atom,
> is to reinstall, updating if available, and record in world.
>
> > --selective does not reinstall the package if it is already installed.
> > So what is the purpose of --update then, if --selective stops it from
> > doing anything? Answer: --update does nothing other than *disable* the
> > --selective, if and only if the package status was "upgrade/downgrade"
> > rather than "reinstall"
>
> * By adding the update flag, we instruct emerge to carry out
> said behavior only if an upgrade is actually available. In this case,
> we know one is, so we don=E2=80=99t need emerge to spend time filtering.
>
> (And of course we don=E2=80=99t usually want to record portage in world.)
>
> If I=E2=80=99ve got all that right, then I understand why the emerge manu=
al
> advises -u on portage when an emerge breaks on newer, not yet available
> features: we want to update iff one is available. But it seems we
> are missing -1 there!
>
>
--000000000000577a7d066052cb5f
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div><div><div><div>Just my two cents here. I think that p=
rompt makes it easier to copy and paste a command to address the issue. It =
is perfect for newcomers and lazy users (like me).<br><br></div>It would be=
cool if Portage upgraded=C2=A0itself before parsing the other packages ins=
tead, unless the user added the "--exclude 'sys-apps/portage'&=
quot; parameter to the emerge command. However, this and other added functi=
onalities could risk bloating up the package manager, with drawbacks outwei=
ghing=C2=A0benefits.<br><br></div>And I'm pretty sure devs added other =
parameters to that copy-and-paste command we would be discussing why those =
had been added instead of other ones, like those who are the objects of lit=
igation here.<br><br></div>Regards,<br></div>Andr=C3=A9</div><br><div class=
=3D"gmail_quote gmail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr=
">Em dom., 15 de nov. de 2026 =C3=A0s 13:29, Ben Knoble <<a href=3D"mail=
to:ben.knoble@gmail.com">ben.knoble@gmail.com</a>> escreveu:<br></div><b=
lockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-le=
ft:1px solid rgb(204,204,204);padding-left:1ex"><br>
> Le 14 nov. 2026 =C3=A0 20:40, Eli Schwartz <<a href=3D"mailto:eschw=
artz@gentoo.org" target=3D"_blank">eschwartz@gentoo.org</a>> a =C3=A9cri=
t :<br>
> <br>
> =EF=BB=BFOn 11/14/26 8:21 PM, Alexis wrote:<br>
> <br>
>> Your message arrived just as i sent my last one.<br>
>> <br>
>> As my last message shows, my question isn't about adding `-u` =
to `-1`<br>
>> (in my initial question, i asked about the reason for "using =
this option<br>
>> [i.e. `-1`] in this context, _rather than_ the `-u` / `--update`<b=
r>
>> option", emphasis added) but why the command isn't simply=
:<br>
>> <br>
>> # emerge -u sys-apps/portage<br>
>> <br>
>> Here's what the emerge(1) man page says:<br>
>> <br>
>> ```<br>
>> --update, -u<br>
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Updates packages t=
o the best version available,<br>
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 which may not<br>
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 always be the high=
est version number due to masking<br>
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 for testing<br>
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 and development. P=
ackage atoms specified on the<br>
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 command line are<b=
r>
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 greedy, meaning th=
at unspecific atoms may match<br>
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 multiple<br>
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 versions of slotte=
d packages.=C2=A0 This option also<br>
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 implies the<br>
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 --selective option=
.<br>
>> ```<br>
>> <br>
>> Given your response, i even less understand what the `-u` option<b=
r>
>> actually means and does. Does it download the best version availab=
le of<br>
>> all the listed packages, such that one doesn't need to use it =
if that's<br>
>> already happened but the downloaded packages haven't yet been =
installed<br>
>> for some reason?<br>
> <br>
> <br>
> --update does not imply --oneshot, and --oneshot is independently<br>
> necessary to prevent recording in the world file.<br>
> <br>
> --update says to install any updated versions ("downloading"=
does not<br>
> make sense, since all ebuilds are already downloaded and fetching<br>
> SRC_URI without installing would be controlled by --fetchonly instead)=
.<br>
> Of course, the default is to reinstall the package at its "best v=
ersion"<br>
> regardless, so, the critical point is not that --update installs the<b=
r>
> "best version", but rather that --update **implies --selecti=
ve**.<br>
<br>
Let me see if I follow.<br>
<br>
* the default emerge behavior, given the portage atom,<br>
is to reinstall, updating if available, and record in world.<br>
<br>
> --selective does not reinstall the package if it is already installed.=
<br>
> So what is the purpose of --update then, if --selective stops it from<=
br>
> doing anything? Answer: --update does nothing other than *disable* the=
<br>
> --selective, if and only if the package status was "upgrade/downg=
rade"<br>
> rather than "reinstall"<br>
<br>
* By adding the update flag, we instruct emerge to carry out <br>
said behavior only if an upgrade is actually available. In this case, <br>
we know one is, so we don=E2=80=99t need emerge to spend time filtering.<br=
>
<br>
(And of course we don=E2=80=99t usually want to record portage in world.)<b=
r>
<br>
If I=E2=80=99ve got all that right, then I understand why the emerge manual=
<br>
advises -u on portage when an emerge breaks on newer, not yet available<br>
features: we want to update iff one is available. But it seems we<br>
are missing -1 there!<br>
<br>
</blockquote></div>
--000000000000577a7d066052cb5f--
Technical Details
Message-ID:
<NZKXL-c4rn-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomodReferences:
<NZxxv-bWHW-1@gated-at.bofh.it> <NZICC-c2ZC-21@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From: Andre de Lima Schwarz <aschwarz@usp.br>
Newsgroups: linux.gentoo.user
Subject: Re: [gentoo-user] Updating portage
Date: Sun, 15 Nov 2026 17:10:01 +0100
Message-ID: <NZKXL-c4rn-1@gated-at.bofh.it>
References: <NZxxv-bWHW-1@gated-at.bofh.it> <NZICC-c2ZC-21@gated-at.bofh.it>
X-Original-To: gentoo-user@lists.gentoo.org
Arc-Seal: i=1; a=rsa-sha256; t=1794758575; cv=none;
d=google.com; s=arc-20260327;
b=kH/wU0644fgjoRWM0XTcY7Z1KHO+Xof4zhEjoQzGiIOSl5lpXsD6/zPO1qKAhU0AgE
nVkYxe88t9YdD5pXyBYdS2wc90qjkA5AAK2qBUr2ypA7C6Fa4HBofskMYgiZM02tDnN8
WORK5MLB3QxF+jbEr+oEC+ggEWc+o5zOofT9JDijgeahFdRSiuk3Bg7GHtlkKlh79nOv
rshmluOTWnRp0K+Ax7q3X08EiquSCzFyQGU3ddtNfatwNoUpaarUxJoZKnvetgrTK2r+
wW9oaYp3zq2fauIhYw8h2V71RwQp2hbgUmJ1AjBPj+Ml9utT+Z0Jx809ozDxbu9JEVx2
lKOw==
Arc-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:dkim-signature;
bh=jXD85t0+UgivqO6EDiL5U7eVNphM2HVd0etQKtPP55k=;
fh=P1IghBbxUAMCUd3f7QO2c93v/L4eID3RMmw94g0DPvY=;
b=XK4HNVj40dxwe0OBxoMnao6nzSqIoiM2HHFIwYPtZE6piCyyKLsF7SAilwsSrOdHfx
nRFNUSzj0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B+mfg==
X-Received: by 2002:a05:690e:1508:b0:67c:1dca:7fc with SMTP id
956f58d0204a3-67d8965d9d6mr3360511d50.46.1794758575348; Sun, 15 Nov 2026
08:02:55 -0800 (PST)
List-ID: Gentoo Linux mail <gentoo-user.gentoo.org>
Reply-To: gentoo-user@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
MIME-Version: 1.0
X-Gm-Features: AclHuK9JyoaXkFLERXSnJJ01ZfOkm7u7vSc8rO8HNeNUHW0oETNr-GZVeIYh07U
Content-Type: multipart/alternative; boundary="000000000000577a7d066052cb5f"
Approved: robomod@news.nic.it
Lines: 225
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Sun, 15 Nov 2026 16:02:19 +0000
X-Original-Message-ID: <CAJZeB3HfV43+Gn1xdZxH3Lfwhwmgx1GRnzeyNM67iu+9fkdqSQ@mail.gmail.com>
X-Original-References: <54af7fc3-344c-473b-b7ed-8e7c34184f48@gentoo.org> <3DD0E94B-F372-4747-BD54-4E12F3130590@gmail.com>