How to compile a Debian package from source?

Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
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
add a comment |Â
up vote
1
down vote
favorite
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
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
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
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
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
debian package-management source
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
add a comment |Â
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
add a comment |Â
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:
- All of this is done inside the package directory. If you're in the right directory, there should be a
debian/subdirectory, containingdebian/controlanddebian/rules(and probably more stuff, too). - Run
dpkg-checkbuilddeps. Install any missing dependencies. - Edit
debian/changelogto add a new changelog entry, with a new version. Otherwise apt will be annoyed. Alternatively, installdevscriptsand usedch -l. - Run
dpkg-buildpackage -rfakeroot -b -ucto build the binary package only,dpkg-buildpackage -rfakeroot -us -ucto build binary and source packages. - You should now have some new
.debfiles in the parent directory, ready to be installed withdpkg -i
I guess now I know it didn't work. Source codes didn't includedebian/controlanddebian/rules. Gonna try this with another source. Bookmarked. Thanks.
â Nic61629
Mar 6 '14 at 23:25
add a comment |Â
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:
- All of this is done inside the package directory. If you're in the right directory, there should be a
debian/subdirectory, containingdebian/controlanddebian/rules(and probably more stuff, too). - Run
dpkg-checkbuilddeps. Install any missing dependencies. - Edit
debian/changelogto add a new changelog entry, with a new version. Otherwise apt will be annoyed. Alternatively, installdevscriptsand usedch -l. - Run
dpkg-buildpackage -rfakeroot -b -ucto build the binary package only,dpkg-buildpackage -rfakeroot -us -ucto build binary and source packages. - You should now have some new
.debfiles in the parent directory, ready to be installed withdpkg -i
I guess now I know it didn't work. Source codes didn't includedebian/controlanddebian/rules. Gonna try this with another source. Bookmarked. Thanks.
â Nic61629
Mar 6 '14 at 23:25
add a comment |Â
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:
- All of this is done inside the package directory. If you're in the right directory, there should be a
debian/subdirectory, containingdebian/controlanddebian/rules(and probably more stuff, too). - Run
dpkg-checkbuilddeps. Install any missing dependencies. - Edit
debian/changelogto add a new changelog entry, with a new version. Otherwise apt will be annoyed. Alternatively, installdevscriptsand usedch -l. - Run
dpkg-buildpackage -rfakeroot -b -ucto build the binary package only,dpkg-buildpackage -rfakeroot -us -ucto build binary and source packages. - You should now have some new
.debfiles in the parent directory, ready to be installed withdpkg -i
I guess now I know it didn't work. Source codes didn't includedebian/controlanddebian/rules. Gonna try this with another source. Bookmarked. Thanks.
â Nic61629
Mar 6 '14 at 23:25
add a comment |Â
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:
- All of this is done inside the package directory. If you're in the right directory, there should be a
debian/subdirectory, containingdebian/controlanddebian/rules(and probably more stuff, too). - Run
dpkg-checkbuilddeps. Install any missing dependencies. - Edit
debian/changelogto add a new changelog entry, with a new version. Otherwise apt will be annoyed. Alternatively, installdevscriptsand usedch -l. - Run
dpkg-buildpackage -rfakeroot -b -ucto build the binary package only,dpkg-buildpackage -rfakeroot -us -ucto build binary and source packages. - You should now have some new
.debfiles in the parent directory, ready to be installed withdpkg -i
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:
- All of this is done inside the package directory. If you're in the right directory, there should be a
debian/subdirectory, containingdebian/controlanddebian/rules(and probably more stuff, too). - Run
dpkg-checkbuilddeps. Install any missing dependencies. - Edit
debian/changelogto add a new changelog entry, with a new version. Otherwise apt will be annoyed. Alternatively, installdevscriptsand usedch -l. - Run
dpkg-buildpackage -rfakeroot -b -ucto build the binary package only,dpkg-buildpackage -rfakeroot -us -ucto build binary and source packages. - You should now have some new
.debfiles in the parent directory, ready to be installed withdpkg -i
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 includedebian/controlanddebian/rules. Gonna try this with another source. Bookmarked. Thanks.
â Nic61629
Mar 6 '14 at 23:25
add a comment |Â
I guess now I know it didn't work. Source codes didn't includedebian/controlanddebian/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
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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