Article View: linux.gentoo.user
Article #152Re: [gentoo-user] Updating portage
From: Dale
Date: Sun, 15 Nov 2026 04:00
Date: Sun, 15 Nov 2026 04:00
83 lines
7539 bytes
7539 bytes
On 11/14/26 7:59 PM, Michael Orlitzky wrote: > On 2026-11-14 20:40:27, Eli Schwartz wrote: >> --update does not imply --oneshot, and --oneshot is independently >> necessary to prevent recording in the world file. > https://bugs.gentoo.org/397313 I'd like to add something that I have posted before. When I do a fresh install, I'm real careful to only emerge packages that I want in the world file. Be that Firefox, chrony, file system packages, KDE meta packages or whatever it is that I need directly. I let emerge handle whatever those packages need to work. Once I get the install done and most all the packages I want/need is installed, I then add --oneshot to EMERGE_DEFAULT_OPTS in make.conf. That way if I'm trying to work around a block or some other conflict later on, I don't add packages to the world file by accident. The default is, don't put it in the world file. If I later need to add a package to the world file, I just use --select y in the emerge command. Since the command line overrides the options in make.conf, it ignores the oneshot option and adds that package to the world file. Doing it this way takes care of me forgetting to add -1 and figuring out at what times I must use it. It is the default setting and the only time it matters, is when I need to add something to the world file that I directly use. Actually, that isn't very often for me. Way back in 2003 when I started using Gentoo, and my memory was a LOT better, I would still forget to add the -1 option. At some point, after emerging packages sometimes with version numbers, I started running into blocks and could not figure out why I couldn't work around them. I seem to recall posting on this list or the forum and being told to check the world file. Let's just say that my world file was a absolute mess. It was a disaster. It had the packages I needed directly which is fine, including version numbers at times which is not fine, but it also had dependencies of those packages that I emerged when trying to work around conflicts and such which was just plain bad. The emerge program wasn't near as good as it is today so working around conflicts was a lot more common back then. It took me a long while, hours at least, to clean up the world file. I started out by removing packages with versions, if it was a package I knew I used directly, I just removed the version part. Then I removed packages that I'd never heard of and didn't use directly. Once that was cleaned up, I wanted to know how to prevent that from happening again and that is when I learned about the EMERGE_DEFAULT_OPTS setting in make.conf. I've done it this way ever since. Even on this new rig I built a year or so ago, I did my install, using -1 when needed, but once I had installed everything I knew I wanted installed, I added --oneshot to make.conf. For the few packages, like tools for my m.2 stick, that I found out I needed later, I just emerged those with --select y so that it would add it to the world file. I'd like to point out. I think mentioning doing it this way in the install guide, close to the end, would be a good idea. Maybe it is nowadays but I don't recall ever seeing it. Mention the pros and cons if needed. I learned the hard way that knowing when to use -1 and when not to isn't always clear. For me at least, it is a lot easier to complete a install and then add that option in make.conf which prevents making a mess in the world file. It's bad enough to have dependencies in there but when you add a package with a version number specified, that really messes things up. It can cause a lot of other updates to be skipped because of incompatibility. I'm not saying that everyone should use this method. Maybe it isn't a good idea for some. I suspect tho, for most Gentoo users, it is a good idea. I'm also not saying it should be the default. Actually, it shouldn't be the default. One only really wants to do this once most or all the packages that are directly needed are installed, then set this in make.conf. When I see a update to portage, I just do a 'emerge portage'. That's it. The emerge options it needs are already set in make.conf and I don't have to worry about the world file getting entries it shouldn't have. Now, if some dev or other people think mentioning this in the install guide, somewhere close to the end and not the beginning, then feel free to take the stick and run with it. I know doing it this way has prevented a lot of problems over the years for me. I suspect some others have seen me mention this in the past and grabbed this idea as well. I will say, once the install is done, unless you install and remove packages a lot, there really isn't much of a downside to this method. I'm out of steam. o_- Age and health is creeping up on me. Dale :-) :-)
Technical Details
Message-ID:
<NZzzj-bXSn-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:
<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> <NZxxv-bWHW-1@gated-at.bofh.it> <NZxQR-bWXS-5@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: Dale <rdalek1967@gmail.com>
Newsgroups: linux.gentoo.user
Subject: Re: [gentoo-user] Updating portage
Date: Sun, 15 Nov 2026 05:00:01 +0100
Message-ID: <NZzzj-bXSn-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> <NZxxv-bWHW-1@gated-at.bofh.it> <NZxQR-bWXS-5@gated-at.bofh.it>
X-Gm-Message-State: APuU4Z/0iCrWJ8Nirn6TvSbqJeJcKfztfrE5eRPuUye/bs03STx1ks/M
jggDgqMs/IUnKaoiVpJFho6Hp/ouCDBP75yHAvahjxUwticf6Z2S3KVXjIuZlQ==
X-Gm-Gg: AYBFou2QvohXB0EP9e6Yzu8K9d+Ir7vbEzZwXUxqTNjJV8fl3Ai8hH7c24besDFBp2s
++kIZjPz/T8dfyg4xRd0BUNfVz3Od82tl2zQwEAniATeXhBBEM/1QD+yOMuSVAyBrvKJpZwykl2
akjidNmdroRZmobKdKmAhXOeRCbFXkXYa84o07/gPQqTk2KQq2ugE9RwnwU7YaeIzrAgGUePylC
2TH3bRhrKA+MGYnCXpi6kyHocX/Ha7q1BRuKlnq9Dm3KLdYt+qgDHRWwHGgoPn793nOzW1uh1d7
1ZrrJJs97ObLMz1tkyQsew+udxURUSqQLTQZ6Qa11YofXYpx0qwPLBrNLkm8L/9eFSnPdWw2qqn
tzZVnJjrDpz0xcou1FZlWcjBRIobhH8IDw0CLa2GE4kgqFcE4suZSlrxvDP0+TOa/3WQdJzrR1s
Yr91RSYzAdyDsOR6rQdd4ybVhTWIGRFS5wVnCgqjlhec5kdidxyGfeD2QlgJZ5aQZSUNpL2Fz5X
dshn1QAO0Cyyvt2M+nSii85yanKPaoP6FeVjplGmZ+0Uo4ckF/Pi+n/jKgxGbAGvCaZTWu/Stpv
am5c94eScpoX3p2l4nzHXDG8LIhTbhJ0wuGthT4csuQ39RgEj9Ik6Y0wQ19R+J1/ofO1I0Dr/w=
=
X-Received: by 2002:a05:620a:aa01:b0:949:5fa1:4e5d with SMTP id af79cd13be357-9495fa15226mr624334185a.64.1794714756121;
Sat, 14 Nov 2026 19:52:36 -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
User-Agent: Mozilla Thunderbird
Content-Language: en-US
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Approved: robomod@news.nic.it
Lines: 83
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Sat, 14 Nov 2026 21:52:29 -0600
X-Original-Message-ID: <3647011f-b986-4b96-91d1-59fa15507e54@gmail.com>
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> <54af7fc3-344c-473b-b7ed-8e7c34184f48@gentoo.org>
<avkSAphjmqQZ5BVe@mertle>