DebPackaging binary-only tarbundles (Tivoli)

June 2009


The IBM Tivoli backup/restore client is available as binary only, in RPMs. We repackage it here for Debian.

  1. Fetching the package

    I donwloaded from the IBM download site:

    wget ftp://service.boulder.ibm.com/storage/tivoli-storage-management/maintenance/client/v6r1/Linux/LinuxX86/v610/6.1.0.0-TIV-TSMBAC-LinuxX86.tar

  2. Setting up a tree


    mkdir tivoli-6.1.0.0
    cd tivoli-6.1.0.0
    tar xf ~/Desktop/6.1.0.0-TIV-TSMBAC-LinuxX86.tar
    ls -l
    total 73632
    -rwxr-xr-x 1 jurjen jurjen   133102 2009-03-18 14:41 NOTICES.TXT
    -rwxr-xr-x 1 jurjen jurjen    13375 2009-03-18 14:41 README_api_enu.htm
    -rwxr-xr-x 1 jurjen jurjen    14400 2009-03-18 14:41 README_enu.htm
    -rwxr-xr-x 1 jurjen jurjen    14892 2009-03-18 14:41 README_hsm_enu.htm
    -rwxr-xr-x 1 jurjen jurjen  2250688 2009-03-18 14:41 TIVsm-API64.i386.rpm
    -rwxr-xr-x 1 jurjen jurjen  7953519 2009-03-18 14:41 TIVsm-API.i386.rpm
    -rwxr-xr-x 1 jurjen jurjen 13457639 2009-03-18 14:41 TIVsm-BA.i386.rpm
    -rwxr-xr-x 1 jurjen jurjen 51544776 2009-03-18 14:41 TIVsm-HSM.i386.rpm

  3. Unpacking the RPMs

    for i in $(ls -1 *.rpm) ; do DIR=$(basename $i .rpm) ; fakeroot alien --to-deb -kcg $i  ; done
    ls -ltr
    Directories TIVsm-API64-6.1.0 and TIVsm-API64-6.1.0.orig prepared.
    Directories TIVsm-API-6.1.0 and TIVsm-API-6.1.0.orig prepared.
    Directories TIVsm-BA-6.1.0 and TIVsm-BA-6.1.0.orig prepared.
    Directories TIVsm-HSM-6.1.0 and TIVsm-HSM-6.1.0.orig prepared.

  4. Repackaging TIVsm-BA

    First do gpg-agent --daemon to avoid having to type in your passphrase all the time. Then, go into the directory and edit around in debian. In particular, the Architecture in debian/control should be set to i386 amd64. Then, create the packages with:


    dpkg-buildpackage -aamd64
    dpkg-buildpackage -ai386