I wrote this script,
#!/bin/bash
# if not root, run as root
if (( $EUID != 0 )); then
sudo /home/jb/bash/update.sh
exit
fi
apt-get update
apt-get -y upgrade
apt-get -y dist-upgrade
apt-get clean
apt-get -y autoremove
the goal being to have a one-stop-shop for updating everything and removing any unnecessary packages.
Is the above sufficient? Is there anything redundant or unnecessary about it? Any dangers/cautions that need to be considered? Other (fill in the blank)?
Edit: If I only use the built in Ubuntu 12.04 Update Manager, do things get cleaned and autoremoved?