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

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

`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

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


By setting apt_bin the user can use another program other than `/usr/lib/security-misc/apt-get-wrapper`.


Parameters before apt_get_wrapper_pre.


Parameters after apt_get_wrapper_pre.


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


Parameters before apt_bin.


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

This man page has been written by Patrick Schleizer (adrelanos@riseup.net).



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

1 Like

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

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…

1 Like

Nothing lost.

1 Like

sudo apt-get-update-plus” is the same as “sudo apt-get update && sudo apt-get

sudo apt-get-update-plus basically just removes the additional && sudo apt-get meaning you can use apt-get update with an additional command afterwards.

So instead of:

sudo apt-get update && sudo apt-get dist-upgrade

you can use:

sudo apt-get-update-plus dist-upgrade

you can use any of the additional commands for example:

sudo apt-get-update-plus install
sudo apt-get-update-plus clean
sudo apt-get-update-plus autoremove

I think it would be less complicated if “plus” was replaced with “and” instead.

1 Like
[Imprint] [Privacy Policy] [Cookie Policy] [Terms of Use] [E-Sign Consent] [DMCA] [Investors] [Priority Support] [Professional Support]