Today's article answers a question about apt-remove vs apt-purge...

KGIII

Super Moderator
Staff member
Gold Supporter
Joined
Jul 23, 2020
Messages
5,763
Reaction score
5,197
Credits
46,519
It's kinda written like someone asked me a question. I'd like to encourage that, actually. I'd like to do an 'asked by you' type of thing once a month.

Anyhow, here's the link:


Feedback is awesome, and after today I should be less busy.
 


D

Deleted member 128018

Guest
I've learned to use this command to remove software packages etc in the terminal when I go that route.
Code:
sudo apt remove --purge package name
 
D

Deleted member 128018

Guest
What's the difference or is there a difference and why 2 different terminal codes.
Code:
sudo apt remove --purge package_name

sudo apt purge package_name
 

wizardfromoz

Administrator
Staff member
Gold Supporter
Joined
Apr 30, 2017
Messages
7,112
Reaction score
5,989
Credits
23,530
One is older than the other.

The first was originally

sudo apt-get remove --purge package_name

and goes back to when APT was first introduced to Debian and Debian-based Distros.

It was left functional, even since apt has more recently been favoured over apt-get.

Wiz
 
D

Deleted member 128018

Guest
One is older than the other.
I hear that quite a bit around my house from family. ;)

Yep the more I learn about terminal commands the more I'm finding different commands with the same end results.

Can't post any of them at the moment but I know you guys have seen the same thing.
 
OP
K

KGIII

Super Moderator
Staff member
Gold Supporter
Joined
Jul 23, 2020
Messages
5,763
Reaction score
5,197
Credits
46,519
Also, when scripting use 'apt-get' as it's a more stable interface. Use apt otherwise.

Lemme find an FYI type of link to go with this...

This one should do it.


I can't help but notice the lack of innumerable comments (on the site) with questions I should answer at the rate of "whenever I feel like it" (once a month or so).
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!


Latest posts

Top