Last change
on this file since d5cbad0 was c4b6d18, checked in by Andrew Bradford <andrew.bradford@…>, 12 years ago |
cleanup/remove-files: Remove ${CLFS}-final/sources
|
-
Property mode
set to
100644
|
File size:
1.2 KB
|
Rev | Line | |
---|
[8520e58] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[bd48e48] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[8520e58] | 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-cleanup-remove-files">
|
---|
| 9 | <?dbhtml filename="remove-files.html"?>
|
---|
| 10 |
|
---|
[7884e98] | 11 | <title>Remove Unnecessary Files</title>
|
---|
[8520e58] | 12 |
|
---|
[2a0b49e] | 13 | <para>The system is almost finished. It can be made smaller by removing
|
---|
| 14 | files that are not necessary.</para>
|
---|
[8520e58] | 15 |
|
---|
[2a0b49e] | 16 | <para>Create a copy of the file system in case changes need to be made
|
---|
| 17 | to it later:</para>
|
---|
[8520e58] | 18 |
|
---|
| 19 | <screen><userinput>install -dv ${CLFS}-final
|
---|
| 20 | cp -arv ${CLFS}/* ${CLFS}-final/</userinput></screen>
|
---|
| 21 |
|
---|
[2a0b49e] | 22 | <para>Remove files that aren't needed:</para>
|
---|
[8520e58] | 23 |
|
---|
| 24 | <screen><userinput>rm -rfv ${CLFS}-final/cross-tools
|
---|
| 25 | rm -rfv ${CLFS}-final/usr/src/*
|
---|
| 26 | rm -rfv ${CLFS}-final/usr/include
|
---|
[3ca2208] | 27 | rm -rfv ${CLFS}-final/usr/man
|
---|
[2ef8466] | 28 | rm -rfv ${CLFS}-final/usr/share/man
|
---|
[c4b6d18] | 29 | rm -rfv ${CLFS}-final/build
|
---|
| 30 | rm -rfv ${CLFS}-final/sources</userinput></screen>
|
---|
[8520e58] | 31 |
|
---|
[2a0b49e] | 32 | <para>Remove the static libaries:</para>
|
---|
[8520e58] | 33 |
|
---|
[489ddbd] | 34 | <screen><userinput>FILES="$(ls ${CLFS}-final/lib/*.a ${CLFS}-final/usr/lib/*.a)"
|
---|
[8520e58] | 35 | for file in $FILES; do
|
---|
[489ddbd] | 36 | rm -fv $file
|
---|
[8520e58] | 37 | done</userinput></screen>
|
---|
| 38 |
|
---|
| 39 | </sect1>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.