Debian: Create package from (debian) source

Hi,

its quite simply to compile from source:

Enable Source repositories in /etc/apt/sources.list

deb-src http://ftp.uni-erlangen.de/debian/ jessie main
deb-src http://security.debian.org/ jessie/updates main
deb-src http://ftp.uni-erlangen.de/debian/ jessie-updates main

1
apt-get -y install debhelper dpkg-dev build-essential fakeroot

Get sources for w_scan

1
apt-get source w-scan

And start compiling

1
2
cd w-scan-20130331
dpkg-buildpackage -rfakeroot -uc -us -b

Or if you don’t want to modify the sources

1
apt-get source --compile w-scan

And install it

1
dpkg -i w-scan_20130331-1_amd64.deb

Michael

Debian Build Tutorial

 

Leave a Reply