|The program is run in demo mode. The program acts as if it would operate normally, but does not remove any files.|
|Displays the available options.|
|This option prompts for confirmation before deleting a file. It is ignored in demo mode.|
|Supresses delete messages.|
|Makes the script talkative about what is currently going on.|
|mode||There are currently two modes available. By default the thorough mode is selected, which scans all distinfo files. The fast mode only scans distinfo files for installed ports.|
The fast mode is often sufficient. There are two cases when this does not apply.
If one intends to keep distfiles for ports that are not currently installed, like on a dedicated build machine, the (default) thorough mode is the mode of choice.
The other case is, when a port fetches its files by having a dependency on the fetch target of another port and this other port is not installed. This is a very rare case, though.
To run the script in thorough mode use the following command line.distviper
The demo mode can be used to check which files would be removed in fast mode.distviper -d fast
To be prompted for confirmation and using fast mode the following line can be used.distviper -i fast
1 An unknown parameter has been supplied. 2 An unknown mode command has been supplied. 3 More than one mode commands have been supplied.
The script has been tested on FreeBSD 7.2-PRERELEASE.
The distviper script first appeared in the bsdadminscripts-5.0 collection.
Dominic Fandrey <firstname.lastname@example.org>