diff options
author | jkh <jkh@FreeBSD.org> | 1993-08-26 01:19:55 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1993-08-26 01:19:55 +0000 |
commit | e83dde8008ab2f058dd1aa3ff1d31f1eeeaac82e (patch) | |
tree | 271e80eb2d3e22321d9c07c63334f17c43aee9a8 /usr.sbin/pkg_install/delete/pkg_delete.1 | |
parent | bed7953d0efa52e8dd7e4fbdddd298b715fbf72d (diff) | |
download | FreeBSD-src-e83dde8008ab2f058dd1aa3ff1d31f1eeeaac82e.zip FreeBSD-src-e83dde8008ab2f058dd1aa3ff1d31f1eeeaac82e.tar.gz |
The release version of my package install suite. Please see man pages
for info.
Diffstat (limited to 'usr.sbin/pkg_install/delete/pkg_delete.1')
-rw-r--r-- | usr.sbin/pkg_install/delete/pkg_delete.1 | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/usr.sbin/pkg_install/delete/pkg_delete.1 b/usr.sbin/pkg_install/delete/pkg_delete.1 new file mode 100644 index 0000000..d9da7f1 --- /dev/null +++ b/usr.sbin/pkg_install/delete/pkg_delete.1 @@ -0,0 +1,107 @@ +.\" +.\" FreeBSD install - a package for the installation and maintainance +.\" of non-core utilities. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" +.\" Jordan K. Hubbard +.\" +.\" +.\" @(#)pkg_delete.1 +.\" +.TH pkg_delete 1 "July 18, 1993" "" "FreeBSD" + +.SH NAME +pkg_delete - a utility for deleting previously installed software package distributions. +.SH SYNOPSIS +.na +.B pkg_delete +.RB [options] +.RB "pkg-name\ [.. pkg-name]" + +.SH DESCRIPTION +The +.B pkg_delete +command is used to delete packages that have been previously installed +with the +.B pkg_add +command. + +.SH OPTIONS +.TP +The following command line options are supported. +.TP +.B \-v +Turns on verbose output. +.B "Optional." +.TP +.B \-D +If an de-installation script exists for a given package, do not execute it. +.B "Optional." +.TP +.B \-n +Don't actually de-install a package, just report the steps that +would be taken if it was. +.B "Optional." +.TP +.BI "\-p\ " prefix +Sets +.I prefix +as the directory in which to delete files from any installed packages +which do not explicitly set theirs. +.B "Optional." +.PP +.SH "TECHNICAL DETAILS" +.B +pkg_delete +does pretty much what it says. It looks for a package in /var/db/pkg +and sets about deleting the files that make up the package and, finally, +the record of the package itself. +.PP +If the package contains a +.B require +file (see +.B pkg_create +), then this is executed first with the flag +.B DEINSTALL +to see whether or not de-installation should continue (a non-zero exit +status means no). +.PP +If a +.B de-install +script exists for the package, it is executed before any files are removed. +It is this script's responsibility to clean up any additional messy details +around the package's installation, since all +.B pkg_delete +knows how to do is delete the files created in the original distribution. +The +.B de-install +script is called with the flags +.PP +.B <script> +.I pkg-name DEINSTALL +.PP +Where +.I pkg-name +is the name of the package in question and +.I DEINSTALL +is a keyword denoting that this is a deinstallation. Passing the keyword +lets you potentially write only one program/script that handles all +aspects of installation and deletion. +.PP +.SH BUGS +Sure to be some. +.SH "SEE ALSO" +.BR pkg_create "(" 1 ")," +.BR pkg_info "(" 1 ")," +.BR pkg_add "(" 1 ")," +.SH AUTHORS +Jordan Hubbard + |