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
:updateDownload all the latest package indexes to the machine.
:upgradeUpgrade any out of date packages to the latest versions.
:installInstall one or more packages.
:uninstallUninstall 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
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"])