Xchat stoped working today on my Debian distribution...

So I decided to upgrade xchat, and also the gtk libraries, but it still does not work :-(

Well, what if we upgrade ALL of xchat dependencies, recursively? Might work, but how to compute them? Here we go:

First, find all installed packages:

grep-dctrl -s package,version -F status 'install ok installed' </var/lib/dpkg/status | awk '/package:/ { p = $2 } /version:/ { print p "'"'"'" $2 }' > /tmp/inst

N.B: dpkg --list will not do, since it removes the 'epoch' information from verison numbers...

Load them in history and compute the closure:

> $a <- load_packages("/tmp/inst")
WARNING: In file "/tmp/inst" line 20, Unit "vmwareworkstation".
WARNING: In file "/tmp/inst" line 32, Unit "mozilla-tiff-plugin".
WARNING: In file "/tmp/inst" line 58, Unit "libmjpegtools0".
WARNING: In file "/tmp/inst" line 60, Unit "xfuse-common".
WARNING: In file "/tmp/inst" line 204, Unit "kroll".
WARNING: In file "/tmp/inst" line 209, Unit "libavutilcvs0".
WARNING: In file "/tmp/inst" at line 220 ignoring unknown unit "mplayer-686" version "1:1.0-pre7-0.0".
...
> $a ~ /xchat/
{ xchat'2.6.8-0.2, xchat-common'2.6.8-0.2 } : set of package as int set
> closure($a ~ /xchat/) & $a
{ cabextract'1.1-1, coreutils'5.97-5.1, cpp'4:4.1.1-13, cpp-3.3'1:3.3.6-13,
...}
> #dump "/tmp/zz" unit(closure($a ~ /xchat/) & $a)
>
Bye.

Give this list to apt-get for it to actually perform the upgrade

% sudo apt-get install `cat /tmp/zz`
Version 1.9 last modified by RobertoDiCosmo on 28/11/2006 at 21:50

Comments 0

No comments for this document

Attachments 0

No attachments for this document

Creator: BerkeDurak on 2006/11/28 13:06
Copyright EDOS Consortium
1.1.1