Cleaning up
Prev | Chapter 6. Installing basic system software | Next

## Cleaning up

From now on, when you exit the chroot environment and wish to reenter it, you should use the following modified chroot command:

    chroot "$LFS" /usr/bin/env -i \
        HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
        PATH=/bin:/usr/bin:/sbin:/usr/sbin \
        /bin/bash --login

The reason for this is that, since the programs in `/tools` are no longer needed, you may want to delete the whole directory and regain the space. Before actually deleting the directory, exit from chroot and reenter it with the above command. Also, before removing `/tools`, you may want to tar it up and store it in a safe place, in case you want to build another LFS system soon.

| Note
Removing `/tools` will also remove the temporary copies of Tcl, Expect and DejaGnu, which were used for running the toolchain tests. If you want to use these programs later on, you will need to recompile and re-install them. The installation instructions are the same as in Chapter 5, apart from changing the prefix from /tools to /usr. The BLFS book discusses a slightly different approach to installing Tcl, see http://www.linuxfromscratch.org/blfs/.

You may also want to move the packages and patches stored in `/sources` to a more usual location, such as `/usr/src/packages`, and remove the directory -- or simply delete the whole directory if you've burned its contents on a CD).

Prev | Up | Next
Stripping again | Home | Chapter 7. Setting up system boot scripts