Article Title: how to clear unnecessary files in the system. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Taking Linux From Scratch as an example, it is generally not recommended for beginners to do so.
If the LFS partition is very small, it is also good to know what is unnecessary and can be deleted. The executable programs and library files that have been installed so far contain about 70 MB of unnecessary debugging symbols. Run the following command to delete these symbols:
Strip -- strip-debug/tools/lib /*
Strip -- strip-unneeded/tools/{, s} bin /*
The above command skips about 20 files, and the report does not recognize these file formats, most of which are scripts rather than binary files.
Never use -- strip-unneeded on the library file; otherwise, it will damage its static version, so you have to compile all the tool chain software packages from the beginning.
Deleting a document also saves 20 MB space:
Rm-rf/tools/{info, man}
Now $ LFS has at least 850 MB of space available. You can compile and install Glibc in the next chapter. If there is enough space to compile and install Glibc, then compile and install other software packages.