LON-CAPA CVS Upgrade

Current CVS Upgrade Procedure

Scott Harrison

Last updated: 4/18/2001

CVS Upgrade

If you have not yet set yourself up for LON-CAPA CVS, please see the section "Setting yourself up for LON-CAPA CVS".

Before you do a file upgrade, you can always enter a "make statuspost" command to see what will be changing on your system. See the section Viewing the status of your machine.

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.

StepsCommands
Make sure you are logged in for CVS export CVSROOT=:pserver:USERNAME@zaphod.lite.msu.edu:/home/cvs
cvs login
Go to your repository directorycd loncapa
Update your CVS sourcescvs update -d
Go to the build directorycd loncom/build
Become 'root'su
Install/update static filesmake install
Install/update dynamically configurable files
this preserves the current settings of your machine, don't worry :)
make configinstall
Restart your web server
Due to an apache bug, you should enter this command twice. Restarting the web server will
  • introduce changes made to /home/httpd/lib/perl/Apache/*.pm files;
  • update user and group permissions if /etc/passwd or /etc/group change.
/etc/rc.d/init.d/httpd restart
/etc/rc.d/init.d/httpd restart
Restart the lonc/lond processes
Be patient (this takes several minutes).
/etc/rc.d/init.d/loncontrol restart
After CVS logging in, you can always cut and paste this line below assuming you do everything as root :)
cd loncapa; cvs update -d; cd loncom/build; make install; make configinstall; /etc/rc.d/init.d/httpd restart; /etc/rc.d/init.d/httpd restart; /etc/rc.d/init.d/httpd restart; /etc/rc.d/init.d/loncontrol restart

It may be also advisable to test your system after an upgrade if there are critical tasks it is being used for.

RPM Upgrade

There are three things involved in an RPM upgrade:

Viewing the status of your machine

Setting yourself up for CVS