[arch-general] A Couple of Questions about files under etc which owned by no package

Leonid Isaev lisaev at umail.iu.edu
Fri Mar 16 13:17:49 EDT 2012


On Fri, 16 Mar 2012 16:23:03 +0800
郑文辉(Techlive Zheng) <techlivezheng at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://mailman.archlinux.org/pipermail/arch-general/attachments/20120316/d9f99a6f/attachment.asc>


More information about the arch-general mailing list