- These are our Favorite Films of 2017 - What Were Yours?
- These are our Favorite Films of 2017 - What Were Yours?
- These are our Favorite Films of 2017 - What Were Yours?
- These are our Favorite Films of 2017 - What Were Yours?
- These are our Favorite Films of 2017 - What Were Yours?
- These are our Favorite Films of 2017 - What Were Yours?
- These are our Favorite Films of 2017 - What Were Yours?
- These are our Favorite Films of 2017 - What Were Yours?
- These are our Favorite Films of 2017 - What Were Yours?
- First Look at Peter Jackson Produced MORTAL ENGINES [Trailer]
- These are our Favorite Films of 2017 - What Were Yours?
- First Look at PA Thriller DIVERGE [Trailer]
- ANNIHILATION Looks Next Level Bonkers in New Trailer
- A Machine Raises the Last Human in THE MANUAL [Trailer]
- First Look at Robert Rodriguez' ALITA: BATTLE ANGEL [Trailer]
- DAY OF THE DEAD: BLOODLINE Trailer Takes a Bite
- This Is Not a Drill: THREADS Arrives on Blu-ray for First Time Ever!
- Trailer for Animated PA Film BIRDBOY: THE FORGOTTEN CHILDREN
- Want: Miller and Max: George Miller and the Making of a Film Legend
- New on Blu-ray and DVD! November 14, 2017
- NIGHT OF THE LIVING DEAD Joins Criterion Collection in February!
- BEYOND SKYLINE Is a Big, Gooey, B-Movie Blast! [Review]
- THE STRANGE ONES Is One 2017's Hidden Gems [Review]
- WFF 2017: Evan Rachel Wood Shines in A WORTHY COMPANION [Review]
- WFF 2017: TRENCH 11 Straddles Horror & War to Mixed Effect [Review]
- WFF 2017: JUGGERNAUT is One of this Year’s Must-See Thrillers [Review]
- WFF 2017: PAINLESS is Painless to Watch [Review]
- WFF 2017: WORLD OF DARKNESS is the Quintessential Doc on the Game [Review]
- Your Must-See Apocalyptic Vision of 2017: JUNK HEAD [Review]
- TAD 2017: RABBIT is a Freaky and Stunning Debut [Review]
- TAD 2017: THE VILLAINESS Delivers on the Hype [Review]
- Trailer for Animated PA Film BIRDBOY: THE FORGOTTEN CHILDREN
- CLASS OF 1999 Collector's Blu-ray Hits January [Trailer]
- A Mysterious Commune at the Heart of ONE OF US [Trailer]
- WFF 2017: JUGGERNAUT is One of this Year’s Must-See Thrillers [Review]
- WFF 2017: PAINLESS is Painless to Watch [Review]
- WFF 2017: WORLD OF DARKNESS is the Quintessential Doc on the Game [Review]
- Hide and Seek Gets Twisted in Upcoming READY OR NOT
- PIFFF 2017: Christmas Signals the End of the World in MATAR A DIOS [Trailer]
- New on Blu-ray and DVD! November 29, 2017
- BLACK MIRROR Episode Trailers: Crocodile & Arkangel
- Want: Miller and Max: George Miller and the Making of a Film Legend
- Trailer for Chilling Aussie Thriller THE DUNES
- Paddy Considine Loses His Memory in JOURNEYMAN [Trailer]
- Stealing is an Obsession in Rainer Sarnet's NOVEMBER [Trailer]
- New on Blu-ray and DVD! November 21, 2017
- The Quietcast: BEYOND SKYLINE with Director Liam O'Donnell [Interview]
- RAMPAGE Trailer Destroys Everything
- New on Blu-ray and DVD! November 14, 2017
- Your Must-See Apocalyptic Vision of 2017: JUNK HEAD [Review]
- NIGHT OF THE LIVING DEAD Joins Criterion Collection in February!
Jack In
Latest Comments
PA News
Latest Reviews
Older News
Crew
Marina Antunes
Editor in Chief
Vancouver, British Columbia
Christopher Webster
Managing Editor
Edmonton, Alberta
DN aka quietearth
Founder / Asst. Managing Editor
Denver, Colorado
Simon Read
UK Correspondent
Edinburgh, Scotland
Rick McGrath
Toronto Correspondent
Toronto, Ontario
Manuel de Layet
France Correspondent
Paris, France
rochefort
Austin Correspondent
Austin, Texas
Daniel Olmos
Corrispondente in Italia
Italy
Griffith Maloney aka Griffith Maloney
New York Correspondent
New York, NY
Stephanie O
Floating Correspondent
Quiet Earth Bunker
Jason Widgington
Montreal Correspondent
Montreal, Quebec
Carlos Prime
Austin Correspondent
Austin, TX
quietearth [General News 08.16.06]
Here's how to easily build a .deb package for ubuntu (or debian). You could build a .deb package using checkinstall, but that wouldn't include all the debian/ubuntu specifics you need. I used the following to build the ubuntu package for my next release of News notification.
First off, let's install the necessary tools:
# apt-get install autotools-dev fakeroot dh-make build-essentialThen copy your source tree into a directory in /tmp:
# cp -r news-notification-0.3 /tmp
# cd /tmp/news-notification-0.3Now let's make the debian control files:
# dh_makeand pick Single for single binary, or whatever is appropriate for your project.
Edit the debian/control file and at least change the Maintainer and Description fields. There are a few other files you will probably want to edit.
Then run the following: (this has to be done as root)
# dpkg-buildpackage -rfakerootLooking at the debian/news-notification/DEBIAN/control file we can see that all the dependencies are proper thanks to the autoconf system. If we look in /tmp (one directory up) we see news-notification_0.3-1_i386.deb which is ready to go! If we want to use the appropriate ubuntu package versioning, check out this post. Since this is my first ubuntu package of this version, with no debian original it would be:
news-notification_0.3-0ubuntu1_i386.debPingbacks
china.newlad (11 years ago) Reply
thank you for this document,i have use this to
create my first deb file
quietearth (10 years ago) Reply
With newer versions of dh_make, you might need to specify the --createorig flag to dh_make if you do not provide the original source file.
gerard (10 years ago) Reply
dpkg-buildpackage -rfakeroot does NOT need to be run as root
Anonymous (10 years ago) Reply
thank you for this document,i have use this to
create my first deb file : me too !
Anonymous (9 years ago) Reply
for me, I get a cannot find Glib2 error when running the dpkg-buildpackage command.
tillux (9 years ago) Reply
thanks :) BUT:
dpkg-buildpackage does indeed built the .deb packages, but they are almost empty. The data.tar.gz only contains the folder-structure "down to" the doc folder, but there is no data in the folder...
tshirtman (8 years ago) Reply
Thanks! You helped me to backport ghostscript from lenny to sarge today :).
Kristian Erikson (8 years ago) Reply
Great guide. Helped me out too :)
FCV (8 years ago) Reply
Nice guide, thanks!
I am trying to package code from somebody else. ./configure && make works. But dh_make -s -e 'acsccid-1.0.1@FransVerster.nl' --createorig && dpkg-buildpackage fails :-(
It is building without some .c file so the linker fails.
Howto fix? Whats so different when using dpkg-buildpackage ?
Thx!
stein (7 years ago) Reply
Cheers, this helped me compile scanner backend for my Asus eee Xandros system, had to use a separate Etch installation on an old machine.
Changes must always be expected with new software versions butt this little guide worked fine still (May 2010).
Anonymous (7 years ago) Reply
Thanks
Helped me to back-port vlc to hardy today!
hik (7 years ago) Reply
As i m a newbie, i dont know what rule has to be added.
I got following error for "dpkg" command,
"
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package zsync
dpkg-buildpackage: source version 0.9ubuntu1-1
dpkg-buildpackage: source changed by mathankumarb <mk@zohocorp.com>
dpkg-buildpackage: host architecture i386
fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
/usr/bin/make clean
make[1]: Entering directory `/tmp/zsync-0.9ubuntu1'
make[1]: *** No rule to make target `clean'. Stop.
make[1]: Leaving directory `/tmp/zsync-0.9ubuntu1'
make: *** [clean] Error 2
dpkg-buildpackage: failure: fakeroot debian/rules clean gave error exit status 2
"
creag (7 years ago) Reply
hi5,
have u installed fakeroot. For me the above procedure is working fine. U might have missed something.
Soul (7 years ago) Reply
how to edit debian/control file??
it say Could not find <name>-<version>.orig.tar.gz at dh_make
?????
does not work T.T
(6 years ago) Reply
dh_make version 0.55 or older may not work correctly if your source has two dotted-decimal points in the name. I downloaded dh_make 0.59 from ftp.debian.org/debian/pool/d/dh-make and it worked fine.
Gen2ly (5 years ago) Reply
Very very helpful. Needed a little morale boost for my first deb, helped quite a bit. thank you.

