Module::Build::CleanInstall(3pm)

Module::Build::CleanInstall3pm

Subclass of module::build which removes the old module before installing the new one

Usage

 use strict;
 use warnings;
 use Module::Build::CleanInstall;
 my $builder = Module::Build::CleanInstall->new(
   ... # same as Module::Build
 );
 $builder->create_build_script;

Overview

Module::Build::CleanInstall is a subclass of Module::Build with one additional feature, before upgrading the module from and old version to a new one, it first removes the files installed by the previous version. This is useful especially when the new version will not contain some files that the old one did, and it is necessary that those files do not remain in place.

Since it is a subclass of Module::Build it is used exactly like that module. This module does provide an additional action "uninstall", but it need not be called separately; the action "install" will call it when invoked.

The uninstalling is done by removing the files in the installed module's packlist which is created when the module is first installed.

Source repository

<http://github.com/jberger/Module-Build-CleanInstall>

Releases

6 releases since Debian 8 (Jessie); the text changed 3 times.

  1. 8
  2. 9–10
  3. 11
  4. 12–13

Author

Joel Berger, <[email protected]>

From libmodule-build-cleaninstall-perl 0.5-4 in Debian 13 (Trixie). Parsed by carta from the page's man source.