[EMAIL PROTECTED]:/var/lib/dpkg# cat scan_status.php
#!/usr/bin/php
<?php
$handle = @fopen("/var/lib/dpkg/status", "r");
if ($handle)
  {
    $sz=0;
    $package='';
    while (!feof($handle))
      {
        $buffer = fgets($handle, 4096);
        if (substr($buffer,0,7)=='Package')
          {
            echo "$sz\t$package\n";
            $sz=strlen($buffer);
            $package=$buffer;
          }
        else {$sz+=strlen($buffer);};
     };
   echo "$sz\t$package\n";

   fclose($handle);
}
?>

then

[EMAIL PROTECTED]:/var/lib/dpkg# ./scan_status.php |sort -nr | less

my top entry was otrs at 37k bytes

chopping out a few hundred lines of conf files got apt running again

this is a bug in apt

** Bug watch added: Debian Bug tracker #276060
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=276060

** Also affects: apt (upstream) via
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=276060
   Importance: Unknown
       Status: Unknown

-- 
Unable to parse package file /var/lib/dpkg/status (1)
https://launchpad.net/bugs/50766

--
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to