User:JGiannelos (WMF)/Notes/Maps/fpm-imposm3-deb

> curl https://api.github.com/repos/omniscale/imposm3/releases/latest | jq '.["assets"][0]["browser_download_url"]' | xargs wget
> tar xvf <path/to/release>
  • Build debian package
> fpm -s dir -t deb -n imposm3 -v <IMPOSM VERSION> --deb-dist=<DEBIAN DIST> \
>    --description="Imposm is an importer for OpenStreetMap data." \
>    --license="Apache" \
>    --vendor="https://github.com/omniscale" \
>    --url="https://github.com/omniscale/imposm3" \
>    --maintainer="jgiannelos@wikimedia.org" \
>    --architecture="amd64" \
>    --deb-no-default-config-files \
>    <RELEASE PATH>/imposm=/usr/bin/ <RELEASE PATH>/lib/=/usr/lib/
  • Inspect debian package
> dpkg -I <path/to/.deb>
  • Install debian package
> dpkg -i <path/to/.deb>