🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.gentoo.user
Article #156

Re: [gentoo-user] Updating portage

#156
From: Ben Knoble
Date: Sun, 15 Nov 2026 13:40
70 lines
5301 bytes
> Le 14 nov. 2026 à 20:40, Eli Schwartz <eschwartz@gentoo.org> a écrit :
> 
> On 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 option
>> [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 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**.

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’t need emerge to spend time filtering.

(And of course we don’t usually want to record portage in world.)

If I’ve got all that right, then I understand why the emerge manual
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!
Technical Details
Message-ID: <NZICC-c2ZC-21@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod
References: <NZxxv-bWHW-1@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod
From: Ben Knoble <ben.knoble@gmail.com>
Newsgroups: linux.gentoo.user
Subject: Re: [gentoo-user] Updating portage
Date: Sun, 15 Nov 2026 14:40:02 +0100
Message-ID: <NZICC-c2ZC-21@gated-at.bofh.it>
References: <NZxxv-bWHW-1@gated-at.bofh.it>
X-Gm-Message-State: APuU4Z/mfdcY1kDiMKL9WjT35XgSqZ76FgIPmPGV9CY4OT5BU/8Ogs9s
	wDvHq9lAcunAO8L/knxZeSVaDLeO2ozaI87n0OM9zHVrT0EvT8AzxhBoWDUCGA==
X-Gm-Gg: AYBFou3qlyG6PIRMaUu9qgcqpVAPybo+/DWvj8Qf5fNMghSDBkgHi/9eMkbd3aFclkS
	KptEHhBEqAp9knUBE8lWw/ASiYfKogb91ZjzBBOfO9eb8GfFDXxCsL9dy3lx0vJNF/sm6vzKpTu
	VJrKpAdWRyhtj8PLVwEnP/JGf7Yta64xjj/KRFnn/RHDzKOUNDv4hNwNBGSa/JALflDb72Y9k9R
	/gsUMnP7cgKa721v0v/lNzgTjj2knBZGzXGQyQA5W5O+Ms7/DVvv3IwBmqWIxHlTjJMLW9nnhhB
	oOP7GSVn2Oe+DlJH1WkSVDKyU0PQEsBUkHv7sY/l+5t8SIsV4JM3gUJdEP+FhCRQ0Lu744D9WPE
	cO7fPUcCoyM1HTMnfv3zf6sHPRJSQqn6n+ZVipp48ARdgJvwrmhSbZDUn0GEANYdeVVq/OBhFwC
	LJYxp06BPPgC7bM8GaJvvrA93kF4w0qLyojXQbDdhDAI45mfo3QC9io6v5oMX/0S7nXu9XnqU9S
	A/77OTm2OmTh7/eRRtrpJkX1eVS2jcjK3WcedvYcIHMO03ILL4j2okdR2MFPO538tUoizxbdFWa
	CyH3SBwoTzzaTK7cOGrs1/ZgoyXAnvHbQZh+Ynw6U9a3qq+A5v0eOYs85asIYnMbsMSJWVy6e0a
	3+uabDF+Fn8XIMRdLc0z52yCcxeATexOfsgKdSqZwEiZEE5XLalR//rI0/noSBqLIotfR5uSe2s
	/KGD3W1SMTurO9DFaE/d2KmLMM
X-Received: by 2002:a05:690e:4511:20b0:67b:f2b5:4082 with SMTP id 956f58d0204a3-67d895d192bmr3129616d50.23.1794749373760;
        Sun, 15 Nov 2026 05:29:33 -0800 (PST)
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
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 (1.0)
X-Mailer: iPhone Mail (23D8133)
Approved: robomod@news.nic.it
Lines: 70
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Cc: gentoo-user@lists.gentoo.org
X-Original-Date: Sun, 15 Nov 2026 08:29:22 -0500
X-Original-Message-ID: <3DD0E94B-F372-4747-BD54-4E12F3130590@gmail.com>
X-Original-References: <54af7fc3-344c-473b-b7ed-8e7c34184f48@gentoo.org>