this is my first question on this website so bear with me. I've use Linux for a decent amount of time and want to create a shell update to automate the process of update, with out using GUI since its slow and inefficient. I chained a few commands together so I don't have to do it individually, here is the command.
sudo apt update && sudo apt upgrade && sudo apt autoremove && sudo apt autoclean
My friend also uses Linux and says the autoremove command might mess with stability of the entire operating system, but I value security more. The question I'm asking is if this script is okay, or should I do it differently, maybe with out autoremove or structure it completely different. Sorry if this question doesn't make any sense, thanks in advance.
clean
instead ofautoclean
(see here). – Artur Meinild Mar 22 '21 at 07:30