Kevin Buckley wrote:
> LFS 6.5
> 5.31. Stripping
>
> At this point LFS says
>
> To save nearly 20 MB more, remove the documentation:
>
> rm -rf /tools/{info,man}
>
> however on my build, there seem to be close to another 10MB below these two
> directories that could also go ?
>
> 8.7M /tools/share/info
> 1.1M /tools/share/man
>
> $ ls /tools/share/info/
> bash.info grep.info libc.info-11 libc.info-8 tar.info-1
> coreutils.info gzip.info libc.info-2 libc.info-9 tar.info-2
> dir info-stnd.info libc.info-3 m4.info texinfo
> find-maint.info info.info libc.info-4 m4.info-1 texinfo-1
> find.info libc.info libc.info-5 m4.info-2 texinfo-2
> gawk.info libc.info-1 libc.info-6 sed.info texinfo-3
> gawkinet.info libc.info-10 libc.info-7 tar.info
>
> $ ls /tools/share/man/man?
> /tools/share/man/man1:
> base64.1 echo.1 info.1 od.1 shred.1 tty.1
> basename.1 egrep.1 infokey.1 paste.1 shuf.1 uname.1
> bash.1 env.1 install-info.1 pathchk.1 sleep.1 unexpand.1
> bashbug.1 expand.1 install.1 pdftexi2dvi.1 sort.1 uniq.1
> cat.1 expr.1 join.1 pgawk.1 split.1 unlink.1
> chcon.1 factor.1 kill.1 pinky.1 stat.1 updatedb.1
> chgrp.1 false.1 link.1 pr.1 stty.1 uptime.1
> chmod.1 fgrep.1 ln.1 printenv.1 sum.1 users.1
> chown.1 find.1 locate.1 printf.1 sync.1 vdir.1
> chroot.1 fmt.1 logname.1 ptx.1 tac.1 wc.1
> cksum.1 fold.1 ls.1 pwd.1 tail.1 who.1
> comm.1 gawk.1 m4.1 readlink.1 tee.1 whoami.1
> cp.1 grep.1 makeinfo.1 rm.1 test.1 xargs.1
> csplit.1 groups.1 md5sum.1 rmdir.1 texi2dvi.1 yes.1
> cut.1 gunzip.1 mkdir.1 runcon.1 texi2pdf.1 zcat.1
> date.1 gzexe.1 mkfifo.1 sed.1 texindex.1 zcmp.1
> dd.1 gzip.1 mknod.1 seq.1 timeout.1 zdiff.1
> df.1 head.1 mktemp.1 sha1sum.1 touch.1 zforce.1
> dir.1 hostid.1 mv.1 sha224sum.1 tr.1 zgrep.1
> dircolors.1 hostname.1 nice.1 sha256sum.1 true.1 zless.1
> dirname.1 id.1 nl.1 sha384sum.1 truncate.1 zmore.1
> du.1 igawk.1 nohup.1 sha512sum.1 tsort.1 znew.1
>
> /tools/share/man/man5:
> info.5 locatedb.5 texinfo.5
>
> Not sure why my stuff ended up there, and not directly below
> /tools/{info,man},
> I have followed the instructions up to now. I also find I only have 14.5 MB
> in the areas LFS suggests there'll be nearly 20MB in ?
>
> $ du -sh /tools/{info,man}
> 7.4M /tools/info
> 7.1M /tools/man
>
> Kevin
>
This is a old / long standing point that folks bring up now and again.
Since /tools is very temporary, the book has not historically worried
about the documentation that gets installed by the temp tools. In 6.5
we added the comments about this section being optional and also to
remove the info and man pages. I am running some iterative builds and
also have /tools/share/{info,man}
james [ /mnt/build_dir/tools ]$ du -sh ./share/{info,man}
8.7M ./share/info
1.1M ./share/man
I don't have the /tools/{info,man} directories any more on my test
machine, but you can see that I have more space used in
/tools/share/info that you do, so to statement about 20MB is relative I
think. In the end, it does not really matter. /tools is temporary and
most computers today have plenty of space. We could add another command
to get rid of the /tools/share/{info,man} for completeness, however.
James
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page