Rebuilding a package with Debian GNU / Linux
tagged compilazione , Debian , Ricompilare and sorgenti Nessun commento » Debian, Open Source, System, Tips & tricks tagged compilation, Debian, Rebuilding and sources No comment '
I state that this will not be a comprehensive tutorial, but only a sort of manabile - but I remember the manabili them? - Especially useful for those who want to try to rebuild itself from a Debian package and not have the time to learn the theory.
First you must install the basic packages for this type of operation:
# apt-get install devscripts build-essential
Then go download the source package that we want to rebuild:
# apt-get source nome_pacchetto
Warning! The package will be downloaded in the current directory!
The name of the package you can easily get greppando the output of dpkg:
# dpkg -l | grep -i openoffice
Here we have carried out a search to find the correct name of the package openoffice.org.
Now we must proceed with the generation of dependencies:
# apt-get build-dep nome_pacchetto
Straight! In the debian are some scripts and configuration files that may require specific changes, maybe just those for which it was decided to rebuild the package. Among these are the most important rules (compilation options) and changelog (the name should be self).
To rebuild the package:
# cd nome_pacchetto
# debuild -us -uc
Once terminatala compilation, you'll find packages. Deb in the directory, ready for installation:
# cd ..
# dpkg -i *.deb
For greater clarity we see a concrete example:
# apt-get source mysql-server-5.0
# apt-get build-dep mysql-server-5.0
# cd mysql-dfsg-5.0-5.0.32
# debuild -us -uc
# cd ..
# dpkg -i *.deb
Have a lot of fun!










