RPM and DEB packaging scripts for kdb+
This repo provides scripts to allow the standard kdb+ binary to built into RPM packages.
The repo also provides a default profile that will automatically set up q
, once installed into the system (via the /etc/profile.d
system).
The scripts within the rpm
folder will generate the necessary SPEC File and source package before building the RPM. The generated RPM can then be installed on any system that supports RPM.
- Any Linux operating system that supports RPM as an install mechanism (e.g. RHEL, CentOS)
- The
rpm-build
package installed
yum install rpm-build
- A local copy of the kdb+ version you wish to package
- If you don't have a licensed version locally, visit the kx Webiste to download, and unzip, the 32-bit (
l32
) version
- If you're planning to run the 32-bit version on a 64-bit machine, ensure that the 32-bit libraries are installed
yum install glibc.i686
- Clone, or download, this repository on to your machine
- Run
build.sh
- Example:
build.sh 3.1-2014.08.22 /path/to/kdb/home /custom/rpm/build/location
- Run
build.sh
with no arguments for usage information
- The script will generate 3 files within the specified build location:
- The SPEC file defines how to build the RPM
- The source TAR GZ file that contains all the files that will be installed by the RPM
- The RPM file itself
The version and release number of the RPM that is generated is based on the kdb+ version passed into the build.sh
script.
In order to install the RPM into the default location (/opt
) you must be able to run sudo
as root.
- Run
sudo rpm -i /path/to/generated/kdb-plus.rpm
- If you don't have
sudo
, tryrpm -i --prefix=~/kdb-install /path/to/generated/kdb-plus.rpm
- Log out and log back in to pick up the new enviroment settings
- Or just run
source /etc/profile.d/kdb-plus.sh
- Run
q
to start a q session!
To uninstall, you need to query the name of kdb+ package that was installed before removing with rpm -e *package_name*
:
[root ~]# rpm -qa | grep kdb
kdb-plus-3.1-2013.11.20
[root ~]# rpm -e kdb-plus-3.1-2013.11.20
[root ~]# rpm -qa | grep kdb
[root ~]#