Ubuntu – How to create NGINX debian package from souce


I want to create a NGINX .deb package from the source. Can anyone guide me through.

Thanks in advance.

Best Answer

  • You're probably looking for checkinstall https://help.ubuntu.com/community/CheckInstall

    What you do is you follow the instructions for compiling the application you want (in this case NGINX).

    Then when you get to the step that tells you to issue the make install command, you replace it with checkinstall.

    This compiles the code into deb packages you can install with dpkg -i packagenamehere.deb

    Don't distribute these packages to others though, as they are built specifically for your machine, with the dependencies based on packages already installed on your PC.

    That said, you can uninstall them, just like you would any other deb package :)

    Also, you can give them version numbers to upgrade an existing version you had compiled earlier.

    Good luck!

  • Related Question