You are not logged in.
Pages: 1
Hi everybody, I'm a new member of this forum, coming from Italy.
I have a question: why pacman -Rns doesn't remove also the config files and the directories in /etc? For example, i tried pacman -Rns samba to remove samba, but after that, the directory /etc/samba and the configuration files were still there. Why? I think it's a very boring thing, because i dont want to keep old config files, maybe with wrong configurations.
Thanks.
Offline
If samba (or you) created some files in /etc/samba, they are not associated to the samba package as pacman sees it (since they were not included in the original samba package). So you have to delete them manually.
Offline
I didnt know this.
So, I should try rm /etc/samba?
Offline
Yes (if you don't want to keep those config files; and you need to do is as root).
Offline
First check that nothing owns those files with "pacman -Qo <full file path>". If nothing owns them, then they are probably leftovers and safe to remove.
Offline
First check that nothing owns those files with "pacman -Qo <full file path>". If nothing owns them, then they are probably leftovers and safe to remove.
Well, this is not a general rule for files in /etc - but in the directories named by removed packages, it applies fine
Offline
Yes (if you don't want to keep those config files; and you need to do is as root).
Yes, as root
rm -R /etc/samba
Offline
Pages: 1