debpkg(1)

debpkg1

Wrapper for dpkg

Usage

debpkg dpkg-options

Overview

debpkg simply invokes dpkg(1) but first becomes superuser so that dpkg is able to install and remove packages. It also cleans the environment and resets PATH to a sane default: "/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11" so that local versions of programs are not run by accident.

Requirements

debpkg must be given superuser privileges in some way to function properly. Access to debpkg with those privileges is the same as having superuser access to your machine. debpkg will abort if it finds that it neither being run by root nor setuid root.

The devscripts package has been designed to allow debpkg to be made setuid root. This works by using a compiled wrapper script, which means that suidperl is not required. See dpkg-statoverride(8) if you wish to make this program setuid root. sudo or super could also conceivably be used.

Releases

16 releases since Debian 1.2 (Rex); the text changed 5 times.

  1. 1.2
  2. 1.3–2.1
  3. 2.2
  4. 3.0
  5. 3.1–4.0
  6. 5.0–12

Author

Christoph Lameter <[email protected]>; minor modifications made by Julian Gilbey <[email protected]>.

From devscripts 2.23.4+deb12u2 in Debian 12 (Bookworm). Parsed by carta from the page's man source.