🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.gentoo.user
Article #148

Re: [gentoo-user] Updating portage

#148
From: Eli Schwartz
Date: Sun, 15 Nov 2026 01:50
126 lines
7582 bytes
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--------------wJP700HDrKL6T8UG7OoT04Ah
Content-Type: multipart/mixed; boundary="------------skrWJTVaSNdQoOlO9YfnjlrA";
 protected-headers="v1"; hp="clear"
Message-ID: <54af7fc3-344c-473b-b7ed-8e7c34184f48@gentoo.org>
Date: Sat, 14 Nov 2026 20:40:27 -0500
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: [gentoo-user] Updating portage
To: gentoo-user@lists.gentoo.org
References: <1c9ec85d-fdf8-46ab-946e-1d2b309e5a0f@oldfart.online>
 <87ld6wcg45.fsf@gmail.com> <87y0aw5cia.fsf@gentoo.org>
 <87cxs7di1k.fsf@gmail.com> <d63a44c7-8950-41ff-895e-bb80fbf5e83d@gentoo.org>
 <87v75yc2jf.fsf@gmail.com>
Content-Language: en-US
From: Eli Schwartz <eschwartz@gentoo.org>
Autocrypt: addr=eschwartz@gentoo.org; keydata=
 xjMEZmeRNBYJKwYBBAHaRw8BAQdAYNZ7pUDWhx1i2f3p6L2ZLu4FcY18UoeGC04Gq/khqwfN
 I0VsaSBTY2h3YXJ0eiA8ZXNjaHdhcnR6QGdlbnRvby5vcmc+wpYEExYKAD4CGwMFCwkIBwMF
 FQoJCAsFFgIDAQACHgUCF4AWIQTvUdMIsc4jCIi+DYTqQj6ToWND8QUCauABDQUJCJCIWQAK
 CRDqQj6ToWND8bXlAQDhi6hUxiss56cdPbsemrWdVQe3CtkpqlQccxV/4a4/QgD/dUCR+SGn
 YxNZj6lir6i/TBr0yfSSrMtKgGO1+lClSwLOOARmZ5E0EgorBgEEAZdVAQUBAQdATT46Z06b
 1X9xjXFCYFxmq/Tj3tSEKZInDWTpoHQp4l8DAQgHwn4EGBYKACYCGwwWIQTvUdMIsc4jCIi+
 DYTqQj6ToWND8QUCauABGAUJCJCIZAAKCRDqQj6ToWND8c4xAQCWj7iWpgEJUM+wf2bZCkgM
 EKEVVdv5aBJrj6Xa22UhIQEA0bIv2t9jUqUeBMHl/6i0L28s5Mrtr0ZSX3Sg/zeyrAM=
X-Clacks-Overhead: GNU Terry Pratchett
In-Reply-To: <87v75yc2jf.fsf@gmail.com>

--------------skrWJTVaSNdQoOlO9YfnjlrA
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 11/14/26 8:21 PM, Alexis wrote:

> Your message arrived just as i sent my last one.
>=20
> 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 optio=
n
> [i.e. `-1`] in this context, _rather than_ the `-u` / `--update`
> option", emphasis added) but why the command isn't simply:
>=20
> # emerge -u sys-apps/portage
>=20
> Here's what the emerge(1) man page says:
>=20
> ```
> --update, -u
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
 Updates packages to the best version available,
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
 which may not
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
 always be the highest version number due to masking
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
 for testing
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
 and development. Package atoms specified on the
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
 command line are
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
 greedy, meaning that unspecific atoms may match
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
 multiple
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
 versions of slotted packages.=C2=A0 This option also
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
 implies the
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
 --selective option.
> ```
>=20
> Given your response, i even less understand what the `-u` option
> actually means and does. Does it download the best version available of=

> 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 installed=

> 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**.

--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"

--selective has several different filter/modifier options that exist
solely to limit the effects of --selective. Not just --update, but also
--newuse, --changed-use, --changed-deps...

One might ask, why the manpage doesn't do more to highlight the fact
that the option is actually a filter for --selective. Answer: I don't
know. :)


--=20
Eli Schwartz

--------------skrWJTVaSNdQoOlO9YfnjlrA--

--------------wJP700HDrKL6T8UG7OoT04Ah
Content-Type: application/pgp-signature; name="OpenPGP_signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="OpenPGP_signature.asc"

-----BEGIN PGP SIGNATURE-----

wnsEABYIACMWIQTnFNnmK0TPZHnXm3qEp9ErcA0vVwUCavkNiwUDAAAAAAAKCRCEp9ErcA0vV5sp
AQCE7nd2e0M0OW38mnG4VGQDTKc4tddFx5CTNfsvK2Vo7gEA2/fJ/p+1ZKWyp1J+mqn8CP/UTk9k
SUSiPlkm6fE7KgI=
=zG7Y
-----END PGP SIGNATURE-----

--------------wJP700HDrKL6T8UG7OoT04Ah--
Technical Details
Message-ID: <NZxxv-bWHW-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!robomod
References: <NYOh3-bx6D-3@gated-at.bofh.it> <NZbwZ-bKu6-3@gated-at.bofh.it> <NZct3-bL4N-1@gated-at.bofh.it> <NZfTX-bMW9-1@gated-at.bofh.it> <NZw8p-bW3A-1@gated-at.bofh.it> <NZxe9-bWAQ-3@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: Eli Schwartz <eschwartz@gentoo.org>
Newsgroups: linux.gentoo.user
Subject: Re: [gentoo-user] Updating portage
Date: Sun, 15 Nov 2026 02:50:01 +0100
Message-ID: <NZxxv-bWHW-1@gated-at.bofh.it>
References: <NYOh3-bx6D-3@gated-at.bofh.it> <NZbwZ-bKu6-3@gated-at.bofh.it> <NZct3-bL4N-1@gated-at.bofh.it> <NZfTX-bMW9-1@gated-at.bofh.it> <NZw8p-bW3A-1@gated-at.bofh.it> <NZxe9-bWAQ-3@gated-at.bofh.it>
X-Original-To: gentoo-user@lists.gentoo.org
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
User-Agent: Mozilla Thunderbird
Content-Language: en-US
Autocrypt: addr=eschwartz@gentoo.org; keydata=
 xjMEZmeRNBYJKwYBBAHaRw8BAQdAYNZ7pUDWhx1i2f3p6L2ZLu4FcY18UoeGC04Gq/khqwfN
 I0VsaSBTY2h3YXJ0eiA8ZXNjaHdhcnR6QGdlbnRvby5vcmc+wpYEExYKAD4CGwMFCwkIBwMF
 FQoJCAsFFgIDAQACHgUCF4AWIQTvUdMIsc4jCIi+DYTqQj6ToWND8QUCauABDQUJCJCIWQAK
 CRDqQj6ToWND8bXlAQDhi6hUxiss56cdPbsemrWdVQe3CtkpqlQccxV/4a4/QgD/dUCR+SGn
 YxNZj6lir6i/TBr0yfSSrMtKgGO1+lClSwLOOARmZ5E0EgorBgEEAZdVAQUBAQdATT46Z06b
 1X9xjXFCYFxmq/Tj3tSEKZInDWTpoHQp4l8DAQgHwn4EGBYKACYCGwwWIQTvUdMIsc4jCIi+
 DYTqQj6ToWND8QUCauABGAUJCJCIZAAKCRDqQj6ToWND8c4xAQCWj7iWpgEJUM+wf2bZCkgM
 EKEVVdv5aBJrj6Xa22UhIQEA0bIv2t9jUqUeBMHl/6i0L28s5Mrtr0ZSX3Sg/zeyrAM=
X-Clacks-Overhead: GNU Terry Pratchett
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol="application/pgp-signature";
 boundary="------------wJP700HDrKL6T8UG7OoT04Ah"
Approved: robomod@news.nic.it
Lines: 126
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Sat, 14 Nov 2026 20:40:27 -0500
X-Original-Message-ID: <54af7fc3-344c-473b-b7ed-8e7c34184f48@gentoo.org>
X-Original-References: <1c9ec85d-fdf8-46ab-946e-1d2b309e5a0f@oldfart.online>
 <87ld6wcg45.fsf@gmail.com> <87y0aw5cia.fsf@gentoo.org>
 <87cxs7di1k.fsf@gmail.com> <d63a44c7-8950-41ff-895e-bb80fbf5e83d@gentoo.org>
 <87v75yc2jf.fsf@gmail.com>