--- doc/build/Attic/cvsupgrade.html 2001/04/18 15:55:38 1.1 +++ doc/build/Attic/cvsupgrade.html 2001/11/08 16:42:49 1.6 @@ -6,10 +6,7 @@
-Scott Harrison -
--Last updated: 4/18/2001 +Scott Harrison, last updated 11/7/2001
-If you have not yet set yourself up for LON-CAPA CVS, please see the -section "Setting yourself up for LON-CAPA CVS". -
-Assuming that you have set yourself up for LON-CAPA CVS, periodically upgrading your system is a simple process.
@@ -42,7 +35,7 @@ upgrading your system is a simple procesIt may be also advisable to test your system after an upgrade if there are critical tasks it is being used for.
++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. +
-There are three things involved in an RPM upgrade: +BE CAREFUL. READ THIS STUFF.
+WARNINGS:
+There are four things involved in an RPM upgrade: +
++Gaining information about the RPMs on your system: +"make rpmstatuspost" +(see Viewing the status of your machine) +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. +
++Upgrade existing RPMS from a trusted source: +RPMs are currently available at +
+http://install.lon-capa.org/3.1/latestRPMS/ ++For example, to upgrade your LON-CAPA-systemperl RPM, you +would enter commands like +
+wget http://install.lon-capa.org/3.1/currentcdsource/RedHat/RPMS/LON-CAPA-systemperl-3.2-1.i386.rpm+ +
+(then as root) rpm -Uvh --force LON-CAPA-systemperl-3.1-1.i386.rpm +
+Remove RPMs which do not belong: +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. +
+rpm -e --nodeps apmd-3.0final-2.i386.rpm ++ +
+Add new RPMs: +Use the same command as for upgrading. +
+(as root) rpm -Uvh --force icewm-1.0.5-gnome.i386.rpm ++We often use icewm as our development machine window manager given the +RedHat 6.2 bugs involving enlightenment and gnome. +
+
Steps | Commands |
Make sure you are logged in for CVS | +export CVSROOT=:pserver:USERNAME@zaphod.lite.msu.edu:/home/cvs
+ cvs login |
Go to your repository directory | cd loncapa |
Update your CVS sources | cvs update -d -r STABLE |
Go to the build directory | cd loncom/build |
Become 'root' | su |
View the CVS source->install status of your machine | make statuspost
+ then visit http://MACHINENAME/lon-status/filestatus.html |
View the RPM status of your machine + | +make rpmstatuspost +then visit http://MACHINENAME/lon-status/rpmstatus.html |
+
+These instructions assume bash (as opposed to tcsh).
- ++You will also need an account on zaphod.lite.msu.edu. +Please e-mail lon-capa@hobbes.lite.msu.edu and request that +an account be created. +
++The straightforward way to enable CVS is to manually configure your +environment and log in: +
+export CVSROOT=:pserver:USERNAME@zaphod.lite.msu.edu:/home/cvs ++ +
+cvs login +
+You can also modify your shell environment (.bash_profile and .bash_logout). +
+The commands:+ +
+export CVSROOT=:pserver:USERNAME@zaphod.lite.msu.edu:/home/cvs +
+cvs login +
+can be appended to ~/.bash_profile. +
+"cvs logout" can be appended to ~/.bash_logout +
+To check out LON-CAPA, go to any writeable directory and type: +
cvs co loncapa+ +
+This will create a directory tree similar to: +
+loncapa_________CAPA + | + |_____loncom + | + |_____doc + | + |_____rat + | + \_____packaging ++ +
+Useful commands are: +
+Command | Description |
info cvs | doc's |
cvs log FILENAME | see what's happened with a file |
cvs update -d -r STABLE | update your CVS tree from the +current directory location |