D0 Code - Pulling new versions

Now that you have the ups databases and ups, upd and perl installed, you are ready to start pulling over the actual Fermilab and D0 code. The commands you issue are slighty different depending on which of the three databases you want to put the product into. We will describe each in turn.
  1. /usr/products comes from ftp://fnkits.fnal.gov/. All you need to do is:
    > setup upd
    > upd list -aK+      # will show you all products and all versions available
                         # (the K+ shows the information all on one line so you can
                         #  pipe to grep, sort etc)
    > upd list -aK+ <product>      # to get a listing of just <product>
    > upd install <product> <version> [-G"-c"]
    
    The value in "[]" says to declare it "current" on your machine. Everything else is taken care of by either the database at the distribution node or your own updconfig. If you don't want to declare it current at this time, leave that clause off the command. In that case, when you do want to declare it "current"
    > ups declare -c <product> <version>
    
    This assumes that your flavor of Operating System is one that is supported by FNAL. If it isn't, we'll have to do something else. That topic is well beyond the scope of this document (and I haven't a clue as to what we'd do about it!)

  2. /d0usr/products come from the D0 distribution node, www-d0.fnal.gov. Yes, that's our web server! In this case the commands are exactly the same, with the addition of "-h www-d0.fnal.gov" to the "upd list" and "upd install" commands.
    > upd list -aK+ -h www-d0.fnal.gov
    > upd list -aK+ -h www-d0.fnal.gov <product>
    > upd install -h www-d0.fnal.gov <product> <version> [-G"-c"]
    

  3. /d0dist/dist is our main code repository and it too is distributed from www-d0.fnal.gov. The same commands work here too. Once again the "-h www-d0.fnal.gov" switch needs to be used, as in the /d0usr/products case. There are a few other major differences as well, due to the differences between a "normal" product and a SoftRelTools product:
    > upd list -aK+ -h www-d0.fnal.gov D0RunII
              # to see what versions of D0RunII are available
    > upd list -aK+ -h www-d0.fnal.gov D0RunII-bin
              # to see what binary versions of D0RunII are available
    > upd install -h www-d0.fnal.gov <version> -q dist D0RunII
              # to get the skeleton to build locally
    > upd install -h www-d0.fnal.gov D0RunII-bin <version> -q Linux2-KCC_3_4
              # to get the Linux version including binaries.
     etc.
    
    Different SRTFlavors can be overlaid on top of each other. If you need to do that just repeat the last command for each SRTFlavor you need. UPD will only download the parts that haven't already been done, the binary pieces.

Alan Jonckheere
Last modified: Wed Jan 3 16:25:03 CST 2001