Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating an installer for Linux application [closed]

I'm developing a small cross-platform application and I need some advice on how to install it in Linux. I am using InnoSetup in Windows and an application bundle in OSX but I have no idea how to get my app installed in Linux, are there any opensource installer creators for Linux?

Thanks.

like image 391
JWood Avatar asked Mar 10 '10 18:03

JWood


People also ask

How do I install an application in Linux?

Just double-click the downloaded package and it should open in a package installer that will handle all the dirty work for you. For example, you'd double-click a downloaded . deb file, click Install, and enter your password to install a downloaded package on Ubuntu.

How do I install an application in Linux terminal?

To install any package, just open a terminal ( Ctrl + Alt + T ) and type sudo apt-get install <package name> . For instance, to get Chrome type sudo apt-get install chromium-browser . SYNAPTIC: Synaptic is a graphical package management program for apt.

Why there is no installer for Linux?

The main reason is Linux is a multi-user operating system, so you want to customize it per user anyway. This also makes it easier to rerun the configuration wizard later, for whatever reason, without having to keep the installation program around to reinstall the entire software.


2 Answers

If possible, opt for not requiring an installer but using a simple extract-and-run approach. This will allow the user to put the file(s) anywhere they want and run it.

But, you do have other options, such as:

  1. Using autoconf,
  2. Using CMake,
  3. Using a Java installer like IZPack
  4. etc
like image 20
Kaleb Pederson Avatar answered Oct 09 '22 03:10

Kaleb Pederson


The standard all mighty universally available installer on *nix systems (and not only) is Autotools.

# the user will install like so: ./configure --with-stuff make # if package is from source make install 

You can also provide distribution specific installers like a RPM on RedHat or CentOS or deb for Debian, Ubuntu, although once you have the Makefile spitted by Autotools, making these is a breeze.

# the user will install like so: yum install your-package-1.0.rpm # on redhat or apt-get install your-package-1.0.deb # on debian 

Autotools also known as "the GNU build system" is a little scary on the first sight, and the new user is puzzled when meeting things like the ancient m4 macro system & co. but nota bene this is the way most people do it and is pretty easy once you get the hang of it.

Learning resources

like image 184
clyfe Avatar answered Oct 09 '22 03:10

clyfe