Peppermint OS Community Forum

General => GNU/Linux Discussion => Topic started by: VinDSL on June 28, 2018, 08:15:50 pm

Title: Using "apt" rather than "apt-get" and "apt-cache"
Post by: VinDSL on June 28, 2018, 08:15:50 pm
Ran across this on LinkedIn today, of all places...  ::)

Quote
Brief: This article explains the difference between apt and apt-get commands of Linux. It also lists some of the most commonly used apt commands that replace the older apt-get commands.

Mildly interesting read: https://itsfoss.com/apt-vs-apt-get-difference/

Title: Re: Using "apt" rather than "apt-get" and "apt-cache"
Post by: VinDSL on June 28, 2018, 08:18:28 pm
BTW, at the bottom of the article...

Quote
So what do you think? Are you already using apt or do you want to stick with the good old apt-get? Share your views in the comment section below.

I'm oldskool, in this regard; an apt-getter.

How about you?
Title: Re: Using "apt" rather than "apt-get" and "apt-cache"
Post by: mac on June 28, 2018, 08:23:48 pm
apt  ;)
Title: Re: Using "apt" rather than "apt-get" and "apt-cache"
Post by: AndyInMokum on June 28, 2018, 08:42:11 pm
It seems we're being pushed to use just apt.  Sometimes, apt-get returns errors.  I'm apt  :).
Title: Re: Using "apt" rather than "apt-get" and "apt-cache"
Post by: scifidude79 on June 28, 2018, 11:00:22 pm
I run apt-get all the time without errors. It's just how I'm used to doing things. In fact, I used to just do the apt thing, but that was giving me errors a few Peppermint versions back, so I went back to apt-get.
Title: Re: Using "apt" rather than "apt-get" and "apt-cache"
Post by: PCNetSpec on June 29, 2018, 10:32:39 am
It seems we're being pushed to use just apt.  Sometimes, apt-get returns errors.  I'm apt  :).

I'd like an example of that Andy ?

It shouldn't.



Me, I'm an apt-get guy .. there are things "apt" can't do (but don't ask me what) .. I do think that apt-get tends to be more fine tunable, for example:-

apt upgrade does NOT == apt-get upgrade .. it in fact == apt-get upgrade --with-new-pkgs (which in itself is not the same as apt-get dist-upgrade which also allows new additions)

I'm unsure if there's a way to get apt on it's own to hold back packages that would require removing other packages (as apt-get upgrade does)

You only have to look at the two man pages
Code: [Select]
man apt
and
Code: [Select]
man apt-get
to see apt-get has MANY more options.

That said, for MOST use cases (non advanced package management) apt does simplify things, and has some nice touches such as the progress bar and functions such as:-
Code: [Select]
apt list
and
Code: [Select]
apt list upgradeable



As a side note, lately I've been trying to make the switch to apt on this forum (where possible), but I'm finding it terribly difficult and may give up .. for example I had to test apt purge works as apt-get remove --purge did, and according to the manpage it should .. and yet I got an error with apt purge  :-\
so ended up having a post on thiis forum that had both apt instructions and an apt-get one thrown in .. which is bound to lead to confusion (I know it confused me).