diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/makepkg.8.in | 17 | ||||
-rw-r--r-- | doc/pacman.8.in | 17 |
2 files changed, 27 insertions, 7 deletions
diff --git a/doc/makepkg.8.in b/doc/makepkg.8.in index 041d4fd1..6547cb7e 100644 --- a/doc/makepkg.8.in +++ b/doc/makepkg.8.in @@ -1,4 +1,4 @@ -.TH makepkg 8 "December 20, 2003" "makepkg #VERSION#" "" +.TH makepkg 8 "April 27, 2004" "makepkg #VERSION#" "" .SH NAME makepkg \- package build utility .SH SYNOPSIS @@ -131,6 +131,10 @@ script is run after all files have been upgraded. .B pre_remove script is run right before files are removed. +.TP +.B post_remove +script is run right after files are removed. + .RE To use this feature, just create a file (eg, pkgname.install) and put it in the same directory as the PKGBUILD script. Then use the \fIinstall\fP directive: @@ -172,14 +176,21 @@ pre_remove() { /bin/true } +# arg 1: the old package version +post_remove() { + # + # do post-remove stuff here + # + /bin/true +} + op=$1 shift - $op $* .fi .RE -This template is also available in your ABS tree (/usr/abs/install.proto). +This template is also available in your ABS tree (/var/abs/install.proto). .SH PKGBUILD Directives .TP diff --git a/doc/pacman.8.in b/doc/pacman.8.in index 33b43636..32cd42db 100644 --- a/doc/pacman.8.in +++ b/doc/pacman.8.in @@ -1,4 +1,4 @@ -.TH pacman 8 "April 14, 2004" "pacman #VERSION#" "" +.TH pacman 8 "April 29, 2004" "pacman #VERSION#" "" .SH NAME pacman \- package manager utility .SH SYNOPSIS @@ -101,9 +101,11 @@ Output more status and error messages. .SH SYNC OPTIONS .TP .B "\-c, \-\-clean" -Remove packages from the cache. When pacman downloads packages, +Remove old packages from the cache. When pacman downloads packages, it saves them in \fI/var/cache/pacman/pkg\fP. If you need to free up diskspace, you can remove these packages by using the --clean option. +Using one --clean (or -c) switch will only remove \fIold\fP packages. +Use it twice to remove \fIall\fP packages from the cache. .TP .B "\-g, \-\-groups" Display all the members for each package group specified. If no group @@ -163,6 +165,10 @@ Search for the package that owns <file>. Tells pacman that the package supplied on the command line is a file, not an entry in the database. Pacman will decompress the file and query it. This is useful with \fB--info\fP and \fB--list\fP. +.TP +.B "\-s, \-\-search <string>" +This will search each locally-installed package for names or descriptions +that contains <string>. .SH HANDLING CONFIG FILES pacman uses the same logic as rpm to determine action against files that are designated to be backed up. During an upgrade, it uses 3 @@ -230,8 +236,11 @@ If set, pacman will use this proxy server for all ftp/http transfers. .TP .B "XferCommand = /path/to/command %u" If set, pacman will use this external program to download all remote files. -All instances of \fB%u\fP will be replaced with the URL to be downloaded. -This is useful for users who experience problems with pacman's built-in http/ftp +All instances of \fB%u\fP will be replaced with the URL to be downloaded. If +present, instances of \fB%o\fP will be replaced with the local filename, plus a +".part" extension, which allows programs like wget to do file resumes properly. + +This option is useful for users who experience problems with pacman's built-in http/ftp support, or need the more advanced proxy support that comes with utilities like wget. .TP |