views:

49

answers:

3

I need information about making installation packages for Linux. I want to make simple package, containing executable + shared libraries, and SDK package for programmers, with executables and h-files. How can this be done? Articles, books, samples - everything that can help to learn this issue.

+2  A: 

I have to admit I've never actually done this myself, but I hope I can get you started. There's different packaging standards for different Linux distributions.

For Debian-based distros like Ubuntu, you'll want to create a .deb file. This article explains how.

For RedHat-based distributions, you'll create an RPM. Developerworks has what looks like a pretty in-depth guide here.

Brabster
+2  A: 

Depends on the linux system. For Ubuntu/Debian, you could read the Ubuntu Packaging Guide. For RedHat, here is the RPM guide from Fedora.

Globally, take the linux distrib of your choice, see how they package, and reproduce.

Valentin Rocher
+1  A: 

almost any distribution system out there has an package generator - try checkinstall for Debian-based (Ubuntu etc.) DEB packages - just run it and it will do all the stuff required for you.

Same thing works for Slackware TGZ.

dusoft
checkinstall is good for tracking what has been installed, but doesn't create really "proper" package.
Valentin Rocher
well, it actually does. it even allows you to set description and other meta data of package.
dusoft