I was wondering if the following is possible.
I have a BASH script that I want to make available for some people but I wanted them to only have to "install" the program and not messing around with terminal, so I thought a .deb would be cool.
So what would the "install" do?
Simple. I want to move the script and an icon to a folder (any folder, but I was wondering some hidden folder in Home) and then run a script that creates a launcher in the Applications menu for the first script. It seems there isn't much to it, but for what I've searched, there doesn't seem to be a lot of info...
How can I accomplish this?
By the way, I'm using Ubuntu 11.04.
Simply go to the folder where you downloaded the . deb file (usually the Downloads folder) and double-click on the file. It will open the software center, where you should see the option to install the software. All you have to do is to hit the install button and enter your login password.
I think deb-get is more secure and faster than other package managers. For example, the snap package is way slower, and flatpack takes a lot of space to install a single package in your Debian system. The deb-get manager only uses . deb files from an official source and installs them in your system.
Basically (install and) run dh-make
to set up the debian/
directory, edit the generated files (mainly remove the many you do not need, and fill in a package description and any dependencies in debian/control
), then debuild
-us -uc -b
.
You may also have to set up a simple Makefile
for debian/rules
to call; it probably only needs an install
target to copy the binary to $(DESTDIR)/usr/bin
.
Binaries install into /usr/bin
and you should not try to override that. The way to have a menu is to add a .desktop
file.
Once you have a good .deb
you will need to set up a repo for distributing it. The simplest solution is probably to set up a launchpad.net account and create a personal PPA there.
It's not hard to find more information on these topics, but of course, you need to know what to look for. The canonical documentation is the Debian New Maintainer's Guide.
Found this video on youtube that explains IN FULL the process of creating a *.deb for a script or program and even mentions how to do it for a C program.
Full guide in how to build simple *.deb package
Has one bug, btw, that the author, during the making of the *.deb, didn't notice. The path in the *.desktop file for the EXEC parameter is wrong in the example.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With