You are here: CBM Wiki>Homepages Web>HomepageFlorianUhlig>AlienFlorianUhlig (revision 10)EditAttach

HowTo add a post install file

This has to be done before the package is added

  • Create a proxy
    • alien proxy-init
  • Login to alien
    • alien login
    • The user is defined . $HOME?.alien/Environment
  • Goto directory where you want to add the file. If the directory don't exist create the directory
    • e.g. mkdir -p packages/panda_extern/0.1
    • e.g. cd packages/panda_extern/0.1
  • Add the file to the file catalog
    • add [filename] [file location on local computer]
    • e.g. add post_install /misc/uhlig/post_install

HowTo add a package

This add the new package to the file catalog

  • Define the package you want to install
    • packman define [name] [version] [file location on local computer] post_install=[location of postinstall file] -platform source
    • e.g. packman define panda_extern 0.1 /misc/uhlig/cbmsoft_devel_021107.tar.gz post_install=/panda/user/p/pbarprod/packages/panda_extern/0.1/post_install
    • packman define pandaroot 0.4 /misc/uhlig/SVN/ctest/test/pandaroot_r1727.tar.gz dependencies=panda_extern::0.1 post_install=/panda/user/p/pbarprod/packages/pandaroot/0.4/postinstall

In the directory there now should be two files post_install and Linux-i686. If there is no difference between i686 and x86_64 copy Linux-i686 to Linux-x86_64. This is normaly correct if you deal with source packages which are compiled on the grid computers. After this step you should be prepared for everything.

HowTo remove a package

  • packman undefine [name] [version] -platform [source][i686][x86_64]

Normally this is done automatically when you submit a job which depends on some packages. But for testing it can be done in a manual fassion

  • Install the package on a dedicate site (CE Computing Element)
    • packman install [package]::[version] [site]
    • e.g. packman install panda_extern::0.1 PANDA::GSI::grid8

HowTo get information about a package

  • packman list -force
  • packman listInstalled -name [pckman instance of this site]
    • packman listInstalled -name CBM::GSI::lxi020_packman

Short tutorial for using Alien

  • Login on lxi027.gsi.de as user cbmgrid
  • Check certificate and if expired create new one
    • alien proxy-info
    • alien proxy-init
  • Login to the alien system
    • alien login
  • Move to jdl directory
    • cd jdl
  • View and describe date1.jdl and date2.jdl
    • cat date1.jdl
  • Submit a job to the grid
    • submit date1.jdl
  • Check job status
    • top (to show all processes)
    • ps trace (show complete info about process )
  • Check the output of job with id
    • cat /proc/cbmgrid//job-output/stdout
  • Submit a job with parameters (5)
    • submit dat1.jdl 5

-- FlorianUhlig - 05 Nov 2007
Edit | Attach | Print version | History: r19 | r11 < r10 < r9 < r8 | Backlinks | View wiki text | Edit WikiText | More topic actions...
Topic revision: r10 - 17 Nov 2008, FlorianUhlig
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding CBM Wiki? Send feedback
Imprint (in German)
Privacy Policy (in German)