APT-GET-UPDATE-PLUS(8)

NAME
apt-get-update-plus - secure combined apt-get update and apt-get command

SYNOPSIS
apt-get-update-plus [option]s

Description
Runs two commands. One after another:

1) apt-get --error-on=any

2) apt-get [option]s

apt-get --error-on=any would fail (exit non-zero) in case of any apt sources are unavailable. In such cases apt-get-update-plus would stop.

In other words, apt-get [option]s gets only run if the previously run apt-get update was successsful.

No options are passed to apt-get --error-on=any. Use apt_get_wrapper_pre / apt_get_wrapper_post for that. In other words, no options are passed to apt-get update.

All [option]s are passed to apt-get.

Environment Variables
apt_get_update_wrapper

By setting apt_bin the user can use another program other than apt-get --error-on=any.

apt_get_wrapper_pre

Parameters before apt_get_wrapper_pre.

apt_get_wrapper_post

Parameters after apt_get_wrapper_pre.

apt_bin

By setting apt_bin the uer could use another program other than apt-get.

apt_get_pre

Parameters before apt_bin.

apt_get_post

Parameters after apt_bin.

Examples
sudo apt-get-update-plus dist-upgrade

sudo apt-get-update-plus install xfce4

sudo apt_bin=apt-get-noninteractive apt-get-update-plus dist-upgrade

sudo apt_bin=apt-get-noninteractive apt-get-update-plus dist-upgrade -o Dpkg::Options::=--force-confold

AUTHOR
This man page has been written by Patrick Schleizer (adrelanos@whonix.org).