I see we have apt update and apt upgrade, but then we should do apt autoremove and/or apt autoclean, etc.
Is there a single command for full Ubuntu maintenance?
I see we have apt update and apt upgrade, but then we should do apt autoremove and/or apt autoclean, etc.
Is there a single command for full Ubuntu maintenance?
We can have
sudo apt update -y && sudo apt full-upgrade -y && sudo apt autoremove -y && sudo apt clean -y && sudo apt autoclean -y
update - updates the list of packages but do not installupgrade - install new versions of packages if new versions are availablefull-upgrade - performs the function of upgrade but will remove currently installed packages if this is needed to upgrade the system as a whole (fixing bad dependencies then)autoremove, autoclean and clean - clean old packages which are not needed any more-y does not request for permission on every step