cdist-type__apt_backports - Man Page

Install backports

Description

This singleton type installs backports for the current OS release. It aborts if backports are not supported for the specified OS or no version codename could be fetched (like Debian unstable).

The package index will be automatically updated if required.

It supports backports from following OSes:

Required Parameters

None.

Optional Parameters

state

Represents the state of the backports repository. present or absent, defaults to present.

Will be directly passed to cdist-type__apt_source(7).

mirror

The mirror to fetch the backports from. Will defaults to the generic mirror of the current OS.

Will be directly passed to cdist-type__apt_source(7).

Boolean Parameters

None.

Messages

None.

Examples

# setup the backports
__apt_backports
__apt_backports --state absent
__apt_backports --state present --mirror "http://ftp.de.debian.org/debian/"

# install a backports package
# currently for the buster release backports
require="__apt_backports" __package_apt wireguard \
     --target-release buster-backports

Aborts

Aborts if the detected os is not Debian.

Aborts if no distribuition codename could be detected. This is common for the unstable distribution, but there is no backports repository for it already.

Caveats

For Ubuntu, it setup all componenents for the backports repository: main, restricted, universe and multiverse. The user may not want to install proprietary packages, which will only be installed if the user explicitly uses the backports target-release. The user may change this behavior to install backports packages without the need of explicitly select it.

See Also

Official Debian Backports site

cdist-type__apt_source(7)

Authors

Matthias Stecher <matthiasstecher at gmx.de>

Copying

Copyright (C) 2020 Matthias Stecher. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Referenced By

cdist-type__apt_pin(7).

Jul 31, 2022 7.0.0 cdist