Forge Home


Install a bunch of packages via apt

Moritz Bellach



6,040 latest version

1.9 quality score

Version information

  • 0.1.0 (latest)
released Dec 17th 2016

Start using this module


flatline235/aptsimplesoftware — version 0.1.0 Dec 17th 2016


Table of Contents

  1. Description
  2. Setup - The basics of getting started with aptsimplesoftware
  3. Usage - Configuration options and additional functionality
  4. Reference - An under-the-hood peek at what the module is doing and how
  5. Limitations - OS compatibility, etc.
  6. Development - Guide for contributing to the module


This module configures the apt repositories, installs software from normal and backports sources and uninstalls software.

You should use this if you want to install a bunch of packages at once, which require no further configuration or actions.


What aptsimplesoftware affects

  • This module clears out /etc/apt/sources.list and puts the repositories into /etc/apt/sources.list.d/*
  • Also in /etc/apt/preferences.d/* files may be touched to pin packages
  • Obiously this (un)installs software
  • Dependencies: the apt module by puppetlabs
  • Configure your mirrors!
  • uninstalls happen before installs (so unknown dependencies may be reinstalled)



class { 'aptsimplesoftware':
  mirror => 'ftp://localmirror',
  mirror_security => 'ftp://localsecuritymirror',
  release => 'jessie',
  repos => 'main contrib non-free',
  packages => [ 'vim', 'tmux' ],
  backports => [ 'kernel', 'that', 'supports', 'this', 'centurys', 'hardware' ],
  uninstall => [ 'emacs', 'screen' ]

All parameters are optional.



  • mirror The mirror to use. Defaults to

  • mirror_security The mirror for security updates to use. Defaults to

  • release The release name. Default to jessie

  • repos The repos to include. Defaults to main contrib non-free

  • packages The list of packages to install. Defaults to an empty list.

  • backports The list of packages to install from backports. Defaults to an empty list.

  • uninstall The list of packages to uninstall. Defaults to an empty list.


This module assumes debian, release jessie. On other releases or distributions based on debian your milage my vary. Also I haven't done much of any testing as of yet.


Pull request and bug reports are very welcome :) License is Apache 2.0