Debian package for apache karaf
![](https://img.shields.io/badge/Debian-D70A53?style=for-the-badge&logo=debian&logoColor=white&ext=.svg)
This git repository holds the scripts necessary to create a debian package of apache karaf.
This debian package is created using standard debian packaging tools, and this debian package is built from the karaf source tar-ball and not the karaf binary tar-ball (i.e. it is built with the native openjdk on debian).
Install the requried software
To build the debian package:
- Log in as root
- Give the following commands:
#+BEGIN_EXAMPLE
apt-get update
apt-get install maven-debian-helper devscripts
#+END_EXAMPLE
- Clone the karaf-debian project
#+BEGIN_EXAMPLE
git clone https://github.com/steinarb/karaf-debian.git
#+END_EXAMPLE
- Build the debian package
#+BEGIN_EXAMPLE
cd karaf-debian
dpkg-buildpackage
#+END_EXAMPLE
- There will be a karaf-*.deb file in the directory above the karaf-debian directory
To update the karaf version
- Clone the karaf-debian project
#+BEGIN_EXAMPLE
git clone https://github.com/steinarb/karaf-debian.git
#+END_EXAMPLE
- Edit the karaf-debian/debian/rules file in a text editor and change the version number of the value:
#+BEGIN_SRC makefile
VERSION = 4.2.8
#+END_SRC
- Build the debian package
#+BEGIN_EXAMPLE
cd karaf-debian
dpkg-buildpackage
#+END_EXAMPLE
- There will be a karaf-*.deb file in the directory above the karaf-debian directory