2024-01-18 19:53:23 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2007-03-21 18:42:58 +00:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2004-05-03 11:59:46 +01:00
|
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
2006-02-07 19:39:29 +00:00
|
|
|
|
2022-02-05 13:59:24 +00:00
|
|
|
<sect1 id="ch-system-cleanup">
|
|
|
|
<?dbhtml filename="cleanup.html"?>
|
2006-02-07 19:39:29 +00:00
|
|
|
|
|
|
|
<title>Cleaning Up</title>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2022-12-20 15:48:03 +00:00
|
|
|
<para>Finally, clean up some extra files left over from running tests:</para>
|
2014-01-14 19:36:32 +00:00
|
|
|
|
2024-07-14 04:14:20 +01:00
|
|
|
<screen><userinput>rm -rf /tmp/{*,.*}</userinput></screen>
|
2014-01-14 19:36:32 +00:00
|
|
|
|
2022-12-20 15:48:03 +00:00
|
|
|
<para>There are also several files in the /usr/lib and /usr/libexec
|
2020-08-19 16:31:33 +01:00
|
|
|
directories with a file name extension of .la. These are "libtool archive"
|
2022-12-20 15:48:03 +00:00
|
|
|
files. On a modern Linux system the libtool .la files are
|
2022-09-19 07:12:17 +01:00
|
|
|
only useful for libltdl. No libraries in LFS are expected to be loaded
|
2022-12-20 15:48:03 +00:00
|
|
|
by libltdl, and it's known that some .la files can break BLFS package
|
|
|
|
builds. Remove those files now:</para>
|
2017-12-19 19:59:24 +00:00
|
|
|
|
2018-04-11 22:37:07 +01:00
|
|
|
<screen><userinput>find /usr/lib /usr/libexec -name \*.la -delete</userinput></screen>
|
2017-12-19 19:59:24 +00:00
|
|
|
|
2018-01-10 18:57:37 +00:00
|
|
|
<para>For more information about libtool archive files, see the <ulink
|
2021-09-20 21:01:06 +01:00
|
|
|
url="&blfs-book;introduction/la-files.html">BLFS section "About Libtool
|
2018-01-10 18:57:37 +00:00
|
|
|
Archive (.la) files"</ulink>.</para>
|
2017-12-19 19:59:24 +00:00
|
|
|
|
2020-07-04 22:14:57 +01:00
|
|
|
<para>The compiler built in <xref linkend="chapter-temporary-tools"/> and
|
|
|
|
<xref linkend="chapter-chroot-temporary-tools"/> is still partially
|
2020-08-20 17:56:35 +01:00
|
|
|
installed and not needed anymore. Remove it with:</para>
|
2020-07-04 22:14:57 +01:00
|
|
|
|
2020-07-05 09:58:46 +01:00
|
|
|
<screen><userinput>find /usr -depth -name $(uname -m)-lfs-linux-gnu\* | xargs rm -rf</userinput></screen>
|
2020-07-04 22:14:57 +01:00
|
|
|
|
2021-09-07 21:33:18 +01:00
|
|
|
<para>Finally, remove the temporary 'tester' user account created at the
|
2020-06-11 06:55:06 +01:00
|
|
|
beginning of the previous chapter.</para>
|
2020-05-30 19:22:47 +01:00
|
|
|
|
2020-06-11 06:55:06 +01:00
|
|
|
<screen><userinput>userdel -r tester</userinput></screen>
|
2004-05-03 11:59:46 +01:00
|
|
|
</sect1>
|