Ubuntu: What is the meaning of this sentence regarding the difference between apt-get and apt?



Question:

What is the meaning of the following sentence regarding the difference between apt-get and apt?

The apt command is meant to be pleasant for end users and does not need to be backward compatible like apt-get(8).


Solution:1

It means that apt and apt-get have similar functionality, the difference being that apt is intended to be used interactively whereas apt-get is supposed to be used in scripts.

The behavior, effect and output of apt-get are maintained unchanged (that's what "backward compatible" means), so that scripts can rely on them. apt is more free to change with the times and may not function as expected if you run the same script sometime in the future.

Of course, nothing is stopping you from using apt-get interactively. I do. Maybe apt is easier to use interactively, but two commands are more difficult to learn then one command.

See also "What is the difference between apt and apt-get".


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »