LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 10-29-2010, 02:07 AM   #1
tank junior
Member
 
Registered: Apr 2010
Posts: 42

Rep: Reputation: 0
ELF format (Self Extractable Executable) Creation


Hi,

I am new to Linux. I did searched in forums but not able to find something useful. May be I didn't use the correct phrase.

Google is pointing me various article on this topic and nearest one that shows up is this one:
http://davidf.sjsoft.com/mirrors/mcm...andalones.html

Unfortunately download is not available.

I would like to start with simple example:

1. Create a "Hello world" executable.
2. Attach files to it.
3. Add the code in in "Hello" executable to extract the files to a custom location.

1st is simple.

For second, above mentioned article suggest that CArchive can be created using Python. It means you can create a CArchive using "hello" executable and other files. How do you do that using Python?

For 3rd, I need more info about the implementation using C.

Cheers

Prashant
 
Old 10-29-2010, 03:18 AM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
Self extracting executables on Linux are more typically done using a self extracting shell script. You can use a tool such as makeself to bundle one up.

If you want to manipulate ELF formats in C, then the libelf library is useful.
 
Old 10-29-2010, 04:23 PM   #3
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Self-extracting executables are rare in Linux, they are mainly a Windows thing.

Linux typically uses packages, which are archives of the files plus some extra metadata, and they are installed using a special program called a package manager.
 
  


Reply

Tags
elf, python



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
Difference between Linux ELF Format and win32 ELF Format cmemo Linux - Hardware 1 05-11-2007 05:32 PM
Difference between Linux ELF Format and win32 ELF Format cmemo Linux - General 1 05-11-2007 03:44 PM
Difference between Linux ELF Format and win32 ELF Format cmemo Linux - Software 1 05-11-2007 03:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:50 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
Open Source Consulting | Domain Registration