./pkgtools/pkg_distinst, Remove any distfiles not belonging to an installed package

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.02nb10, Package name: pkg_distinst-0.02nb10, Maintainer: pkgsrc-users

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}.


Required to run:
[lang/perl5]

Required to build:
[pkgtools/cwrappers]

Version history: (Expand)


CVS history: (Expand)


   2022-06-28 13:38:00 by Thomas Klausner | Files touched by this commit (3952)
Log message: *: recursive bump for perl 5.36 
   2021-05-24 21:56:06 by Thomas Klausner | Files touched by this commit (3575)
Log message: *: recursive bump for perl 5.34 
   2020-08-31 20:13:29 by Thomas Klausner | Files touched by this commit (3631)
Log message: *: bump PKGREVISION for perl-5.32. 
   2020-08-13 01:48:33 by David H. Gutteridge | Files touched by this commit (1)
Log message: pkg_distinst: fix typo in MESSAGE 
   2019-08-11 15:25:21 by Thomas Klausner | Files touched by this commit (3557)
Log message: Bump PKGREVISIONs for perl 5.30.0 
   2019-05-23 21:23:24 by Roland Illig | Files touched by this commit (242)
Log message: all: replace SUBST_SED with the simpler SUBST_VARS pkglint -Wall -r --only "substitution command" -F With manual review and indentation fixes since pkglint doesn't get that part correct in every case. 
   2018-08-22 11:48:07 by Thomas Klausner | Files touched by this commit (3558)
Log message: Recursive bump for perl5-5.28.0 
   2016-07-09 08:39:18 by Thomas Klausner | Files touched by this commit (1068)
Log message: Bump PKGREVISION for perl-5.24.0 for everything mentioning perl.