You are not logged in.

#1 2021-04-30 16:12

3QCentGk
Member
Registered: 2019-10-24
Posts: 6

Purge synstax

What is the correct syntax for the "purge" command.

So far, every time I try it, I receive the error "command not found."

Offline

#2 2021-04-30 19:31

Tolkem
Member
Registered: 2019-10-06
Posts: 487

Re: Purge synstax

3QCentGk wrote:

What is the correct syntax for the "purge" command.

So far, every time I try it, I receive the error "command not found."

Firts, "purge" isn't a command per se, but an option you pass to apt-get, read apt-get's manpages

man apt-get 

Second, you can use purge like this:

sudo apt-get purge pkg_name

Removes/uninstalls the pkg_name, i.e. Firefox, it'll also remove related settings, customizations and configuration files, i.e. .mozilla folder files.

sudo apt autoremove --purge

Removes/uninstalls pkgs no longer needed that were installed as dependencies for another pkg as well as their respective settings and configurations files.

sudo apt autoremove --purge pkg_name

Does the same thing as above but for a specific pkg_name

sudo apt-get remove --purge pkg_name

Does the same thing as apt-get purge.

Hope this helps! smile

Last edited by Tolkem (2021-04-30 19:34)

Offline

Board footer

Powered by FluxBB