On this page we describe the experiences of the Simon Fraser group setting up UPS/UPD databases on a RedHat 9.0 machine in June 2003. The goal was to install D0 Software (D0RunII product) and so the datbases are tailored for that type of installation.
This should look a lot like http://www-d0.fnal.gov/software/cmgt/install_ups.html but is perhaps more up-to-date.
rpm -i upsupdbootstrap-2.2-8.i386.rpm cp bootstrap_config.txt /var/tmp/upsupdbootstrap/prd/bootstrap/v2_2/configs/generic
rpm -i upsupdbootstrap-generic-2.2-2.i386.rpm
chown -R products.products /D0 chmod -R g+w /D0
cp updconfig /D0/ups/db/.updfiles/updconfig
cp usr-ups-dbconfig /D0/usr/db/.upsfiles/dbconfig cp dist-ups-dbconfig /D0/dist/db/.upsfiles/dbconfig
cd mkdir d0dist cd d0dist ln -s /D0/dist dist cd ln -s /D0/usr d0usrOK, ups/upd is now set up. Next you need to ensure that users typing "setup" get the ups/upd "setup" and not the system "setup". I suggest defining an alias either for yourself or for all users
tcsh (alias in /etc/csh.cshrc)
----
alias setup 'source /D0/ups/etc/setups.csh; source ups setup \!*'
bash (function in /etc/bashrc)
----
setup(){
source /D0/ups/etc/setups.sh
setup $@
}
This is cleaner than having the script sourced automatically
whenever you login. Often the directory containing the UPS area
is mounted from another machine and if it is down you still
want to be able to login.
Now you should be able to login, type "setup upd" and install some packages. I usually do a test listing of available versions of root
upd list -a rootand install one just to test that everything is ok eg.
upd install root v3_05_04b -f Linux+2.4 -q GCC_3_1