Module apt

Ensure that a Debian APT managed package is present, absent or updated.

Info:

Functions

present(update_cache, no_upgrade)
Install a package. See apt-get(8) for full description of options and parameters

Promiser:

    package

Aliases:

  • installed
  • install

Parameters:

  • update_cache Run apt-get update before any operation [DEFAULT: false]
  • no_upgrade Prevent upgrade of specified package if already installed [DEFAULT: false]

Usage:

    apt.present("strace"){
        update_cache = true
    }
absent(None)
Remove a package.

Promiser:

    package

Aliases:

  • removed
  • remove

Parameters:

  • None

Usage:

    apt.absent("strace")()
generated by LDoc 1.4.6 Last updated 2017-05-09 15:50:38