SystemInstaller::Package::Deb(3pm)

SystemInstaller::Package::Deb3pm

Debian packaging for systeminstaller

Usage

 use SystemInstaller::Package::Deb;
 $Pinfo{PTYPES}{Deb}=   "<list of Debian packages>";
 $Pinfo{root}=          "<image root location>";
 $Pinfo{arch}=          "<image architecture>";
 if ( SystemInstaller::Package::Deb->check_files(\%Pinfo) ) {
        print "files missing\n";
 }
 if ( SystemInstaller::Package::Deb->install(\%Pinfo) ) {
        print "install failed\n";
 }

Overview

SystemInstaller::Package::Deb provides the specific functions for SystemInstaller to install debian packages.

It reads the package list from $Pinfo{PTYPES}{Deb} and based on the information there, checks and installs the packages.

Functions

check_files(\%Pinfo)

       Checks that the .deb files exist, and attempts to clear up any
       ambiguity over the actual full filename.  It references the
       following elements from the %Pinfo structure:
              $Pinfo{arch}              architecture
              $Pinfo{location}  package file location
        $Pinfo{PTYPES}{Deb}     list of .deb packages to check
       It creates the following lists:
              $Pinfo{PFILES}{Deb}       list of full filenames.
              $Pinfo{MISSING}   list of missing .deb packages.

install(\%Pinfo)

     Installs the packages. It references the following elements of
     the %Pinfo structure.
        $Pinfo{location}        package file location
        $Pinfo{root}    The image root to install to
        $Pinfo{PFILES}{Deb}  list of .deb filenames to install
     The install function must be run with the full powers of root,
     since installed files must be given the proper ownerships and
     permissions.  Also, for debian packaging a successful chroot()
     system call must be made in order to properly install packages.

Releases

2 releases since Debian 3.1 (Sarge); the text changed 1 time.

  1. 3.1
  2. 4.0

Author

Vasilios Hoffman <[email protected]>

From systeminstaller 1.04-3 in Debian 4.0 (Etch). Parsed by carta from the page's man source.