Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
33
rated 0 times [  33] [ 0]  / answers: 1 / hits: 44154  / 3 Years ago, wed, july 7, 2021, 10:08:09

I want to get the source code for a project and then build it the same way that apt would. E.g. I want the working source code and be able to run 'make' or similar command on the source.



How can I do that?



Specifically I want to get this source 'icedtea-6-jre-jamvm'


More From » apt

 Answers
7

For this example I'll use icedtea-6-jre-jamvm as the package you want to rebuild.



First install all the dependencies and build essential:



sudo apt-get build-dep icedtea-6-jre-jamvm
sudo apt-get install build-essential


Then grab the source:



apt-get source icedtea-6-jre-jamvm


Then cd in the openjdk directory directory and build the deb, the -us and -uc here skip the GPG checks if you're just rebuilding it for yourself:



cd openjdk-6-6b24-1.11.5
dpkg-buildpackage -us -uc


Then go up a directory and you should have .deb files.



Sources:




[#33058] Thursday, July 8, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
hergy

Total Points: 64
Total Questions: 115
Total Answers: 109

Location: Saint Helena
Member since Tue, Nov 3, 2020
4 Years ago
;