Index | Thread | Search

From:
Klemens Nanni <kn@openbsd.org>
Subject:
Re: pkg_add/delete.1: -c does more than @extra files
To:
OpenBSD tech <tech@openbsd.org>
Date:
Mon, 19 May 2025 04:39:16 +0000

Download raw body.

Thread
24.11.2024 01:20, Klemens Nanni пишет:
> 'pkg_delete -c pfresolved' (random example) certainly omit the
> "You should..." hints and deletes the "_pfresolved" user/group
> automatically, but the manual only hints at one pkg_create(1)
> annotation:
> 
>      -c      Delete extra configuration file, mentioned as
>                    @extra file
>              in the packing-list.
> 
> I'm not certain what else -c does (for various pkg_* programs),
> its description should be complete and pretty without its own line:
> 
>      -c      Delete extra configuration files, users and groups mentioned as
>              @extra, @newuser and @newgroup in the packing-list, respectively.
> 
> This is a start, perhaps.
> Feedback?

Ping.

-c docs still suck.

Index: pkg_add.1
===================================================================
RCS file: /cvs/src/usr.sbin/pkg_add/pkg_add.1,v
diff -u -p -r1.169 pkg_add.1
--- pkg_add.1	2 May 2025 11:05:54 -0000	1.169
+++ pkg_add.1	19 May 2025 04:37:10 -0000
@@ -311,7 +311,7 @@ as the prefix to prepend to any object e
 .It Fl c
 While replacing packages, delete extra configuration file in the old package,
 mentioned as
-.Dl @extra file
+.Cm @extra
 in the packing-list.
 .It Fl D Ar name Ns Op = Ns Ar value
 Force installation of the package.
Index: pkg_delete.1
===================================================================
RCS file: /cvs/src/usr.sbin/pkg_add/pkg_delete.1,v
diff -u -p -r1.59 pkg_delete.1
--- pkg_delete.1	10 Jul 2018 10:20:51 -0000	1.59
+++ pkg_delete.1	23 Nov 2024 22:08:54 -0000
@@ -97,9 +97,12 @@ Set
 .Ar pkg-destdir
 as the prefix to prepend to any object deleted.
 .It Fl c
-Delete extra configuration file, mentioned as
-.Dl @extra file
-in the packing-list.
+Delete extra configuration files, users and groups mentioned as
+.Cm @extra ,
+.Cm @newuser
+and
+.Cm @newgroup
+in the packing-list, respectively.
 .It Fl D Ar name Ns Op = Ns Ar value
 Force removal of the package.
 .Ar name