cms-sw / cmspkg

4 stars 4 forks source link

CMSPKG

cmspkg is collection of helper script used by http://github.com/cms-sw/pkgtools for building and distributing http://github.com/cms-sw/cmssw RPMs. It is to replace the apt usage. cmspkg puppet package provider documentation is available here

Converting apt-speak to cmspkg-speak is mostly replacing apt-* commands with cmspkg -a arch. Not all apt-* commands are available in cmspkg. See the table below for details

Purpose APT CMSPKG
Retrieve/update new lists of packages apt-get update cmspkg -a arch update
Install new packages apt-get -y install package cmspkg -a arch -y install package
Reinstalling an installed package apt-get reinstall package cmspkg -a arch reinstall package
Reinstalling an installed package apt-get --reinstall install package cmspkg -a arch --reinstall install package
Remove packages apt-get remove package cmspkg -a arch remove package
Cleaup downloaded package files apt-get clean cmspkg -a arch clean
Perform an upgrade apt-get upgrade cmspkg -a arch upgrade
Remove unused not-explicitly installed packages - cmspkg -a arch dist-clean
Search a package apt-cache search package cmspkg -a arch search package
Show some general information for a single package apt-cache showpkg package cmspkg -a arch showpkg package
Show a readable record for the package apt-cache show package cmspkg -a arch show package
Shows listing of dependency of a package apt-cache depends package cmspkg -a arch depends package

cmspkg internally sources the latest available rpm env, so no need to source apt/rpm init.[sh|csh] script before running cmspkg commands.

To run rpm commands, one can use cmspkg -a arch rpm -- <rpm command and options>

Usage

Bootstrap

  ARCH=slc6_amd64_gcc530
  INSTALL_DIR=/path/to/install
  wget http://cmsrep.cern.ch/cmssw/repos/bootstrap.sh
  sh -ex ./bootstrap.sh -r cms -a $ARCH -p $INSTALL_DIR setup

Search Packages

  $INSTALL_DIR/common/cmspkg -a $ARCH search cmssw

Install Package

  $INSTALL_DIR/common/cmspkg -a $ARCH -y install cms+cmssw+CMSSW_9_2_0

Releases Notes

V00-00-00:

V00-00-01:

V00-00-02:

V00-00-03:

V00-00-04:

V00-00-05:

V00-00-06:

V00-00-07:

V00-00-08:

V00-00-09:

V00-00-10:

V00-00-11:

V00-00-12:

V00-00-13:

V00-00-14:

V00-00-15:

V00-00-16:

V00-00-17:

V00-00-18:

V00-00-19:

V00-00-20:

V00-00-21:

V00-00-22:

V00-00-23:

V00-00-24:

V00-00-25:

V00-00-26:

V00-00-27:

V00-00-28:

V00-00-29:

V00-00-30:

V00-00-31:

V00-00-32:

V00-00-33:

V00-00-34:

V00-00-35:

V00-00-36:

V00-00-37:

V00-00-38:

V00-00-39

V00-00-40

V00-00-41

V00-00-42

V00-00-43

V00-00-44

V00-00-45

V00-00-46

V00-00-47

V00-00-48

V00-00-49

V00-01-00

V00-01-01

V00-01-02

V00-01-03

V00-01-04

V00-01-05

V00-01-06

V00-01-07

V00-01-09

V00-01-10

V00-01-11

V00-01-12

V00-01-13

V00-01-14

V00-01-15

V00-01-16

V00-01-17

V00-01-18

V00-01-20