LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-06-2006, 07:57 AM   #1
stranger_6_7
LQ Newbie
 
Registered: Nov 2006
Posts: 24

Rep: Reputation: 15
Creating a Bin Installer For a Application


Hi,

I have built an application and i have to make a rpm out of it. But i thought of creating a .bin file which will have apache, mysql and php and my application along with them. How can i create a Bin installer
file something like myapp.bin which on running will automatically install my application along with apache,mysql and php?


Thanks for the Help
stranger.
 
Old 11-06-2006, 09:27 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,520

Rep: Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502
You can take a look here
 
Old 11-06-2006, 09:29 AM   #3
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
I've done this in the past by using a shell script with a binary tarfile appended to it. When the script it run it will pull off the tarfile and then extract it. A few of the key elements of the script are:

Code:
SKIP=`${AWK} '/^__ARCHIVE_START__/ { print NR + 1; exit 0; }' $PROGRAM`

ExtractTarFile()
{
    echo "Extracting files..."
    ${TAIL} +${SKIP} $PROGRAM_FILE | ${GZIP} -dc | ${TAR} -xvf -

}


if [ $? -eq 1 ]; then
   echo "gzip must be installed and in your path"
   exit 1
fi

# Call the main routines, either backup or backout
if [[ $BACKOUT_FLAG = 1 ]]; then
    BackoutTarFile
else
    CreateBackupFiles
    CheckForCopyErrors  # this function may abort script
    ExtractTarFile

fi


exit 0

__ARCHIVE_START__
^_.^H^@.z@^@^C;^KlSW..:^E3^[vM^E  ..,e$..S.٤.        4.@.c.&q^].^D
<snip>
I created the script/binfile with:
Code:
cat script.sh tarfile.tar > setup.bin
I have not used this in quite some time in favor of professional installers, but it worked good when I did use it. I actually liked this a bit better since my script controlled every aspect of the install and I didn't have to rely on the oddities and limitations of Install Shield installers.
 
Old 11-06-2006, 09:32 AM   #4
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
Well it looks like it's been made easier since I tackled the problem years ago. The makeself approach looks even easier.
 
Old 11-06-2006, 09:48 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530
Each time a vulnerability is fixed in Apache, MySQL or PHP you will have to re-release your monolithic package else you're spreading flawed software (which is as bad as spreading FUD). That is inefficient and makes it hard to maintain.

RPM's handle dependencies. If you just set "Requires: apache, mysql, php" in the .spec file for your application RPM the dependencies will be installed if necessary. You don't *need* no other tools.

Last edited by unSpawn; 11-06-2006 at 09:53 AM. Reason: ((clarification++))
 
Old 11-06-2006, 10:05 AM   #6
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
Consider using autopackage
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SUSE installer terminated (successfully?) before creating users or root password rose_bud4201 SUSE / openSUSE 2 03-13-2006 04:44 PM
xfce4-4.2.3.2-installer.bin jmdlcar Slackware 1 03-07-2006 10:53 PM
Creating a wizard like application Diederick Programming 1 07-07-2005 01:58 AM
Creating a Linux from Scratch installer? pilot1 Linux From Scratch 6 03-04-2004 04:12 AM
creating a graphical installer for a custom linux distribution waresd Linux - Distributions 4 06-06-2002 09:27 AM


All times are GMT -5. The time now is 10:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration