Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/usr.sbin/pkg_install/delete Pull up 1.12-1.14:
details: https://anonhg.NetBSD.org/src/rev/926342f72d00
branches: netbsd-1-4
changeset: 469268:926342f72d00
user: he <he%NetBSD.org@localhost>
date: Sun Aug 22 17:56:58 1999 +0000
description:
Pull up 1.12-1.14:
Allow specifying a package name without a version.
Call deinstall-script again after files are removed with
POST-DEINSTALL argument. (hubertf)
diffstat:
usr.sbin/pkg_install/delete/pkg_delete.1 | 18 ++++++++++++++----
1 files changed, 14 insertions(+), 4 deletions(-)
diffs (47 lines):
diff -r f2e6f8058d68 -r 926342f72d00 usr.sbin/pkg_install/delete/pkg_delete.1
--- a/usr.sbin/pkg_install/delete/pkg_delete.1 Sun Aug 22 17:54:55 1999 +0000
+++ b/usr.sbin/pkg_install/delete/pkg_delete.1 Sun Aug 22 17:56:58 1999 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: pkg_delete.1,v 1.12 1999/03/22 18:44:03 garbled Exp $
+.\" $NetBSD: pkg_delete.1,v 1.12.2.1 1999/08/22 17:56:58 he Exp $
.\"
.\" FreeBSD install - a package for the installation and maintainance
.\" of non-core utilities.
@@ -70,7 +70,8 @@
.Bl -tag -width indent
.It Ar pkg-name ...
The named packages are deinstalled, wildcards can be used, see
-.Xr pkg_info 1 .
+.Xr pkg_info 1 . If no version is given, the one currently installed
+will be removed.
If the
.Fl F
flag is given, one or more (absolute) filenames may be specified and
@@ -170,7 +171,8 @@
.Pp
If a
.Cm deinstall
-script exists for the package, it is executed before any files are removed.
+script exists for the package, it is executed before and after
+any files are removed.
It is this script's responsibility to clean up any additional messy details
around the package's installation, since all
.Nm
@@ -183,8 +185,16 @@
.Ar <pkg-name>
.Ar DEINSTALL
.Ed
-Passing the keyword
+before deleting all files and as:
+.Bd -filled -offset indent -compact
+.Cm deinstall
+.Ar <pkg-name>
+.Ar POST-DEINSTALL
+.Ed
+after deleting them. Passing the keywords
.Ar DEINSTALL
+and
+.Ar POST-DEINSTALL
lets you potentially write only one program/script that handles all
aspects of installation and deletion.
.Pp
Home |
Main Index |
Thread Index |
Old Index