Skip to content

Commit

Permalink
Remove packages that would have been kept back
Browse files Browse the repository at this point in the history
  • Loading branch information
frdmn committed Sep 23, 2016
1 parent 46939da commit 74edb69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion formulae/00-apt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ fi

# Check for pending upgrade/autoremove actions
if [[ $(apt-get -s upgrade | wc -l) != 4 ]]; then
echo "Apt packages outdated or stale..." | prefix "updates"
# Upgrade system packages
sudo apt-get upgrade -y 2>&1 | prefix "upgrade"
sudo apt-get dist-upgrade -y 2>&1 | prefix "upgrade"
sudo apt-get autoremove -y 2>&1 | prefix "autoremove"
fi

Expand Down

0 comments on commit 74edb69

Please sign in to comment.