Changeset 3ba3f58 for introduction
- Timestamp:
- 05/22/2005 10:45:25 AM (19 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 12.2, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gimp3, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/for-12.3, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/spidermonkey128, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- 56ab82c
- Parents:
- 384039a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
introduction/important/unpacking.xml
r384039a r3ba3f58 16 16 <title>Notes on Building Software</title> 17 17 18 <para>Those people who have built an LFS system will be aware 18 <para>Those people who have built an LFS system will be aware 19 19 of the general principles of downloading and unpacking software. We will 20 20 however repeat some of that information here for those new to building 21 21 their own software.</para> 22 22 23 <para>Each set of installation instructions contains a URL from which you 24 can download the package. We do however keep a selection of patches 25 available via http. These are referenced as needed in the installation 23 <para>Each set of installation instructions contains a URL from which you 24 can download the package. We do however keep a selection of patches 25 available via http. These are referenced as needed in the installation 26 26 instructions.</para> 27 27 … … 43 43 the following commands:</para> 44 44 45 <screen>< command>tar -xvf filename.tar.gz45 <screen><userinput>tar -xvf filename.tar.gz 46 46 tar -xvf filename.tgz 47 47 tar -xvf filename.tar.Z 48 tar -xvf filename.tar.bz2</ command></screen>48 tar -xvf filename.tar.bz2</userinput></screen> 49 49 50 50 <para>You can also use a slightly different method:</para> 51 51 52 <screen>< command>bzcat filename.tar.bz2 | tar -xv</command></screen>52 <screen><userinput>bzcat filename.tar.bz2 | tar -xv</userinput></screen> 53 53 54 54 <para>Finally, you sometimes need to be able to unpack patches which are 55 55 generally not tar'ed. The best way to do this is to copy the patch file to 56 56 <filename>/usr/src</filename> and then to run one of the following commands 57 depending on whether the file is <filename>.gz</filename> or 57 depending on whether the file is <filename>.gz</filename> or 58 58 <filename>.bz2</filename>:</para> 59 59 60 <screen>< command>gunzip -v patchname.gz61 bunzip2 -v patchname.bz2</ command></screen>60 <screen><userinput>gunzip -v patchname.gz 61 bunzip2 -v patchname.bz2</userinput></screen> 62 62 63 63 </sect2> … … 73 73 run the following command:</para> 74 74 75 <screen>< command>md5sum -c file.md5sum</command></screen>75 <screen><userinput>md5sum -c file.md5sum</userinput></screen> 76 76 77 77 <para>If there are any errors, they will be reported.</para> … … 88 88 command you intend to execute.</para> 89 89 90 <screen>< command>( <command> 2>&1 | tee compile.log && exit $PIPESTATUS )</command></screen>90 <screen><userinput>( <command> 2>&1 | tee compile.log && exit $PIPESTATUS )</userinput></screen> 91 91 92 <para><option>2>&1</option> redirects error messages to the same 93 location as standard output. The <command>tee</command> command allows 92 <para><option>2>&1</option> redirects error messages to the same 93 location as standard output. The <command>tee</command> command allows 94 94 viewing of the output while logging the results to a file. The parentheses 95 95 around the command run the entire command in a subshell and finally the 96 <command>exit $PIPESTATUS</command> ensures the result of the 97 <command> is returned as the result and not the result of the 96 <command>exit $PIPESTATUS</command> ensures the result of the 97 <command> is returned as the result and not the result of the 98 98 <command>tee</command> command.</para> 99 99
Note:
See TracChangeset
for help on using the changeset viewer.