Go to the U of M home page
School of Physics & Astronomy
School of Physics and Astronomy Wiki

User Tools


computing:department:unix:software:ups

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
computing:department:unix:software:ups [2007/06/07 15:05] – Document moved from computing:department:unix:ups claytoncomputing:department:unix:software:ups [2015/02/11 14:27] (current) – removed allan
Line 1: Line 1:
-====== Introduction to UPS ====== 
-The ups command used with list will tell you what products are available. The -a switch includes all instances of those products: 
  
-<code> 
-  [211]user@host> ups list -a root 
- 
-  DATABASE=/local/ups/db 
-        Product=root    Version=v4_00_03        Flavor=Linux+2.4 
-                Qualifiers=""   Chain="" 
- 
-        Product=root    Version=cvsroot Flavor=Linux+2.4 
-                Qualifiers=""   Chain=development 
- 
-        Product=root    Version=cvsroot Flavor=OSF1+V5.1 
-                Qualifiers=""   Chain=development 
- 
-        Product=root    Version=v4_00_08        Flavor=Linux+2.4 
-                Qualifiers=""   Chain="" 
- 
-        Product=root    Version=v4_00_08        Flavor=OSF1+V5.1 
-                Qualifiers=""   Chain="" 
- 
-        Product=root    Version=v3_05_06        Flavor=Linux+2.4 
-                Qualifiers=""   Chain="" 
- 
-        Product=root    Version=v4_02_00        Flavor=Linux+2.4 
-                Qualifiers=""   Chain=current 
- 
-        Product=root    Version=v4_02_00        Flavor=OSF1+V5.1 
-                Qualifiers=""   Chain=current 
-</code> 
- 
-You can also use the ''-K+'' switch to get a more concise listing: 
- 
-<code> 
-[212]user@host> ups list -aK+ root 
-"root" "v4_00_03" "Linux+2.4" "" "" 
-"root" "cvsroot" "Linux+2.4" "" "development" 
-"root" "cvsroot" "OSF1+V5.1" "" "development" 
-"root" "v4_00_08" "Linux+2.4" "" "" 
-"root" "v4_00_08" "OSF1+V5.1" "" "" 
-"root" "v3_05_06" "Linux+2.4" "" "" 
-"root" "v4_02_00" "Linux+2.4" "" "current" 
-"root" "v4_02_00" "OSF1+V5.1" "" "current" 
-</code> 
- 
-To use any of the listed products, use the setup command: 
- 
-<code> 
-[213]user@host> setup root 
-[214]user@host> which root 
-/local/ups/prd/root/v4_02_00/Linux+2.4/bin/root 
-</code> 
- 
-or to set up a particular version: 
- 
-<code> 
-[216]user@host> setup root v4_01_02 
-[217]user@host> which root 
-/local/ups/prd/root/v4_01_02/Linux+2.4/bin/root 
-</code> 
- 
-To remove a product from your environment, use the unsetup command: 
- 
-<code> 
-[218]user@host> unsetup root 
-[219]user@host> which root 
-root: Command not found. 
-</code> 
- 
-To see all of the products in the database use the ups list command: 
- 
-<code> 
-[220]user@host> ups list -aK+ 
-"bash" "v2_03" "Linux+2" "" "current" 
-"cern" "2002" "Linux+2.4" "" "" 
-"cern" "2002" "OSF1+V5.1" "" "current" 
-"cern" "2003" "Linux+2.4" "" "current" 
-"cern" "2003" "OSF1+V5.1" "" "" 
-"cern" "2004" "Linux+2.4" "" "" 
-"clhep" "v1_8_2_1" "Linux-2.4" "" "current" 
-"gcc" "v3_3_1" "Linux+2.4" "" "" 
-"gcc" "v3_4_1" "Linux+2.4" "" "" 
-"gcc" "v3_4_3" "Linux+2.4" "" "" 
-"geant4" "v4_6_2_p02" "Linux+2.4" "" "current" 
-"geant4" "v4_6_0_p01" "Linux+2.4" "" "" 
-"root" "v4_00_03" "Linux+2.4" "" "" 
-"root" "cvsroot" "Linux+2.4" "" "development" 
-"root" "cvsroot" "OSF1+V5.1" "" "development" 
-"root" "v4_00_08" "Linux+2.4" "" "" 
-... 
-</code> 
- 
-Any one of these products can set up another product when called to be setup itself. To see the chain of dependencies, use the "ups depend" command. 
- 
-<code> 
-[221]user@host> ups depend root 
-root v4_02_00 -f Linux+2.4 -z /local/ups/db -g current 
-|__cern 2003 -f Linux+2.4 -z /local/ups/db -g current 
-|  |__cernsource 2003 -f NULL -z /local/ups/db 
-</code> 
- 
-So concludes our quick introduction to using ups. Complete details of ups and upd can be found at the Fermilab [[http://www.fnal.gov/docs/products/ups/|UPS/UPD documentation site]]. Also useful is their [[http://www.fnal.gov/docs/products/ups/ReferenceCard/upsrefcard.html|UPS/UPD Quick Reference card]]. 
computing/department/unix/software/ups.1181246707.txt.gz · Last modified: 2007/06/07 15:05 by clayton