I
I
Ivan2020-09-03 12:54:13
ubuntu
Ivan, 2020-09-03 12:54:13

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

4 answer(s)
S
SOTVM, 2020-09-03
@Djonson86

after sudo apt purge
, configs can only remain in the user directory
~/bla-bla or ~/.config/bla-bla

K
ky0, 2020-09-03
@ky0

It all depends on the specific package. In theory, all configs should be stored in /etcand then purgedeleted - 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.

M
MechanicZelenyy, 2020-09-03
@MechanicZelenyy

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

A
Alexander Karabanov, 2020-09-12
@karabanov

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
...
и т.д.

Well, then remove if interfere.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question