Added a few comments here and there
[linux_from_scratch.git] / editor-manual / chapter06 / updateftp.xml
blobabd49b68e631c46086fa097749118f78f0ab6af0
1 <sect1 id="ch06-updateftp">
2 <title>Updating the LFS FTP Archive</title>
3 <?dbhtml filename="updateftp.html" dir="chapter06"?>
5 <para>Now that the book has been updated, it's time to update the LFS FTP
6 archive so people can download the new package.</para>
8 <itemizedlist>
10 <listitem><para>Move the new package tarball from your home directory on
11 shadowfax to the
12 <filename
13 class="directory">/home/ftp/lfs-packages/conglomeration</filename>
14 directory.</para></listitem>
16 <listitem><para>Go to the <filename
17 class="directory">/home/ftp/lfs-packages/cvs</filename>
18 directory.</para></listitem>
20 <listitem><para>Remove the symlink that points to the old
21 package.</para></listitem>
23 <listitem><para>Create a new symlink that points to the new package by
24 running a command like
25 <userinput>ln -s ../conglomeration/package-newversion.tar.bz2</userinput></para></listitem>
27 <listitem><para>Remove the <filename>lfs-packages-cvs-*</filename>
28 file.</para></listitem>
30 <listitem><para>Recreate the <filename>00MD5SUMS</filename> file by
31 running:</para>
33 <para><screen><userinput>rm 00MD5SUMS &amp;&amp;
34 md5sum * > 00MD5SUMS</userinput></screen></para></listitem>
36 <listitem><para>Run <userinput>date</userinput> to get the current date and
37 time on the server.</para></listitem>
39 <listitem><para>Go to the <filename
40 class="directory">/home/ftp/lfs-packages</filename> directory and create a
41 new lfs-packages tarball by running the following
42 commands:</para>
44 <para><screen><userinput>cp -av cvs lfs-packages-cvs-yyyymmdd-hhmm &amp;&amp;
45 tar cvfh lfs-packages-cvs-yyyymmdd-hhmm.tar lfs-packages-cvs-yyyymmdd-hhmm &amp;&amp;
46 rm -r cvs &amp;&amp;
47 mv lfs-packages-yyyymmdd-hhmm cvs &amp;&amp;
48 mv lfs-packages-yyyymmdd-hhmm.tar cvs</userinput></screen></para></listitem>
50 <listitem><para>Add the new lfs-packages' MD5 hash to the 00MD5SUMS
51 file:</para>
53 <para><screen><userinput>cd cvs &amp;&amp;
54 md5sum lfs-packages-yyyymmdd-hhmm.tar >> 00MD5SUMS</userinput></screen></para></listitem>
56 <listitem><para>Check the filesize of this new lfs-packages-cvs tarball and
57 divide it by <emphasis>1024</emphasis> to get the number of Kilobytes.
58 Round it off to the nearest Kilobyte. Divide this number by
59 <emphasis>1024</emphasis> to get the number of Megabytes and round it off
60 to two digits after the decimal point.</para></listitem>
62 <listitem><para>Go back to the LFS Book and edit the
63 <filename>index.xml</filename> file.</para></listitem>
65 <listitem><para>Update the <emphasis>all-version</emphasis> entity and
66 enter the new version string in the <emphasis>cvs-yyyymmdd-hhmm</emphasis>
67 format.</para></listitem>
69 <listitem><para>Update the <emphasis>all-size-kb</emphasis> and
70 <emphasis>all-size-mb</emphasis> entities with the values you calculated
71 above.</para></listitem>
73 </itemizedlist>
75 </sect1>