views:

87

answers:

5

I am looking to create a web-project that is able to install with a program. The user should be able to download an archive file or tar file, run it (executable), and the setup script would ask for paths and configurable values and then unpack its 'payload' and sorting out the contents for deployment.

This would be a Linux version of the MSI installer. Is there such a thing for Linux operating systems? This does not involve kernel level manipulations. All it needs to do is copy directories and files on the filesystem, which should cover about 80% if not more of all the *nix distributions.

EDIT - I should mention also that this does not have to have a graphical UI - in fact it would be best if this whole process ran from the shell only.

What about BIN files? Also is it possible to simply 'shove' a tar file into an executable script?

+2  A: 

Software "installers" for Linux are typically distributed as "packages." This can vary from distribution to distribution, but Debian or Debian-based distributions (like Ubuntu) typically use .deb packages, Redhat and Fedora use .rpm packages (along with some other distributions).

I can't say much for any distribution but Ubuntu with the .deb packages, but these operate a lot like one would expect an installer to. However, they do not typically allow one to select installation directories - they just put it in a standard location. See http://www.debian.org/doc/FAQ/ch-pkg_basics.en.html for more information on Debian packages or http://en.wikipedia.org/wiki/RPM_Package_Manager for more information on RPM.

Steven Oxley
To clarify "work like...an installer": for example, in Ubuntu, when you double-click a .deb package, a package installer program opens it - it shows information about the package (e.g. the description contained in the package), and has an "Install package" button.
Jefromi
+1  A: 

There are some, e.g. InstallJammer http://www.linux.com/archive/feed/60380 or AutoPackage http://www.autopackage.org/

osgx
Both of these solutions seem very focused on a graphical UI solution and also appear to be pretty involved and complicated. Are there any simple solutions that focus more on a command line utility?
Matt1776
@Matt1776, I need to check some commercial programs for linux and their packaging. sometimes smth like you want is used.Do you want program to install with package manager (to register itself in deb or rpm database) or just to unpack and run?
osgx
Unpack and Run .. It would also be nice to be able to ask the user questions about where to put the software.
Matt1776
There is a `shar` ( http://en.wikipedia.org/wiki/Shar ). It will create self-extracting archives, written in shell (`bash`)
osgx
Beautiful. Thank you - may not solve all my problems but this is very cool and much closer to what I was looking for :0)
Matt1776
@matt1776 InstallBuilder (http://installbuilder.bitrock.com) offers self-contained binaries as well as registration with RPM And DEB
Daniel Lopez
A: 

Check out autopackage. Basically a user just has to download the .package file, which contains everything, make it executable, and then run it. It can be installed from the command line if desired but there is also a GUI option if the user double clicks from the desktop.

Troubadour
+2  A: 

shar archives are self-extracting in most unixes (written in sh). http://en.wikipedia.org/wiki/Shar

osgx
I had read your comment first. Thank you this just might be it ;0)
Matt1776
@Matt1776, the question about installer-creating software for linux is still open. A week ago I have seen some installer in linux-related news (opennet.ru or linux.org.ru) and I want to find that news post.
osgx
@osgx - ya magu govorit pa ruski ochen nimnoshka, but not enough to read a page in russian :) That is interesting - if you can send me this info in english I would love to read it, thank you! [email protected]
Matt1776
@Matt1776, there is a translate.google.com, it will help in reading texts, written in various languages. But I still can't find that news posting.
osgx
@Matt1776, may be here http://www.linux.org.ru/news/opensource/3665527 (Freearc, ... Создание самораспаковывающихся (SFX) архивов и инсталяторов = Creating of self-extracting (SFX) archives and installers). http://freearc.org/
osgx
+1  A: 

FreeArc from http://freearc.org/ claims to create SFX archives and installers.

osgx
@osgx - thank you for these suggestions, I will investigate this one as well :0)
Matt1776