Re: [SLUG] Re: Verifying a debian install

2004-12-05 Thread Steve Kowalik
On Fri, 03 Dec 2004 00:44:15 +1100, Ken Foskey uttered
 I got an off list from peter suggesting:
 
 dpkg --get-selections | grep install | cut -f1 | xargs apt-get install
 --reinstall
 
 gave me this:
 
 dpkg --get-selections | grep install | cut -f1 | xargs dpkg -L  | grep
 -v \'| xargs -n 1 isnotfile
 
The other problem is that it gives you selections which are marked
'deinstall'. I would personally play with dpkg's database by hand,
like so:

for file in $(cat /var/lib/dpkg/info/*.list) ; do isnotfile $file ; done

Cheers,
-- 
Steve
I'm a doctor, not a doorstop
 - EMH, USS Enterprise
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Re: Verifying a debian install

2004-12-02 Thread Ken Foskey
On Thu, 2004-12-02 at 23:16 +1100, Ken Foskey wrote:
 My first kernel panic after an apt-get upgrade  (udev strikes again...)
 
 How do I get debian to totally verify itself.  I lost libX11 and also
 udev packages in the crash,  it says it is installed but it just is not.
 I have forced the install `apt-get install --reinstall udev libx11-6`
 but I want to check everything now.

I got an off list from peter suggesting:

dpkg --get-selections | grep install | cut -f1 | xargs apt-get install
--reinstall

gave me this:

dpkg --get-selections | grep install | cut -f1 | xargs dpkg -L  | grep
-v \'| xargs -n 1 isnotfile

This is flaky because in gcc-3.4 there is 64 bit files that are
obviously not installed in mine and also the files do not always have
correct paths.

isnotfile is a script:

#!/bin/sh

if [ ! -e $1 ] ; then
echo $1 does not exist
fi

-- 
Ken Foskey

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html