I am making a script that will update my system (and do some other things, but that doesn't matter). I want the script to run sudo apt-get update
and sudo apt-get dist-upgrade --yes
automatically. I use --yes so I won't have to choose yes when it runs; it upgrades all packages automatically without me having to do anything. That said, I want to put my password in the script somehow so I won't have to type in my password when I run it either, probably with an argument or something. You know, something I can put at the end like sudo apt-get update --passwd MYPASSWORDHERE
. I have tried that and it doesn't work, but that's an example of what I want. What argument (--passwd or --password or something) do I put at the end to do this?