Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Linux: I need to create installer for my own application using shell script.

I need to distribute my application as installer without GUI and also not as rpm's or any other packages.

My application is java based. My installer should work in all Linux platforms (RHEL/ubuntu).

Please suggest me steps to do or any tool which is open source ???

share|improve this question
Usually an interactive script (shell or otherwise) is used in such cases. Without further qualification of what your installer needs to do, it will be difficult for us to give a more specific answer. Meanwhile, take a look at select loops in Bash – Joseph R. Aug 30 '13 at 11:17
you can also take a simple approach. How do you do in command line? save all the steps and they implement them in the script. $? eq 0 is a condition to evaluate if the output of the previous command executed properly. – BitsOfNix Aug 30 '13 at 11:30
up vote 1 down vote accepted

I got a solution


This script bundles my application into a single file . later it extracts and executes a shell script.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.