diff options
author | Xi Ruoyao <xry111@mengyan1223.wang> | 2020-08-19 17:17:20 +0000 |
---|---|---|
committer | Xi Ruoyao <xry111@mengyan1223.wang> | 2020-08-19 17:17:20 +0000 |
commit | 45d8933fde95dfe5c4d00d5bcc69cfd258f0d8b1 (patch) | |
tree | c4b6156d0be0fa6d930353a1e990758785bb1639 | |
parent | c0c616a439608a25003e82a53822c9aa5f78efbc (diff) |
always remove the docs of temporary tools
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12030 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
-rw-r--r-- | chapter07/stripping.xml | 9 |
1 files changed, 5 insertions, 4 deletions
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 @@ <screen><userinput>find /usr/{lib,libexec} -name \*.la -delete</userinput></screen> + <para>Remove the documentation of the temporary tools, to prevent them + from ending up in the final system, and save about 35 MB:</para> + +<screen><userinput>rm -rf /usr/share/{info,man,doc}/*</userinput></screen> + <note><para> All the remaining steps in this section are optional. Nevertheless, as soon as you begin installing packages in <xref @@ -97,10 +102,6 @@ strip --strip-unneeded $LFS/tools/bin/*</userinput></screen> ones would be destroyed and the toolchain packages would need to be built all over again.</para> - <para>To save more space (slightly more than 35 MB), remove the documentation:</para> - -<screen role="nodump"><userinput>rm -rf $LFS/usr/share/{info,man,doc}</userinput></screen> - <para>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 |