Re: New APT version
I have way too much time on my hands. On the other hand, if
the darned thing I work on for real compiled faster, I wouldn't.
>>"Kai" == Kai Henningsen <firstname.lastname@example.org> writes:
Kai> Maybe we could extract the du -S files into a separate file
Kai> similar to Packages. Anyone have an idea how large this would
Kai> get? With/without gzipping?
Well, on my machine, with large numbers (1207) of packages
installed; I looked at all the /var/lib/dpkg/info/*.list
files. Concatenated together, it was over 5M in size, with 144703
files and directories. Thankfully, we do not need all this data. We
just need to know how many directories there are.
Well. There are 33500 dirs that would need to be listed for the
packages on my machine. The size of the raw dirs file is 953422
Bytes, but add 8 bytes per dir for the size. Hmm. that is
953422 + 8 * 33500 [--- Emacs Calculator Mode ---] == 1221422 bytes
Hmm. Compressed down, assuming a 2:1 ratio, this would be
bigger than the 332K of the largets Packages.gz file we have. And
this is not even the full distribution, we have around 1800 packages,
and I only have 1200 installed. Say, a 50% increase. 1832133
bytes. Gzip down to about 800k, I think, about 3+ times the size of
the largest Packages.gz file we have.
__> dpkg -l | egrep ^ii | wc -l
5615 -rw-r--r-- 1 srivasta srivasta 5725858 May 22 00:12 all
__> wc -l all
__> wc dirs
33500 33500 953422 dirs
Democracy is that form of government where everybody gets what the
majority deserves. -- James Dale Davidson
Manoj Srivastava <email@example.com> <http://www.datasync.com/%7Esrivasta/>
Key C7261095 fingerprint = CB D9 F4 12 68 07 E4 05 CC 2D 27 12 1D F5 E8 6E
To UNSUBSCRIBE, email to firstname.lastname@example.org
with a subject of "unsubscribe". Trouble? Contact email@example.com