2

I have an app that is already built into binary. I want to distribute it via my website. I find it difficult to build as Ubuntu Packaging guide have changed a lot since I checked last time. Am not sure of this but it seems I need bazaar to successful build it.

I want a deb file that will simply install binary and related libraries and resources to where I want. Should user want to uninstall, then it simply delete the files and that is it. Something like InnoSetup or NSIS for windows. Last time I built using this guide, but it does not work any longer. Is it possible to build a deb file simply and without bazaar?

2
  • »»Should user want to uninstall, then it simply delete the files«« : That's what is done with sudo apt-get remove [package-name] .... A package can be built from your files with dpkg-deb -b packagename packagename_version_architecture.deb ... a control file with ~8 lines is required. Jun 24, 2016 at 12:52
  • Can you post a link which documents control file format and may be example Jun 24, 2016 at 13:08

2 Answers 2

3

Building a package.deb from directories :

cd new-folder/ && mkdir -p  packagename/DEBIAN

Your files e.g. usr/local/bin/executable goes into packagename/ ... and the file control into DEBIAN/

Example control file :

Package: name
Version: 1.1-1
Section: base
Priority: optional
Architecture: amd64
Depends:
Maintainer: Jerry Donut <[email protected]>
Description:

The architecture choices are typically : i386, amd64, noarch

Then you can try :

cd new-folder/
dpkg-deb -b packagename packagename_version_architecture.deb

Then unpack the package.deb to check if it's OK. Else, do some adjustments and repeat the dpkg-deb -b command.

2
  • @StefanoMtangoo, so did it work for u ?
    – user.dz
    Apr 22, 2017 at 13:32
  • Nope. See my answer Apr 22, 2017 at 15:07
1

I ended up Using debreate It provided what I wanted.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .