summaryrefslogtreecommitdiff
path: root/prtsweep.1
blob: de498085f5652873394c61fee68d9b3b19585e1d (plain)
    1 .\" 
    2 .\" prtsweep manual page.
    3 .\" (C) 2e003 by Martin Opel <mo@obbl-net.de> 
    4 .\"
    5 .TH prtsweep 1
    6 .SH NAME
    7 prtsweep \- sweep old files from the ports directories
    8 .SH SYNOPSIS
    9 .PP
   10 .B prtsweep
   11 [\-a] [\-d] [\-n] [PORTDIR ...]
   12 .SH DESCRIPTION
   13 
   14 The \fIprtsweep\fP program sweeps port directories from unneeded files.
   15 Unneeded files are either files which are not part of the source array 
   16 in the Pkgfile or package files with a name like 
   17 .PP
   18 .nf
   19 	name#version.pkg.tar.gz
   20 .fi
   21 .PP
   22 All other files are removed. If a port directory is empty, the whole directory
   23 can be removed with the \fI\-d\fP option.
   24 
   25 .SH OPTIONS
   26 The following options are supported:
   27 .TP
   28 .I "\-a"
   29 This is the automatic mode. In this mode \fIprtsweep\fP reads the ports
   30 directories from the rsync and httpup files in /etc/ports and cleans all ports 
   31 in these directories.
   32 .TP
   33 .I "\-d"
   34 Removes empty directories completely. This happens when ports are moved for
   35 example from unstable to stable or vice versa. Note that this option only
   36 deletes empty directories, so accidently removing whole directory trees
   37 should not happen, even if you use
   38 .IP
   39 .nf
   40 	prtsweep \-d /
   41 .fi
   42 .IP
   43 To remove these moved ports completely you have to run \fIprtsweep\fP twice
   44 to first remove the files and second remove the empty directory.
   45 .TP
   46 .I "\-n"
   47 Dryrun. Do not remove anything really.
   48 
   49 .SH EXAMPLES
   50 
   51 You can call \fIprtsweep\fP with one port:
   52 .PP
   53 .nf
   54 	root@hostname:/root # prtsweep /usr/ports/opt/dialog
   55 	=======> /usr/ports/opt/dialog
   56 	+ removing file dialog-0.9b-20020814.tgz
   57 .fi
   58 .PP
   59 Or you could call the automatic mode, which scans your supfiles in /etc/ports
   60 for all ports directories and cleans them automatically:
   61 .PP
   62 .nf
   63 	root@hostname:/root # prtsweep -a
   64 	=======> /usr/ports/clc/stable/atop
   65 	+ removing file atop-1.8.tar.gz
   66 	=======> /usr/ports/clc/stable/coldsync
   67 	+ removing file coldsync-2.2.5-gcc3.diff
   68 	+ removing file coldsync-2.2.5.tar.gz
   69 	=======> /usr/ports/clc/stable/dnsmasq
   70 	+ removing file dnsmasq-1.10.tar.gz
   71 	...
   72 .fi
   73 
   74 .SH AUTHOR
   75 Martin Opel <mo@obbl-net.de>
   76 .SH "SEE ALSO"
   77 prtwash(1)

Generated by cgit