In order avoid typing out all of the apt-get commands when updating my computer I have made a simple alias command to do it. But I really want to be able to just type in my alias and let it do its thing and not have to wait to for the yes/no prompt to type in "y". Is there a simple way to bypass this prompt or maybe add "yes" in the alias somewhere?
apt-get -o Dpkg::Options::='--force-confold' --force-yes -fuy dist-upgrade"
Dpkg::Options::='--force-confold' from the man-page:
--force-confold: do not modify the current configuration file, the new version is installed with a .dpkg-dist suffix. With this option alone, even configuration files that you have not modified are left untouched. You need to combine it with
apt-get update && apt-get upgrade -y && apt-get autoremove && apt-get autoclean
This updates the packages, upgrades the packages, removes unused packages, then removes old versions of packages.
You can copy paste that into:
nano -w yourscript.sh
chmod 777 yourscript.sh
So long as you use
su before all those steps, which I always do.