Ubuntu: Create an installer/package for a script [duplicate]



Question:

This question already has an answer here:

Please keep in mind this is the first time I've ever written a bash script, worked on Linux just the first time really that I'm trying to achieve something like this.

I've written a script that I now want to make available to other people, I will be posting it on Github and what not. I've read and followed this up until step 6. But I can't seem to figure out how to apply it for my own needs.

What I have is three scripts. One script makes use of the two others. They are right now just sitting in a directory. What I want to do is make it installable by making a .deb package of it.

When you install the package I want the scripts to be placed in a corresponding directory in /etc and I want to be able to create the man page and alias etc in the install process so everything will work after installing the program.

Could someone help me out on how to do this, or point me to a good tutorial that will help me to figure this out.


Solution:1

Github - fpm - Effing Package Management
I think this is what you need.
For another tool for easy packaging:
Debreate
For a guide involving a few tools:
create a .deb Package from scripts or binaries
All the answers here are relevant for both Python and Bash:
How do I create a deb package for a single python script?
Especially the first answer in the above link is very useful.
If you wish to learn all of it without missing anything consider this:
Ubuntu Packaging


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »