I use Ubuntu. I am using Ubuntu 18.04 with Kernel 5.0.
And I’m wondering something. When looking for help for problems I have in Linux, I often see solutions to type into terminal concerning installing things. And I usually see either ‘‘apt-get’’ or just plain ‘‘apt’’.
Is there a ‘‘right’’ one to use? Or is there a preferable one to use? Or ‘‘correct’’ one to use?
As I have been able to glean from tons of different sources they basically do the same thing, but they’re kinda interchangeable? Or does one have more benefits than the other? Or is one replacing the other?
Some clarity on this subject would help alot. And I just like learning things.
I would run arch as I’m not a complete computer noob, but I rely on my pc for work at the moment. And with how rolling releases tend to have major breakage when you least want it, I can’t. But I plan to give it a go on my mom’s old pc I’m getting next month to give it a go.
From the man pages, apt is “designed as an end-user tool and it may change behaviour between versions, if a change seems beneficial for interactive use.” apt-get and apt-cache are lower-level tools and “you should prefer using these commands (potentially with some additional options enabled) in your scripts as they keep backward compatibility as much as possible.”