How to compile a Debian package from source?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite
2












I use a tool called YUMI to create a USB boot device.



Its Debian package and its source can be downloaded from http://www.pendrivelinux.com/yumi-multiboot-usb-creator/.



I needed to change a file in source code to make the program fits my needs but now I don't how to compile it and install it afterwards.



I tried with dpkg but with no experience and it didn't work.



So, is there an easy way to compile and install a user-modified source code?










share|improve this question























  • See unix.stackexchange.com/q/112157/4671 for related discussion. "I tried with dpkg but with no experience and it didn't work." does not help anyone trying to help you. Please paste commands used and errors encountered. Thanks.
    – Faheem Mitha
    Mar 1 '14 at 0:55










  • @FaheemMitha Thanks for the advice. I'd have helped myself if I had done that.
    – Nic61629
    Mar 6 '14 at 23:20










  • You're welcome, Nic61629.
    – Faheem Mitha
    Mar 6 '14 at 23:23














up vote
1
down vote

favorite
2












I use a tool called YUMI to create a USB boot device.



Its Debian package and its source can be downloaded from http://www.pendrivelinux.com/yumi-multiboot-usb-creator/.



I needed to change a file in source code to make the program fits my needs but now I don't how to compile it and install it afterwards.



I tried with dpkg but with no experience and it didn't work.



So, is there an easy way to compile and install a user-modified source code?










share|improve this question























  • See unix.stackexchange.com/q/112157/4671 for related discussion. "I tried with dpkg but with no experience and it didn't work." does not help anyone trying to help you. Please paste commands used and errors encountered. Thanks.
    – Faheem Mitha
    Mar 1 '14 at 0:55










  • @FaheemMitha Thanks for the advice. I'd have helped myself if I had done that.
    – Nic61629
    Mar 6 '14 at 23:20










  • You're welcome, Nic61629.
    – Faheem Mitha
    Mar 6 '14 at 23:23












up vote
1
down vote

favorite
2









up vote
1
down vote

favorite
2






2





I use a tool called YUMI to create a USB boot device.



Its Debian package and its source can be downloaded from http://www.pendrivelinux.com/yumi-multiboot-usb-creator/.



I needed to change a file in source code to make the program fits my needs but now I don't how to compile it and install it afterwards.



I tried with dpkg but with no experience and it didn't work.



So, is there an easy way to compile and install a user-modified source code?










share|improve this question















I use a tool called YUMI to create a USB boot device.



Its Debian package and its source can be downloaded from http://www.pendrivelinux.com/yumi-multiboot-usb-creator/.



I needed to change a file in source code to make the program fits my needs but now I don't how to compile it and install it afterwards.



I tried with dpkg but with no experience and it didn't work.



So, is there an easy way to compile and install a user-modified source code?







debian package-management source






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 21 at 3:09









Rui F Ribeiro

36.7k1271116




36.7k1271116










asked Feb 28 '14 at 16:37









Nic61629

2515




2515











  • See unix.stackexchange.com/q/112157/4671 for related discussion. "I tried with dpkg but with no experience and it didn't work." does not help anyone trying to help you. Please paste commands used and errors encountered. Thanks.
    – Faheem Mitha
    Mar 1 '14 at 0:55










  • @FaheemMitha Thanks for the advice. I'd have helped myself if I had done that.
    – Nic61629
    Mar 6 '14 at 23:20










  • You're welcome, Nic61629.
    – Faheem Mitha
    Mar 6 '14 at 23:23
















  • See unix.stackexchange.com/q/112157/4671 for related discussion. "I tried with dpkg but with no experience and it didn't work." does not help anyone trying to help you. Please paste commands used and errors encountered. Thanks.
    – Faheem Mitha
    Mar 1 '14 at 0:55










  • @FaheemMitha Thanks for the advice. I'd have helped myself if I had done that.
    – Nic61629
    Mar 6 '14 at 23:20










  • You're welcome, Nic61629.
    – Faheem Mitha
    Mar 6 '14 at 23:23















See unix.stackexchange.com/q/112157/4671 for related discussion. "I tried with dpkg but with no experience and it didn't work." does not help anyone trying to help you. Please paste commands used and errors encountered. Thanks.
– Faheem Mitha
Mar 1 '14 at 0:55




See unix.stackexchange.com/q/112157/4671 for related discussion. "I tried with dpkg but with no experience and it didn't work." does not help anyone trying to help you. Please paste commands used and errors encountered. Thanks.
– Faheem Mitha
Mar 1 '14 at 0:55












@FaheemMitha Thanks for the advice. I'd have helped myself if I had done that.
– Nic61629
Mar 6 '14 at 23:20




@FaheemMitha Thanks for the advice. I'd have helped myself if I had done that.
– Nic61629
Mar 6 '14 at 23:20












You're welcome, Nic61629.
– Faheem Mitha
Mar 6 '14 at 23:23




You're welcome, Nic61629.
– Faheem Mitha
Mar 6 '14 at 23:23










1 Answer
1






active

oldest

votes

















up vote
2
down vote



accepted










The easy way to compile a package from source is with dpkg-buildpackage. Make sure you have build-essential installed. And fakeroot as well. Then:



  1. All of this is done inside the package directory. If you're in the right directory, there should be a debian/ subdirectory, containing debian/control and debian/rules (and probably more stuff, too).

  2. Run dpkg-checkbuilddeps. Install any missing dependencies.

  3. Edit debian/changelog to add a new changelog entry, with a new version. Otherwise apt will be annoyed. Alternatively, install devscripts and use dch -l.

  4. Run dpkg-buildpackage -rfakeroot -b -uc to build the binary package only, dpkg-buildpackage -rfakeroot -us -uc to build binary and source packages.

  5. You should now have some new .deb files in the parent directory, ready to be installed with dpkg -i





share|improve this answer






















  • I guess now I know it didn't work. Source codes didn't include debian/control and debian/rules. Gonna try this with another source. Bookmarked. Thanks.
    – Nic61629
    Mar 6 '14 at 23:25










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f117503%2fhow-to-compile-a-debian-package-from-source%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
2
down vote



accepted










The easy way to compile a package from source is with dpkg-buildpackage. Make sure you have build-essential installed. And fakeroot as well. Then:



  1. All of this is done inside the package directory. If you're in the right directory, there should be a debian/ subdirectory, containing debian/control and debian/rules (and probably more stuff, too).

  2. Run dpkg-checkbuilddeps. Install any missing dependencies.

  3. Edit debian/changelog to add a new changelog entry, with a new version. Otherwise apt will be annoyed. Alternatively, install devscripts and use dch -l.

  4. Run dpkg-buildpackage -rfakeroot -b -uc to build the binary package only, dpkg-buildpackage -rfakeroot -us -uc to build binary and source packages.

  5. You should now have some new .deb files in the parent directory, ready to be installed with dpkg -i





share|improve this answer






















  • I guess now I know it didn't work. Source codes didn't include debian/control and debian/rules. Gonna try this with another source. Bookmarked. Thanks.
    – Nic61629
    Mar 6 '14 at 23:25














up vote
2
down vote



accepted










The easy way to compile a package from source is with dpkg-buildpackage. Make sure you have build-essential installed. And fakeroot as well. Then:



  1. All of this is done inside the package directory. If you're in the right directory, there should be a debian/ subdirectory, containing debian/control and debian/rules (and probably more stuff, too).

  2. Run dpkg-checkbuilddeps. Install any missing dependencies.

  3. Edit debian/changelog to add a new changelog entry, with a new version. Otherwise apt will be annoyed. Alternatively, install devscripts and use dch -l.

  4. Run dpkg-buildpackage -rfakeroot -b -uc to build the binary package only, dpkg-buildpackage -rfakeroot -us -uc to build binary and source packages.

  5. You should now have some new .deb files in the parent directory, ready to be installed with dpkg -i





share|improve this answer






















  • I guess now I know it didn't work. Source codes didn't include debian/control and debian/rules. Gonna try this with another source. Bookmarked. Thanks.
    – Nic61629
    Mar 6 '14 at 23:25












up vote
2
down vote



accepted







up vote
2
down vote



accepted






The easy way to compile a package from source is with dpkg-buildpackage. Make sure you have build-essential installed. And fakeroot as well. Then:



  1. All of this is done inside the package directory. If you're in the right directory, there should be a debian/ subdirectory, containing debian/control and debian/rules (and probably more stuff, too).

  2. Run dpkg-checkbuilddeps. Install any missing dependencies.

  3. Edit debian/changelog to add a new changelog entry, with a new version. Otherwise apt will be annoyed. Alternatively, install devscripts and use dch -l.

  4. Run dpkg-buildpackage -rfakeroot -b -uc to build the binary package only, dpkg-buildpackage -rfakeroot -us -uc to build binary and source packages.

  5. You should now have some new .deb files in the parent directory, ready to be installed with dpkg -i





share|improve this answer














The easy way to compile a package from source is with dpkg-buildpackage. Make sure you have build-essential installed. And fakeroot as well. Then:



  1. All of this is done inside the package directory. If you're in the right directory, there should be a debian/ subdirectory, containing debian/control and debian/rules (and probably more stuff, too).

  2. Run dpkg-checkbuilddeps. Install any missing dependencies.

  3. Edit debian/changelog to add a new changelog entry, with a new version. Otherwise apt will be annoyed. Alternatively, install devscripts and use dch -l.

  4. Run dpkg-buildpackage -rfakeroot -b -uc to build the binary package only, dpkg-buildpackage -rfakeroot -us -uc to build binary and source packages.

  5. You should now have some new .deb files in the parent directory, ready to be installed with dpkg -i






share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 1 '14 at 3:56

























answered Feb 28 '14 at 16:55









derobert

69.3k8150206




69.3k8150206











  • I guess now I know it didn't work. Source codes didn't include debian/control and debian/rules. Gonna try this with another source. Bookmarked. Thanks.
    – Nic61629
    Mar 6 '14 at 23:25
















  • I guess now I know it didn't work. Source codes didn't include debian/control and debian/rules. Gonna try this with another source. Bookmarked. Thanks.
    – Nic61629
    Mar 6 '14 at 23:25















I guess now I know it didn't work. Source codes didn't include debian/control and debian/rules. Gonna try this with another source. Bookmarked. Thanks.
– Nic61629
Mar 6 '14 at 23:25




I guess now I know it didn't work. Source codes didn't include debian/control and debian/rules. Gonna try this with another source. Bookmarked. Thanks.
– Nic61629
Mar 6 '14 at 23:25

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f117503%2fhow-to-compile-a-debian-package-from-source%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Peggy Mitchell

Palaiologos

The Forum (Inglewood, California)