If you’re a user interacting with a terminal => apt
If you’re writing a script or putting it in a docker file/automation => apt-get
Apt is just a wrapper around apt-get a newer binary than apt-get (I stand corrected after checking my memory against google) and there are warnings that the apt shorthand is not as reliable in scripted scenarios. Its meant for user convenience.
Off topic… But isn’t apt-get outdated? I thought it was just “apt install”
If you’re a user interacting with a terminal => apt
If you’re writing a script or putting it in a docker file/automation => apt-get
Apt is
just a wrapper around apt-geta newer binary than apt-get (I stand corrected after checking my memory against google) and there are warnings that the apt shorthand is not as reliable in scripted scenarios. Its meant for user convenience.Apt-get is most certainly not outdated.