pkg_distinst - Remove any distfiles not belonging to an installed package

Property Value
Distribution NetBSD 7.0
Repository NetBSD i386
Package filename pkg_distinst-0.02nb6.tgz
Package name pkg_distinst
Package version 0.02nb6
Package release -
Package architecture i386
Package type tgz
Category pkgtools
Homepage -
License -
Maintainer -
Download size 3.07 KB
Installed size 3.23 KB
This is a simple script that will synchronise the content of your ${DISTDIR}
directory with currently installed packages.
This script will delete any ${DISTFILE} in ${DISTDIR} that does not currently
have an installed package as an owner.
If you play with packages a fair bit and download some just to have a play with
and delete the package later your ${DISTDIR} can end up with a lot of orphaned
${DISTFILES}.  While lintpkgsrc will help you remove outdated ${DISTFILES} it
does not do any correlation with installed packages which is the gap this
script aims to fill.
With "lintpkgsrc -or && pkg_distinst --delete" you can and up with a fairly
lean and current ${DISTDIR}.


Package Version Architecture Repository
pkg_distinst-0.02nb6.tgz 0.02nb6 amd64 NetBSD
pkg_distinst - - -


Name Value
perl >= 5.0


Type URL
Binary Package pkg_distinst-0.02nb6.tgz
Source Package pkg_distinst

Install Howto

Install pkg_distinst tgz package:

# pkg_add pkg_distinst

See Also

Package Description
pkg_filecheck-0.4nb7.tgz Check for files not owned by any package
pkg_install-20180425.tgz Package management and administration tools for pkgsrc
pkg_install-info-4.5nb3.tgz Standalone GNU info file installation utility
pkg_leaves-1.2.tgz Print leaf packages
pkg_notify-0.4.6nb1.tgz Notifies package maintainer when a new version is available
pkg_online-client-0.13.1nb1.tgz Client/Server package searcher for pkgsrc (client tools)
pkg_online-server-0.13.1.tgz Client/Server package searcher for pkgsrc (server tools)
pkg_p5up2date-0.06nb4.tgz Check p5-* pkgsrc packages requiring updates
pkg_regress-0.4.tgz Run pkgsrc infrastructure regression test suite
pkg_rolling-replace-0.24.4.tgz Replace/upgrade packages in-place
pkg_select-20090308nb8.tgz Curses based pkgsrc system browser / manager
pkg_summary-utils-0.66.0.tgz Utilities for manipulating pkg_summary(5) files
pkg_tarup-1.9.1.tgz Generates binary package(s) from installed pkg(s)
pkgclean-20051116.tgz Quickly clean up all work directories in pkgsrc
pkgconf-1.4.1nb1.tgz API-driven pkg-config replacement