Presentation is loading. Please wait.

Presentation is loading. Please wait.

Package functions and tools in CDB

Similar presentations


Presentation on theme: "Package functions and tools in CDB"— Presentation transcript:

1 Package functions and tools in CDB
Veronique Lefebure German Cancio ELFms meeting

2 Idea Give the possibility to include the default version of a package in a template The default versions are centrally stored in a separate template When the default version is changed (security upgrade, …): it is changed at one single place See Savannah bug 5424 ( )

3 PAN functions Pkg_add, pkg_repl, pkg_del: Arguments:
<name> <version> <arch> <multi> Now “DEF” is a possible value for <version> and for <arch> The default values are found in pro_software_packages_defaults_<os>.tpl

4 Pro_software_packages_defaults_<os>.tpl Define variable package_default = nlist( “name1”,list(“version1”,”arch1”), …. “nameN”,list(“versionN”,”archN”) );

5 RPMGetDefault.pl Creates pro_software_packages_defaults_<os>.tpl
`rpm -qp --nosignature --queryformat '%{NAME} %{VERSION}-%{RELEASE} %{ARCH}' $Source/$pack` $Source = (configurable) /afs/cern.ch/project/linux/cern/<os>/<arch>/Redhat/RPMS /afs/cern.ch/project/linux/cern/updates/<arch>/RPMS

6 Manual steps left CDB commit the new pro_sw_pkg_defaults_<os>.tpl Check for new splitting of RPMs Check (?) for hardcoded RPM versions


Download ppt "Package functions and tools in CDB"

Similar presentations


Ads by Google