You are not logged in.

#1 2008-06-02 12:00:40

Philip J. Fry
Member
From: Torino, Italia
Registered: 2008-06-02
Posts: 18

Pacman and /etc directories

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

#2 2008-06-02 15:07:05

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: Pacman and /etc directories

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

#3 2008-06-02 15:08:32

Philip J. Fry
Member
From: Torino, Italia
Registered: 2008-06-02
Posts: 18

Re: Pacman and /etc directories

I didnt know this.
So, I should try rm /etc/samba?

Offline

#4 2008-06-02 15:10:01

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: Pacman and /etc directories

Yes (if you don't want to keep those config files; and you need to do is as root).

Offline

#5 2008-06-02 15:10:42

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,484
Website

Re: Pacman and /etc directories

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

#6 2008-06-02 15:14:26

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: Pacman and /etc directories

Allan wrote:

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 smile

Offline

#7 2008-06-02 15:20:07

Philip J. Fry
Member
From: Torino, Italia
Registered: 2008-06-02
Posts: 18

Re: Pacman and /etc directories

bender02 wrote:

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

Board footer

Powered by FluxBB