back

apt

Manage packages through the apt package system

Overview

  • This module manages the apt package system.

  • It can update the available package list.

  • It can upgrade the entire package set

  • It can install and uninstall packages

Form

(apt command options)

Arguments

command

The overall command to execute. Should be one of :update, :upgrade, :install and :uninstall

:update

Download all the latest package indexes to the machine.

:upgrade

Upgrade any out of date packages to the latest versions.

:install

Install one or more packages.

:uninstall

Uninstall one or more packages.

options

In :install and :uninstall this can be a single package name (specified as a string), or many package names (a sequence or vector of many strings). In :update and :upgrade commands this is ignored.

Options

OptionDescription

Examples

Update the package list

(apt :update)

Upgrade the installed packages to the latest versions

(apt :upgrade)

Install the traceroute package

(apt :install "traceroute")

Install some network tools

(apt :install ["traceroute" "netperf" "iptraf" "nmap"])

Uninstall some network tools

(apt :remove ["traceroute" "netperf" "iptraf" "nmap"])