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

KGIII

Super Moderator
Staff member
Gold Supporter
Joined
Jul 23, 2020
Messages
11,497
Reaction score
9,994
Credits
95,326
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.
 


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
 
You can just sudo apt purge <package_name>.

That'll save you some time!
 
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
 
No, there's no difference between the results - as far as I know.
 
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
 
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.
 
alias apurge='sudo apt purge -y --autoremove'

poof bye-bye package!
 
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).
 

Members online


Latest posts

Top