Installing a newer version of an app not in the repositories

Optimize your system for ultimate performance.

Moderators: MattKingUSA, khz

tramp
Established Member
Posts: 2348
Joined: Mon Jul 01, 2013 8:13 am
Has thanked: 9 times
Been thanked: 468 times

Re: Installing a newer version of an app not in the reposito

Post by tramp »

briandc wrote:Can you explain this a bit further? I think this might be useful for many a user here. :)
dh_make create the debian folder in the source directory for you. Usage is far simple, just point your terminal (as user, not as root) in the source directory and run dh_make. dh_make needs some parameters, or it present you some questions to answer. My on-liner for dh_make is as followed:

Code: Select all

 yes '' | dh_make -s -n -e $USER@org -p appname_version.number -c gpl >/dev/null
were you have to replace appname with your application name to build and version.number with the version number.
Thus will create the debian folder with all needed files in it. As next you run

Code: Select all

dpkg-buildpackage -rfakeroot -b
that will build the debian package in on directory above the source directory. When finished, you can install it as root.
That will work for any application which use the usual ./configure make make install procedure.
For applications which use other build environments, you need to overwrite dh_auto_configure in the debian/rules file, as a example:

Code: Select all

echo -e "\noverride_dh_auto_configure:\n\t./autogen.sh\n\tdh_auto_configure -- --enable-experimental" >>./debian/rules
thus will run a autogen.sh script and set the --enable-experimental option for ./configure

more info on that theme you could find here:
http://www.debian.org/doc/manuals/maint ... html#rules
On the road again.
Post Reply