FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

LinkBack Thread Tools
Old 11-14-2009, 03:44 PM
Default dpkg-query -W -f='${Conffiles} ' | grep obsolete


is it true that this call `dpkg-query -W -f='${Conffiles}
' | grep obsolete` show all obsolate files which can be removed ?

I read about this at http://wiki.debian.org/LSBInitScripts/DependencyBasedBoot while upgrading sysv-rc for dependency booting.

My script to detect obsolate files is:


trap "rm $tmpf" EXIT QUIT

dpkg-query -W -f='${Conffiles}
' | grep obsolete | sed -e 's,[[:space:]]+([^[:space:]]+)[[:space:]]+([^[:space:]]+).*,2 1,g' |md5sum -c 2>/dev/null| grep ": OK$" | sed -e 's,: OK$,,g' >"$tmpf"
vi "$tmpf"


Thread Tools

All times are GMT. The time now is 10:07 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org