apt is the command that is being recommended by the Linux distributions. It provides the necessary option to manage the packages. It is easier to use with its fewer but easy to remember options.
As quoted in itsfoss.com
There is no reason to stick with apt-get unless you are going to do specific operations that utilize more features of apt-get.
aptis a subset of apt-get and apt-cache commands providing necessary commands for package management
- while apt-get won’t be deprecated, as a regular user, you should start using apt more often
I get this error when I use
apt in shell scripts whereas it does not happen when I use
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
My questions are:
- Why doesn't
apthave a stable CLI interface?
- How can I use
aptwith caution or safely?
- How can I disable this error message?