GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
DISTVIPER(8) FreeBSD System Manager's Manual DISTVIPER(8)

distviper
wipe outdated files from the FreeBSD ports distdir

distviper [-dhinqv] [keep]

The distviper script removes outdated files within DISTDIR of the ports(7). To achieve this it reads distinfo files from the PORTSDIR and creates a list of files to keep if they should be encountered.

The following argument types can be given.
keep
Chooses which kind of files are kept:
, thorough
Keep files required for any port in the ports tree. The thorough alias exists for compatibility with the original bsdadminscripts.
Keep files required for any currently installed port.
This is the same as calling distviper with the -n flag and the installed argument. It exists for compatibility with the original bsdadminscripts.

The following options are supported:
--demo
The program is run in demo mode. The program acts as if it would operate normally, but does not remove any files.
--help
Displays the available options.
--interactvie
This option prompts for confirmation before deleting a file. It is ignored in demo mode.
--no-checksum
Turn off checksum validation for files to keep. Much faster, but also risks leaving invalid files in DISTDIR.
--quiet
Supresses all output except for interactive prompts.
--verbose
Makes the script talkative about what is currently going on.
keep
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 following environment variables are supported:
The location of the ports tree, e.g. /usr/ports.
The location of the distribution files, e.g. /usr/ports/distfiles.

The variables are collected running:

make -f/usr/share/mk/bsd.port.mk -VPORTSDIR -VDISTDIR

Delete any distfile not referenced by the current ports tree:
distviper

The demo mode can be used to check which files would be removed:

distviper -d

Avoid expensive operations, i.e. only keep files for installed ports and do not perform checksum validation:

distviper fast

Only keep files for installed ports, and ask for confirmation:

distviper -i installed

1
An unknown parameter has been supplied.
2
An unknown mode command has been supplied.
3
More than one mode commands have been supplied.

ports(7)

The distviper script first appeared in the bsdadminscripts-5.0 collection. It was rewritten for the bsda2 collection.

Dominic Fandrey <freebsd@k4m1.org>
23 February, 2021 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 8 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.