Difference between revisions of "Tutorials and How-tos/Build Packages"

From BubbaWiki
Jump to navigation Jump to search
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Sometimes you want to build, or at least rebuild some packages on the bubba, here is a short howto how you might do that:
Sometimes you want to build, or at least rebuild some packages on the bubba, here is a short howto how you might do that:  


* Install some basic build packages:
*Install some basic build packages:  
*: <pre>apt-get install devscripts build-essentials lsb-release</pre>
*:<pre>apt-get install devscripts build-essential lsb-release</pre>  
* If you are only planning to rebuild a package, you can install required packages as following:
*If you are only planning to rebuild a package, you can install required packages as following:  
*: <pre>apt-get build-dep package</pre>
*:<pre>apt-get build-dep package</pre>  
*: If you are building a new package, you might need to install required dependences manually
*:If you are building a new package, you might need to install required dependences manually  
* To download sources for a package, issue following:
*To download sources for a package, issue following:  
*: <pre>apt-get source package</pre>
*:<pre>apt-get source package</pre>  
*: If it complains that there are no sources available, issue:
*:If it complains that there are no sources available, issue:  
*:<pre>change_distribution marielle -us</pre>
*:<pre>change_distribution marielle -us</pre>  
*:<pre>apt-get update</pre>
*:<pre>apt-get update</pre>  
* To build a package, enter it's directory and issue:
*To build a package, enter it's directory and issue:  
*: <pre>debuild -us -uc</pre>
*:<pre>debuild -us -uc</pre>  
*: the paramters signal that we don't want to sign the result
*:the paramters signal that we don't want to sign the result  
* When build is don't you can install it by issuing as root:
*When build is done you can install it by issuing as root:  
*: <pre>debi</pre>
*:<pre>debkg install package.deb</pre>

Latest revision as of 16:01, 28 October 2010

Sometimes you want to build, or at least rebuild some packages on the bubba, here is a short howto how you might do that:

  • Install some basic build packages:
    apt-get install devscripts build-essential lsb-release
  • If you are only planning to rebuild a package, you can install required packages as following:
    apt-get build-dep package
    If you are building a new package, you might need to install required dependences manually
  • To download sources for a package, issue following:
    apt-get source package
    If it complains that there are no sources available, issue:
    change_distribution marielle -us
    apt-get update
  • To build a package, enter it's directory and issue:
    debuild -us -uc
    the paramters signal that we don't want to sign the result
  • When build is done you can install it by issuing as root:
    debkg install package.deb