Answer the question
In order to leave comments, you need to log in
How to uninstall a program in ubuntu completely with all ends?
It seems like the sudo apt purge command deletes completely, but all the same, all sorts of configs and so on remain after it. Even if, for example, you remove the program through purge, and then install it again, it is not installed from scratch, but with the settings that were. So the old configs are still there. How to remove the program with everything that she brought with her and scattered in folders? Or how then to clean up all this unused garbage?
Answer the question
In order to leave comments, you need to log in
after sudo apt purge
, configs can only remain in the user directory
~/bla-bla or ~/.config/bla-bla
It all depends on the specific package. In theory, all configs should be stored in /etc
and then purge
deleted - this is exactly its meaning compared to remove
. There is no universal recipe, in short - just keep track of what other directories the software spoils.
In the most general case, no way. If the developers do not comply with the agreements and the program litters anywhere, then you will have to clean it up with pens. And look at the program files in .config and .local
dpkg -L will show what files are in the package.
For example, dpkg -L nginx
/.
/usr
/usr/sbin
/usr/sbin/nginx-debug
/usr/sbin/nginx
/usr/share
/usr/share/doc
/usr/share/doc/nginx
...
и т.д.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question