Is pacman -Rns the correct command to completely remove an application?

Hi friends.

I’m reading the list of terminal commands for Arch:

https://wiki.archlinux.org/title/Pacman/Rosetta

And I need to delete/uninstall a program (I know, this is too basic), and I would like to delete everything related to the program/application. That is, program, configuration files, etc.

So:

R = remove program/application
n = remove configuration files
s = remove dependencies

Is there any other letter that you recommend I add when uninstalling an application?

sudo pacman -Rns NAME PROGRAM

Just this command?

Thanks in advance friends.

That command removes the package and its un-needed dependencies. The configuration files (the stuff in .config) and also local program data (~/.local/share) will not be removed.

1 Like

I see, thanks friend.

So how do I remove all of that, with another terminal command, or by carefully going into those 2 folders and removing anything related to this program?

Yes.

1 Like

There’s a similar post somewhere with many suggestions.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.