Browse Source

apt_upgrade: autoremove before upgrade

Signed-off-by: Alejandro Mery <amery@geeks.cl>
master
Alejandro Mery 10 years ago
parent
commit
66667d0f05
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      files/bin/apt_upgrade

+ 1
- 1
files/bin/apt_upgrade

@ -9,5 +9,5 @@ elif [ "${1:-}" = "-y" ]; then
fi
aptget="apt-get${apt_opt:+ $apt_opt}"
cmd="$aptget update && $aptget dist-upgrade && $aptget autoremove --purge"
cmd="$aptget update && $aptget autoremove --purge && $aptget upgrade && $aptget dist-upgrade"
exec sudo sh -c "$cmd"

Loading…
Cancel
Save