Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 996 Bytes

deb-package.md

File metadata and controls

36 lines (28 loc) · 996 Bytes

How to create a debian package

For Debian, Ubuntu, Mint, etc. (a .deb file).

Install Prerequisites

sudo apt-get install cmake dpkg-dev gcc git libsqlite3-dev libssl-dev make

Build the debian package

dpkg-buildpackage -b -us -uc

This will create a .deb file in the parent directory (e.g. ../uhub_0.5.1-1_amd64.deb), so to install it you can just run:

sudo dpkg -i ../uhub_0.5.1-1_amd64.deb

If you try to install the .deb package on another machine and get an error about the package depending on something that isn't installed, you can fix it by installing the missing dependencies with:

sudo apt-get -f install

Default install directories:

What Where
Binaries /usr/bin/
Configuration files /etc/uhub/
Plugins /usr/lib/uhub/
Manual pages /usr/share/man/man1/