Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Aug 2025 16:29:38 +0800
From:      ykla <yklaxds@gmail.com>
To:        Graham Perrin <grahamperrin@gmail.com>
Cc:        freebsd-pkgbase@freebsd.org
Subject:   Re: vital packages
Message-ID:  <CA%2BPGaYB3ut1z4UjNwaDP472srzWfH2BVakjk8qDyG7mh5W%2BdPA@mail.gmail.com>
In-Reply-To: <d696ee37-0b94-4d2e-8f77-b4700adcda49@gmail.com>
References:  <7C9864FD-BDE8-4527-A6D9-0EC5908D177D@yahoo.com> <7140136F-FD23-47E1-9383-3B7CA25A0922@FreeBSD.org> <d696ee37-0b94-4d2e-8f77-b4700adcda49@gmail.com>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
Hi,

Currently, FreeBSD’s pkg installs software by uninstalling the old
package before installing the new one. This approach has broken my
system, because the new package failed to install while the old one
had already been removed.

I believe it would be safer if pkg could automatically create a
snapshot of the last bootable system using ZFS or UFS before making
such changes.

ykla


Graham Perrin <grahamperrin@gmail.com> 於 2025年8月28日 週四 下午12:48 寫道:

> In addition to packages that already have it:
>
> - which packages might benefit from the vital flag?
>
> An initial shortlist of candidates:
>
> FreeBSD-caroot  (main, not (or not yet) stable/14)
> FreeBSD-certctl (stable/14)
> FreeBSD-kernel-generic
> FreeBSD-kernel-generic-mccam
> FreeBSD-kernel-generic-nodebug
> FreeBSD-kernel-minimal
> FreeBSD-pkgbasify
> FreeBSD-pkg-bootstrap
> FreeBSD-rescue
> FreeBSD-utilities
>
> main branch, unless specified otherwise.
>
>
> Background
> ==========
>
> On 11th May 2025, Baptiste Daroussin wrote:
>
> > Le 11 mai 2025 17:29:49 GMT+02:00, Mark Millard <marklmi@yahoo.com> a
> écrit :
> >> In a system/chroot that is based on PkgBase, a "pkg delete -a"
> >> that is allowed to run also destroys the system software, not
> >> just port packages. There is no way to delete just all the
> >> port packages in a PkgBase based system as far as I can tell.
> >>
> >> …
> > no!
> >
> > there is a vital flag set on some packages that should prevent the bare
> minimal
> > to be removed without -f
>
>
> <https://github.com/freebsd/pkg/issues/2456>; (ykla, July)
>
> <
> https://lists.freebsd.org/archives/freebsd-pkgbase/2025-August/000760.html
> >
> – pkgbasify base package requirements
>
> <https://lists.freebsd.org/archives/freebsd-pkg/2025-August/001419.html>;
> – pkg bootstrap and chroot
>
> <https://reviews.freebsd.org/D51594#1187612>;
> – I assume that FreeBSD-pkgbasify will be discrete.
>
> ----
>
> grahamperrin@pkg:~ % pkg query -e '%V=1' %n ; pkg -v ; uname -mvKU
> FreeBSD-clibs
> FreeBSD-runtime
> 2.2.2
> FreeBSD 14.3-RELEASE-p2 releng/14.3-n271439-5982521fe3dd GENERIC amd64
> 1403000 1403000
> grahamperrin@pkg:~ % pkg iinfo uclcmd
> uclcmd-0.2.20211204
> grahamperrin@pkg:~ %
>
>

[-- Attachment #2 --]
<div dir="auto"><div>Hi,<div dir="auto"><br></div><div dir="auto">Currently, FreeBSD’s pkg installs software by uninstalling the old</div><div dir="auto">package before installing the new one. This approach has broken my</div><div dir="auto">system, because the new package failed to install while the old one</div><div dir="auto">had already been removed.</div><div dir="auto"><br></div><div dir="auto">I believe it would be safer if pkg could automatically create a</div><div dir="auto">snapshot of the last bootable system using ZFS or UFS before making</div><div dir="auto">such changes.</div><div dir="auto"><br></div><div dir="auto">ykla</div><br><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">Graham Perrin &lt;<a href="mailto:grahamperrin@gmail.com">grahamperrin@gmail.com</a>&gt; 於 2025年8月28日 週四 下午12:48 寫道:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In addition to packages that already have it:<br>
<br>
- which packages might benefit from the vital flag?<br>
<br>
An initial shortlist of candidates:<br>
<br>
FreeBSD-caroot  (main, not (or not yet) stable/14)<br>
FreeBSD-certctl (stable/14)<br>
FreeBSD-kernel-generic<br>
FreeBSD-kernel-generic-mccam<br>
FreeBSD-kernel-generic-nodebug<br>
FreeBSD-kernel-minimal<br>
FreeBSD-pkgbasify<br>
FreeBSD-pkg-bootstrap<br>
FreeBSD-rescue<br>
FreeBSD-utilities<br>
<br>
main branch, unless specified otherwise.<br>
<br>
<br>
Background<br>
==========<br>
<br>
On 11th May 2025, Baptiste Daroussin wrote:<br>
<br>
&gt; Le 11 mai 2025 17:29:49 GMT+02:00, Mark Millard &lt;<a href="mailto:marklmi@yahoo.com" target="_blank" rel="noreferrer">marklmi@yahoo.com</a>&gt; a écrit :<br>
&gt;&gt; In a system/chroot that is based on PkgBase, a &quot;pkg delete -a&quot;<br>
&gt;&gt; that is allowed to run also destroys the system software, not<br>
&gt;&gt; just port packages. There is no way to delete just all the<br>
&gt;&gt; port packages in a PkgBase based system as far as I can tell.<br>
&gt;&gt;<br>
&gt;&gt; …<br>
&gt; no!<br>
&gt;<br>
&gt; there is a vital flag set on some packages that should prevent the bare minimal<br>
&gt; to be removed without -f<br>
<br>
<br>
&lt;<a href="https://github.com/freebsd/pkg/issues/2456" rel="noreferrer noreferrer" target="_blank">https://github.com/freebsd/pkg/issues/2456</a>&gt; (ykla, July)<br>
<br>
&lt;<a href="https://lists.freebsd.org/archives/freebsd-pkgbase/2025-August/000760.html" rel="noreferrer noreferrer" target="_blank">https://lists.freebsd.org/archives/freebsd-pkgbase/2025-August/000760.html</a>&gt;<br>;
– pkgbasify base package requirements<br>
<br>
&lt;<a href="https://lists.freebsd.org/archives/freebsd-pkg/2025-August/001419.html" rel="noreferrer noreferrer" target="_blank">https://lists.freebsd.org/archives/freebsd-pkg/2025-August/001419.html</a>&gt;<br>;
– pkg bootstrap and chroot<br>
<br>
&lt;<a href="https://reviews.freebsd.org/D51594#1187612" rel="noreferrer noreferrer" target="_blank">https://reviews.freebsd.org/D51594#1187612</a>&gt;<br>;
– I assume that FreeBSD-pkgbasify will be discrete.<br>
<br>
----<br>
<br>
grahamperrin@pkg:~ % pkg query -e &#39;%V=1&#39; %n ; pkg -v ; uname -mvKU<br>
FreeBSD-clibs<br>
FreeBSD-runtime<br>
2.2.2<br>
FreeBSD 14.3-RELEASE-p2 releng/14.3-n271439-5982521fe3dd GENERIC amd64 <br>
1403000 1403000<br>
grahamperrin@pkg:~ % pkg iinfo uclcmd<br>
uclcmd-0.2.20211204<br>
grahamperrin@pkg:~ %<br>
<br>
</blockquote></div></div></div>
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BPGaYB3ut1z4UjNwaDP472srzWfH2BVakjk8qDyG7mh5W%2BdPA>