Two quick questions about *ftp and loging size.

Dan Nicholson dbn.lists at gmail.com
Fri Aug 3 12:47:27 PDT 2007


On 8/3/07, Randy McMurchy <randy at linuxfromscratch.org> wrote:
> Ag. D. Hatzimanikas wrote these words on 08/03/07 14:28 CST:
>
> > Sorry I wasn't clear. I was asking about the tarball size. Should we
> > count it also into the build size?
>
> No, we haven't been. However, there always seems to be some that think
> we should and some that think we shouldn't.

I've been confused by this at various times in the past, but here's
approximately how I compute things now (and I haven't been scolded in
a while :).

$ wget tarball.tar.bz2
$ du -b tarball.tar.bz2 | awk '{print "size: " $1/1024 " KB"}'
$ start=$(du -bs . | cut -f1)
$ tar -xf tarball.tar.bz2
$ ( cd tarball && do stuff && make DESTDIR=`pwd`/dest install )
$ end=$(du -bs . | cut -f1)
$ echo $end $start | awk '{print "build size: " ($1 - $2)/1024 " KB"}'

Converting to MB as necessary.

--
Dan



More information about the blfs-dev mailing list