Article View: linux.gentoo.user
Article #147Re: [gentoo-user] Updating portage
From: Eli Schwartz
Date: Sun, 15 Nov 2026 01:40
Date: Sun, 15 Nov 2026 01:40
104 lines
6891 bytes
6891 bytes
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------EjjnukZW0ugZT0KMf71w0MHS Content-Type: multipart/mixed; boundary="------------z4QSXKy3atsBoNHCMqc10y96"; protected-headers="v1"; hp="clear" Message-ID: <086e4bc3-6336-4bae-994a-8d852cee677f@gentoo.org> Date: Sat, 14 Nov 2026 20:29:19 -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> <87y0aw5cia.fsf@gentoo.org> <87cxs7di1k.fsf@gmail.com> <OJFt-LFYShiX7p0CVO6pXg@dragonbyte.ca> <874ididi4j.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: <874ididi4j.fsf@gmail.com> --------------z4QSXKy3atsBoNHCMqc10y96 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 11/14/26 7:59 PM, Alexis wrote: > My core question, as i keep asking, is why `-u` / `--update` isn't to b= e > used in this particular context. >=20 > Because that's what i use when i'm updating a single package or a numbe= r > of packages. And i'm wondering if that's wrong, and if so _why_ it's > wrong, to improve my understanding of how Portage works. Some people > might be fine with blindly copy-and-pasting stuff without actually > understanding what it's doing, but i'm not one of them, and i like to > think that's reflected amongst my 2000+ edits to the Gentoo wiki. (As > just one example: my edit of the "ALSA" page to explain what the `.!` > syntax means and does.) > i'm not sure how i can make my question any clearer. How about this: i > assume there is some good reason why users shouldn't do: >=20 > # emerge -u sys-apps/portage >=20 > ? There is no reason for or against it. Using -u is not *required*, since the consequence of not using it, is reinstalling the exact same package you already have -- a no-op, unless you've e.g. changed your CFLAGS or package.use flags since the last time you built it. And -u will prevent rebuilding for changed USE flags, so if you're going to be a stickler for -u, maybe you should also be a stickler for -U as well? :) But of course when you *know* that at the current point in time you've been asked to reinstall a "new version" of a package, there is still no need to be a stickler about passing flags to save CPU time on no-op actions, when you know a priori that it is not going to be a no-op. Personally, I never pass -u (nor -U) when emerging a package when the point of emerging is *to re-merge that specific package* rather than "to bring @world or some subset of it up to date". Why should I? I know what the flag does, I know it is insignificant here, and it's more typing. If someone wants to take the portage message as advice to update portage on their own in whatever manner they think best -- all the more power to them. If they just want to copy-paste the instructions, why should the instructions be more complex than necessary? The "An update to Portage is available, we recommend [...]" message is not here to teach users about the relative merits of flags such as --update, --changed-use versus --newuse, --ask, --usepkg-exclude (necessary for older portage if you have /etc/portage/patches for portage itself!), --quiet, --verbose, or indeed any flags whatsoever. So it doesn't. It tells you that you should run "emerge portage", and it tells you that --oneshot is *important*, right here and right now. --=20 Eli Schwartz --------------z4QSXKy3atsBoNHCMqc10y96-- --------------EjjnukZW0ugZT0KMf71w0MHS Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature.asc" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQTnFNnmK0TPZHnXm3qEp9ErcA0vVwUCavkK7wUDAAAAAAAKCRCEp9ErcA0vVx4Y AQDWamsqjQyhL6LJZzry1TMOxtjbE56zuIIYYb8Qxdg3cgEA72kwPW8Nc0Sx/nOhMpiNqNmy8SQ+ s56+SiUqVSfRyAw= =0tIz -----END PGP SIGNATURE----- --------------EjjnukZW0ugZT0KMf71w0MHS--
Technical Details
Message-ID:
<NZxnP-bWEj-3@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<NYOh3-bx6D-3@gated-at.bofh.it> <NZct3-bL4N-1@gated-at.bofh.it> <NZfTX-bMW9-1@gated-at.bofh.it> <NZvYJ-bW04-1@gated-at.bofh.it> <NZwUN-bWtS-3@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.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:40:01 +0100 Message-ID: <NZxnP-bWEj-3@gated-at.bofh.it> References: <NYOh3-bx6D-3@gated-at.bofh.it> <NZct3-bL4N-1@gated-at.bofh.it> <NZfTX-bMW9-1@gated-at.bofh.it> <NZvYJ-bW04-1@gated-at.bofh.it> <NZwUN-bWtS-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="------------EjjnukZW0ugZT0KMf71w0MHS" Approved: robomod@news.nic.it Lines: 104 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sat, 14 Nov 2026 20:29:19 -0500 X-Original-Message-ID: <086e4bc3-6336-4bae-994a-8d852cee677f@gentoo.org> X-Original-References: <1c9ec85d-fdf8-46ab-946e-1d2b309e5a0f@oldfart.online> <87y0aw5cia.fsf@gentoo.org> <87cxs7di1k.fsf@gmail.com> <OJFt-LFYShiX7p0CVO6pXg@dragonbyte.ca> <874ididi4j.fsf@gmail.com>