File:  [LON-CAPA] / doc / build / Attic / upgrade.html
Revision 1.6: download - view: text, annotated - select for diffs
Wed Apr 18 15:55:19 2001 UTC (23 years, 1 month ago) by harris41
Branches: MAIN
CVS tags: stable_2002_spring, stable_2001_fall, HEAD
xml-ifying this a little -Scott

<html>
<head>
<title>LON-CAPA Upgrade</title>
</head>
<body>
<h1>LON-CAPA Upgrade</h1>
<h3>Current Upgrade Procedure</h3>
<p>
Scott Harrison
</p>
<p>
Last updated: 4/18/2001
</p>
<p>
LON-CAPA system releases currently are not released under version
numbers given the fast pace of system development.  To upgrade your
system, you need to 
<ol>
<li>Make sure your software packages are up-to-date
(based on install.lon-capa.org).</li>
<ul>
<li>As root, run the script <tt>/usr/sbin/loncapaverifypackages</tt>.  
If packages are out-of-date, this script will output
the out-of-date packages.  Packages that this script identifies as
"should not be here", are packages that you may wish to remove to
improve system security.  (These packages may represent important
modifications of your institution, so do with care.  Removing
packages is done with the command: <tt>rpm -e --nodeps PACKAGE_NAME</tt>.</li>
</ul>
<li>Upgrade old software packages.</li>
<ul>
<li>Upgrade software packages by either</li>
<ul>
<li>Running <tt>/usr/sbin/loncapaupgradepackages</tt>.</li>
<li>Or, going to <a href="http://install.lon-capa.org/3.1/SupplementalRPMS/">http://install.lon-capa.org/3.1/SupplementalRPMS/</a>,
you can individually download each package from the world-wide web.  You 
then need to enter the command:
<tt>rpm -Uvh --force PACKAGE_RPM_FILE_NAME</tt> to upgrade your system
for each package.</li>
</ul>
</ul>
<li>Make the LON-CAPA base files up to date (based on
install.lon-capa.org).</li>
<ul>
<li><B>[optional]</B> Run the script
<tt>/usr/sbin/loncapaverifybasepackage</tt>.  Then view
/home/httpd/html/dev/index.html for the verification report.
If there are no real changes, then you do not need to make your files
up-to-date.</li>
<li>Download the most recent LON-CAPA rpm (<a href="http://install.lon-capa.org/3.1/loncapafiles/LON-CAPA-base-3.1-1.i386.rpm">
LON-CAPA-base-3.1-1.i386.rpm</a>).  <tt>rpm -Uvh --force LON-CAPA-base-3.1-1.i386.rpm</tt> will upgrade your software package files.</li>
</ul>
<li>Restore configuration files.</li>
<ul>
<li>As you run /usr/sbin/loncapaupgradepackages or enter in
<tt>rpm -Uvh --force</tt> commands, you may
see messages appear on your screen such as:
<br /><tt>warning: /etc/httpd/conf/access.conf saved as
/etc/httpd/conf/access.conf.rpmsave</tt>
<br />You can probably just type in commands like:
<br /><tt>cp /etc/httpd/conf/access.conf.rpmsave
/etc/httpd/conf/access.conf</tt>
<br />to restore your configurations.  However, it is worthwhile to use the
'diff' command to make sure that you are not accidentally losing important
updates to the configuration files.  
<li>Alternatively, you can run <tt>/usr/sbin/loncaparestoreconfigurations</tt>
to "smartly" run through the system and restore LON-CAPA configuration
values.</li>
</ul>
<li>Restart the LON-CAPA networking processes
<ul>
<li><tt>/etc/rc.d/init.d/loncontrol restart</tt></li>
</ul>
<li>Should you wish to automate the updating of your LON-CAPA base files, you can (at your own risk) run a script which will
do all of this automatically.  You can run this script by entering the command:
<TT>/usr/sbin/loncapaautoupgrade</TT></li>
</ol>
</p>
<h3>Future Upgrade Procedure (not yet implemented)</h3>
<p>
In the future, LON-CAPA will be a versioned system that is released via CD.
The upgrade procedure will be to insert the CD and follow instructions.  The CD
upgrade procedure is already defined and somewhat implemented, but awaits
completion.
</p>
</body>
</html>

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