[HOME] [DOWNLOAD] [DOCS] [NEWS] [SUPPORT] [TIPS] [ISSUES] [Priority Support]

apt-get-update-plus(8) -- secure combined apt-get update and apt-get install/dist-upgrade

apt-get

#1
apt-get-update-plus(8) -- secure combined apt-get update and apt-get command
=============================================

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

## Description
Runs two commands. One after another:

1) `/usr/lib/security-misc/apt-get-wrapper update`

2) `apt-get [option]s`

`/usr/lib/security-misc/apt-get-wrapper` 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 `/usr/lib/security-misc/apt-get-wrapper`. 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 `/usr/lib/security-misc/apt-get-wrapper`.

`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@riseup.net).

Sources:


#2

Yes! At last one command instead of 2 to run updates.


#3

Nice. A great idea. No more && mess in my batch template update scripts…


#4

It’s too complicated for me. Can i still do standard “apt-get update && apt-get dist-upgrade”. Did i loose something if i do the old way ? Or i must use this new thing to get benefits. Sorry, i’m not tech savy…


#5

Nothing lost.