From 45d8933fde95dfe5c4d00d5bcc69cfd258f0d8b1 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Wed, 19 Aug 2020 17:17:20 +0000 Subject: always remove the docs of temporary tools git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12030 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter07/stripping.xml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'chapter07') diff --git a/chapter07/stripping.xml b/chapter07/stripping.xml index da0bd3991..99caf7e3c 100644 --- a/chapter07/stripping.xml +++ b/chapter07/stripping.xml @@ -17,6 +17,11 @@ find /usr/{lib,libexec} -name \*.la -delete + Remove the documentation of the temporary tools, to prevent them + from ending up in the final system, and save about 35 MB: + +rm -rf /usr/share/{info,man,doc}/* + All the remaining steps in this section are optional. Nevertheless, as soon as you begin installing packages in ones would be destroyed and the toolchain packages would need to be built all over again. - To save more space (slightly more than 35 MB), remove the documentation: - -rm -rf $LFS/usr/share/{info,man,doc} - At this point, you should have at least 5 GB of free space on the chroot partition that can be used to build and install Glibc and GCC in the next phase. If you can build and install Glibc, you can build and install -- cgit v1.2.3-54-g00ecf