BUILD DEBIAN
PACKAGES (.deb) FROM PROGRAMS SOURCES
by Francesco Palmisano
It's
possible that you need a program which isn't into your
distro's
repository (Debian, Sidux, Ubuntu), but it's available only in "source
way". So you can compile an install it from sources or create
a debian
package that let you manage all with your package manager (installation
and uninstallation).
Let's see how to
procede:
First of all check to have installed :
1) devscripts
2) dh-make
3) make
4) build-essential
5) dpkg
6) apt
Ok, now download the souces file (usually in compress format) of the
program you need (now we call it sorgente.tar.gz.bz2)
Uncompress it:
tar xvfj
sorgente.tar.gz.bz2
then go into his folder and give the comand:
dh_make -s -e vostramail
-n --copyright gpl
where vostramail
is your email address, for example: tony@provider.com.
and you need to specify the licence: in open-source
circumstance it's gpl.
dh_make makes a new folder called ./debian/ and ask you a
confirmatin: press ENTER to confirm.
Now give the command:
debuild
binary
If everything is gone well, into the uper folder, you can find a deb
package (programname.deb) ready to install with the command (as root):
dpkg -i
nomeprogramma.deb
Good! your program is now installed and present in the list of your
package manager.
back on top
- back to tutorials