One way to build manually downloaded Debian GNU/Linux source packages assuming build requirements are met including installing
build-essential
,
dpkg-dev
, and
fakeroot
packages.
-
Download the
package_version-revision.dsc
package_version.orig.tar.gz
and package_version-revision.debian.tar.gz
files.
-
cd to the download directory and run:
dpkg-source -x package_version-revision.dsc
-
cd to
package-version
directory
-
optionally make changes to the source code
-
optionally increment the Debian release number of the package:
export EMAIL=someemail@somedomain.com
dch -i # from devscripts package, may also need to install libparse-debcontrol-perl
-
build the package:
dpkg-buildpackage -rfakeroot -us -uc
-
install the package:
sudo dpkg -i ../<packagename>_<version>-<revision>_<architecture>.deb