[arch-general] A Couple of Questions about files under etc which owned by no package
I ran the script below to see the files which owned by no package. export LC_ALL=C for dir in bin etc lib usr var sbin;do find /$dir -type f -exec pacman -Qo {} \; 2>$dir 1>/dev/null done I got the following. error: No package owns /etc/crontab error: No package owns /etc/localtime error: No package owns /etc/ssl/certs/ca-certificates.crt Are these files necessary now, could I delete them?
2012/3/16 郑文辉(Techlive Zheng) <techlivezheng@gmail.com>:
error: No package owns /etc/localtime
This is needed in order for different programs to know what timezone you are in. It should be a symlink maintained by initscripts, but it is set at runtime so not part of the package. -t
2012/3/16 Tom Gundersen <teg@jklm.no>:
2012/3/16 郑文辉(Techlive Zheng) <techlivezheng@gmail.com>:
error: No package owns /etc/localtime
This is needed in order for different programs to know what timezone you are in. It should be a symlink maintained by initscripts, but it is set at runtime so not part of the package.
-t
My /etc/localtime is a actual file not a symlink.
2012/3/16 郑文辉(Techlive Zheng) <techlivezheng@gmail.com>:
2012/3/16 Tom Gundersen <teg@jklm.no>:
2012/3/16 郑文辉(Techlive Zheng) <techlivezheng@gmail.com>:
error: No package owns /etc/localtime
This is needed in order for different programs to know what timezone you are in. It should be a symlink maintained by initscripts, but it is set at runtime so not part of the package.
-t
My /etc/localtime is a actual file not a symlink.
It is then a copy of the file in /usr/share/zoneinfo rather than a symlink to it, this will change into a symlink in future versions of initscripts. You could make it a symlink manually if you want. -t
On 03/16/2012 10:23 AM, 郑文辉(Techlive Zheng) wrote:
error: No package owns /etc/ssl/certs/ca-certificates.crt
this file is generated by ca-certificates at installation. You don't want to delete this file since all packages relaying will have a broken ssl verification. -- Ionuț
2012/3/16 Ionut Biru <ibiru@archlinux.org>:
On 03/16/2012 10:23 AM, 郑文辉(Techlive Zheng) wrote:
error: No package owns /etc/ssl/certs/ca-certificates.crt
this file is generated by ca-certificates at installation. You don't want to delete this file since all packages relaying will have a broken ssl verification.
-- Ionuț
I thought openssl have used /etc/ssl/certs now, maybe this single ca-certificates.crt file is not needed any more, as they are separate into several individual files now.
On Fri, 16 Mar 2012 16:23:03 +0800 郑文辉(Techlive Zheng) <techlivezheng@gmail.com> wrote:
I ran the script below to see the files which owned by no package.
export LC_ALL=C for dir in bin etc lib usr var sbin;do find /$dir -type f -exec pacman -Qo {} \; 2>$dir 1>/dev/null done
I got the following.
error: No package owns /etc/crontab error: No package owns /etc/localtime error: No package owns /etc/ssl/certs/ca-certificates.crt
Are these files necessary now, could I delete them?
I don't think checking ownership of files in /etc/ makes much sense, as these files are supposed to be added by user/daemons. For example, a lot of files under /etc/cups are not owned by cups... -- Leonid Isaev GnuPG key ID: 164B5A6D Key fingerprint: C0DF 20D0 C075 C3F1 E1BE 775A A7AE F6CB 164B 5A6D
On Fri, Mar 16, 2012 at 6:17 PM, Leonid Isaev <lisaev@umail.iu.edu> wrote:
On Fri, 16 Mar 2012 16:23:03 +0800 I don't think checking ownership of files in /etc/ makes much sense, as these files are supposed to be added by user/daemons. For example, a lot of files under /etc/cups are not owned by cups...
+100 to that. It makes no sense (I should have pointed that out in my first email). I guess the only place it really makes sense is under /usr (and the dirs that will hopefully move to /usr soon, i.e. /bin, /sbin and /lib). -t
2012/3/17 Tom Gundersen <teg@jklm.no>:
On Fri, Mar 16, 2012 at 6:17 PM, Leonid Isaev <lisaev@umail.iu.edu> wrote:
On Fri, 16 Mar 2012 16:23:03 +0800 I don't think checking ownership of files in /etc/ makes much sense, as these files are supposed to be added by user/daemons. For example, a lot of files under /etc/cups are not owned by cups...
+100 to that. It makes no sense (I should have pointed that out in my first email). I guess the only place it really makes sense is under /usr (and the dirs that will hopefully move to /usr soon, i.e. /bin, /sbin and /lib).
-t
I understand that of cause, I just want do make sure there are any left over config files there after I uninstal some package. Any way, thank you all. Regards Techlvie Zheng
participants (4)
-
Ionut Biru
-
Leonid Isaev
-
Tom Gundersen
-
郑文辉(Techlive Zheng)