Diff for /doc/build/Attic/cvsupgrade.html between versions 1.1 and 1.2

version 1.1, 2001/04/18 15:55:38 version 1.2, 2001/04/18 16:48:04
Line 29  command to see what will be changing on Line 29  command to see what will be changing on
 <a href="#status">Viewing the status of your machine</a>.  <a href="#status">Viewing the status of your machine</a>.
 </p>  </p>
 <p>  <p>
 If you have not yet set yourself up for LON-CAPA CVS, please see the  
 section <a href="#setting">"Setting yourself up for LON-CAPA CVS"</a>.  
 </p>  
 <p>  
 Assuming that you have set yourself up for LON-CAPA CVS, periodically  Assuming that you have set yourself up for LON-CAPA CVS, periodically
 upgrading your system is a simple process.  upgrading your system is a simple process.
 </p>  </p>
Line 69  below assuming you do everything as root Line 65  below assuming you do everything as root
 It may be also advisable to test your system after an upgrade if there are  It may be also advisable to test your system after an upgrade if there are
 critical tasks it is being used for.  critical tasks it is being used for.
 </p>  </p>
   <p>
   The specification file which defines the CVS:source-to-system information is
   CVS:doc/loncapafiles/loncapafiles.html.  Changes to this file directly
   translate into changes in the installation.
   </p>
 <a name="rpm">  <a name="rpm">
 <h3>RPM Upgrade</h3>  <h3>RPM Upgrade</h3>
 <p>  <p>
 There are three things involved in an RPM upgrade:  BE CAREFUL.  READ THIS STUFF.
 </p>  </p>
   <p>WARNINGS:
 <ul>  <ul>
 <li>  <li>Do not ever install or upgrade an LON-CAPA-base RPM.  You will
 <li>  lose important configuration information on your machine.  The CVS upgrade
 <li>  is much safer and more effective in bringing you up to date.</li>
   <li>Do not ever install or upgrade a LON-CAPA-setup RPM.  You will lose
   information from your /etc/group, /etc/passwd, and other important files.</li>
   <li>Be careful about installing a LON-CAPA-mysql RPM.  You need to run
   /home/httpd/perl/searchcat.pl after this to re-seed your metadata database.
   <li>Don't upgrade/install/delete your kernel RPM unless you have done
   it before.
   </li>
 </ul>  </ul>
   <p>
   There are four things involved in an RPM upgrade:
   </p>
   <ol>
   <li>Gaining information about the RPMs on your system.</li>
   <li>Upgrade existing RPMS from a trusted source</li>
   <li>Remove RPMs which do not belong</li>
   <li>Add new RPMs</li>
   </ol>
   <p>
   <b>Gaining information about the RPMs on your system:</b>
   "make rpmstatuspost"
   (see <a href="#status">Viewing the status of your machine</a>)
   will tell you about RPMs which do not belong (are "external"
   to LON-CAPA).  It will also tell you if you have "out-of-date"
   RPMs which should maybe be upgraded.  Important specification
   files for RPM installation are CVS:doc/otherfiles/rpm_list.txt
   and CVS:doc/otherfiles/cd_rpms.txt.
   </p>
   <p>
   <b>Upgrade existing RPMS from a trusted source:</b>
   RPMs are currently available at
   <blockquote>
   http://install.lon-capa.org/3.1/currentcdsource/RedHat/RPMS
   </blockquote>
   For example, to upgrade your LON-CAPA-systemperl RPM, you
   would enter commands like
   <blockquote>
   wget http://install.lon-capa.org/3.1/currentcdsource/RedHat/RPMS/LON-CAPA-systemperl-3.1-1.i386.rpm<br />
   (then as root) rpm -Uvh --force LON-CAPA-systemperl-3.1-1.i386.rpm
   </blockquote>
   </p>
   <p>
   <b>Remove RPMs which do not belong:</b>
   If an RPM should NOT be on your system (like apmd), then you want
   to remove this RPM.  Since RedHat is a little erroneous when
   it comes to dependencies, you may wish to use the --nodeps flag.
   <blockquote>
   rpm -e --nodeps apmd-3.0final-2.i386.rpm
   </blockquote>
   </p>
   <p>
   <b>Add new RPMs:</b>
   Use the same command as for upgrading.
   <blockquote>
   (as root) rpm -Uvh --force icewm-1.0.5-gnome.i386.rpm
   </blockquote>
   We often use icewm as our development machine window manager given the
   RedHat 6.2 bugs involving enlightenment and gnome.
   </p>
 <a name="status">  <a name="status">
 <h3>Viewing the status of your machine</h3>  <h3>Viewing the status of your machine</h3>
 <p>  <p>
 </p>  </p>
   <table border>
   <tr><td><b>Steps</b></td><td><b>Commands</b></td></tr>
   <tr><td>Make sure you are logged in for CVS</td>
   <td>export CVSROOT=:pserver:USERNAME@zaphod.lite.msu.edu:/home/cvs
   <br />cvs login</td></tr>
   <tr><td>Go to your repository directory</td><td>cd loncapa</td></tr>
   <tr><td>Update your CVS sources</td><td>cvs update -d</td></tr>
   <tr><td>Go to the build directory</td><td>cd loncom/build</td></tr>
   <tr><td>Become 'root'</td><td>su</td></tr>
   <tr><td>View the CVS source->install status of your machine</td><td>make statuspost
   <br /> then visit http://MACHINENAME/lon-status/filestatus.html</td></tr>
   </td></tr>
   <tr><td>View the RPM status of your machine
   </td>
   <td>make rpmstatuspost<br />
   then visit http://MACHINENAME/lon-status/rpmstatus.html</td>
   </table>
 <a name="setting">  <a name="setting">
 <h3>Setting yourself up for CVS</h3>  <h3>Setting yourself up for CVS</h3>
 <p>  <p>
   These instructions assume bash (as opposed to tcsh).
 </p>  </p>
   <p>
   The straightforward way to enable CVS is to manually configure your
   environment and log in:
   <blockquote>
   export CVSROOT=:pserver:USERNAME@zaphod.lite.msu.edu:/home/cvs
   <br />
   cvs login
   </blockquote>
   </p>
   <p>
   You can also modify your shell environment (.bash_profile and .bash_logout).
   <blockquote>
   The commands:<br />
   <b>export CVSROOT=:pserver:USERNAME@zaphod.lite.msu.edu:/home/cvs</b>
   <br />
   <b>cvs login</b>
   <br />
   can be appended to ~/.bash_profile.
   <br />
   "<b>cvs logout</b>" can be appended to ~/.bash_logout
   </blockquote>
   </p>
   <p>
   To check out LON-CAPA, go to any writeable directory and type:
   <blockquote>cvs co loncapa</blockquote>
   </p>
   <p>
   This will create a directory tree similar to:
   <pre>
   loncapa_________CAPA
             |
             |_____loncom
             |
             |_____doc
             |
             |_____rat
             |
             \_____packaging
   </pre>
   </p>
   <p>
   Useful commands are:
   </p>
   <table border=1>
   <tr><td>Command</td></td><td>Description</td></tr>
   <tr><td>info cvs</td></td><td>doc's</td></tr>
   <tr><td>cvs log FILENAME</td></td><td>see what's happened with a file</td></tr>
   <tr><td>cvs update -d</td></td><td>update your CVS tree from the current directory location</td></tr>
   </table>
 </body>  </body>
 </html>  </html>

Removed from v.1.1  
changed lines
  Added in v.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>