From nobody Sun Dec 07 08:11:39 2025 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dPHrc4F2lz6K3dW for ; Sun, 07 Dec 2025 08:11:44 +0000 (UTC) (envelope-from cryintothebluesky@gmail.com) Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dPHrb5gHtz3qhd for ; Sun, 07 Dec 2025 08:11:43 +0000 (UTC) (envelope-from cryintothebluesky@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-477632b0621so25329855e9.2 for ; Sun, 07 Dec 2025 00:11:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1765095101; x=1765699901; darn=freebsd.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=Le1xCaZ4p0l34adLbnN3jZLqJIB/Y7siB+TC344xLgI=; b=KuhB9GqYIT60fTbS3toL82Jd1WD6+0DKO/Oy/f3dCzMuT266qIVcNzt1ZYfTV/Ap40 oXWTZHhgg7tPzjLqLj4VpzEBjBrzjJE/3FTgdgJa1+nk5UUxTAN1uxYrVe6b1HrdKagh xF2KfDl/GHh45aECCPCXe3jyBuxCwxR90uukF+uREFwOQSr46euo1dxNMDoysgkNnWv4 zb34y1a70sxvv9/GoJ8tJbPw+ZrF3weuTR7HxMnuuasryvhi+1DJAzcK0xOPk62h7yvY SS8S0B6SDfQixpJkqUAEDtZwL0ZoUJrABFHEYgmB9a4SRjqGMi+hbuiJ34/K0XGk0W8s or0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765095101; x=1765699901; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Le1xCaZ4p0l34adLbnN3jZLqJIB/Y7siB+TC344xLgI=; b=W8QiaZ6uuIfOA2z/mGOK1U2QWZG+jVP1enssbMXXLhV9iGnN8OsXAfTO8mEPuqIGTe KK9Sc+wouunctFOQIY2tJTyZfm3Cno+fxa/AT4LVPEz2kF/2eundDDjtqwhAJvhCK7Yi 5/ZOmNd/OZXBOCWY/LGo9DEgbcZ34TsWA1mo7D5Zl2kiQGPgt7I/uChFX/kQf/TWSRNu TWeoOarkHPCdHu7MsPqSDHUTcnvFDaiZBHvwzsYFiSxblRdbPTG9UsOBLXDxDURYGXJm 1whVZbo/UuxmlwZ56hvhlp5+b7DABb+WsOL0P1AfYot7ax/P2wG+tzpkvPOzDWyI6oU1 2W3w== X-Gm-Message-State: AOJu0YzA4CPnQxUrvO8H80NXDkPMVSu4lI4OWNQpjDnVzrPBqtcuql73 iMBEkn5cvuZ1lv/W5v+We7zQ7BqGMs0HsFs7nRGlm+JhwR4n08jrE84V X-Gm-Gg: ASbGnctICow8GE3ZkijLhp80ae+VDkGOyQ4le6FLqjPsZJJAZJZodzKaRsR3T9Dky5a Bk3bt46QgNmW6qxz1xeCMLpd7YG1hpqXAxemwjAI4hSY5obtT9gqgWOHgEWHbkmU0ppX8fb+UrS WG6A9lhti/MvyAQcbehXg6wHCoupFRer3nS4FQvI2oJoe65191eyk3DbVpuZJDNOFg8PBRuxTcM wMFKrlxxCpDO0XzrTYzvpqYtW2fcvKOmAZtHOwIK8/yDouNbtSebzK4kO0S8XT8AhPoAFuMvWt1 3c8j470aKcFixWJJdtcmGH/Hjgnn1AyU0bTvj2mk0vNV0LKYEhBWZkF842oHN3QMk28nWU8P3xb 0iEnS4nZ8gUGcECqFb/PFCmCFOLPbgWSx+jI2M/GkWXAWWXKDl1c7+7tdaSpe2M5bNh5l/z3nkE rQp/B5nm3D+fSQ6t4CXkNjY3XnOb4mRp4an3rSI4AsOmPsav2kQA4= X-Google-Smtp-Source: AGHT+IH5a1JKvisRi+sUfeOTiZjmrNs9SeJU6s1Bj6rFvatsm5DUfW+h7qRFU6PtjR4c1nhz+VU+ig== X-Received: by 2002:a05:600c:190d:b0:477:ae31:1311 with SMTP id 5b1f17b1804b1-47939dfa526mr42143675e9.13.1765095101111; Sun, 07 Dec 2025 00:11:41 -0800 (PST) Received: from z600.home.lan (188.85.199.146.dyn.plus.net. [146.199.85.188]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4792b140cf4sm114334175e9.5.2025.12.07.00.11.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Dec 2025 00:11:40 -0800 (PST) Date: Sun, 7 Dec 2025 08:11:39 +0000 From: Sad Clouds To: Graham Perrin Cc: FreeBSD questions Subject: Re: (2517) the error message when removing a dependency of a vital package is uninformative (was: Trying to understand base system packages) Message-Id: <20251207081139.7e2f65b97b4c089ac0add431@gmail.com> In-Reply-To: <16e766b9-f442-4cef-a991-c940f6b8182a@gmail.com> References: <20251205122830.cb88058f193987b47a95a77c@gmail.com> <20251205134510.6fae5caf@dorfdsl.de> <20251205143119.441cc1bd8722345d074a4480@gmail.com> <16e766b9-f442-4cef-a991-c940f6b8182a@gmail.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4dPHrb5gHtz3qhd On Sat, 6 Dec 2025 21:40:14 +0000 Graham Perrin wrote: > On 05/12/2025 14:31, Sad Clouds wrote: > > … > > > > This happens for every other base package: > > > > # pkg delete FreeBSD-games > > Cannot solve problem using SAT solver, trying another plan > > Cannot solve problem using SAT solver, trying another plan > > Cannot solve problem using SAT solver, trying another plan > > Checking integrity... done (0 conflicting) > > 1 packages requested for removal: 0 locked, 1 missing > > > the error message when removing a dependency of a vital package is > uninformative · Issue #2517 · freebsd/pkg > > > Hi, thanks for the link. I've read all the comments there and this still leaves casual FreeBSD users like myself confused. I appreciate that this feature may still be experimental, however so far I have not been able not find a way to resolve my original issue. - I don't understand the design of base meta packages (sets?) and there is no documentation that describes this well. The freebsd-base(7) mentions briefly that some packages are grouped into sets, but does not go deeper, does not explain about the "vital" dependency flag and does not provide examples of how to view and manage packages sets. In fact the pkg(8) man page is missing the new "sets" command. - I'm still stuck with a system where I cannot delete individual packages which I do not need. The issue seems to be: some package somewhere is marked as "vital" in the dependency chain, hence pkg refuses to remove a package. I am still no closer to figuring out how to resolve this. The comments in the bug suggest "remove the optional set (this does not remove any other packages)" Ok, lets try this: # pkg delete FreeBSD-set-optional Checking integrity... done (0 conflicting) The following package(s) are locked or vital and may not be removed: FreeBSD-set-optional 1 packages requested for removal: 1 locked, 0 missing I guess there is "-f" option I could try, but I don't like using any force options, as it usually indicates something is broken somewhere. I'm sorry but the optional meta package and sendmail (which is part of it) are not vital and there needs to be an easier way to remove them. Isn't this the whole point of having base packages, so that the system can be customised much easier by installing/removing individual packages, instead of building custom release with custom src.conf options for different use cases? # pkg sets FreeBSD-set-base-15.0: FreeBSD-set-optional-15.0 FreeBSD-set-minimal-15.0 FreeBSD-set-devel-15.0 FreeBSD-set-devel-15.0: ... FreeBSD-set-minimal-15.0: ... FreeBSD-set-optional-15.0: ... The base set includes all other sets, why? If some meta package is optional or development software, why is it locked to the base set? If I misunderstand anything here, then please correct me.