-----BEGIN PGP SIGNED MESSAGE----- On Mon, 6 Sep 1999, Seth R Arnold wrote:
> On Mon, Sep 06, 1999 at 10:22:57PM +1200, Matthew Gregan wrote: > > If you have a new enough apt-get that supports the 'source' command but > > don't have it set up correctly, you need something like this added to > > your /etc/apt/sources.list: > > > > deb-src http://http.us.debian.org/debian stable main contrib non-free > > Matthew, could you perhaps give a quick example of using the apt-get > source dealy? Why would one use it over apt-get install? Yeah, to get > the source, but where does the source get stored, and once you have > hacked on the source a bit, is there a nice debian way of compiling? > :) You use apt-get install when you want to install a Debian package. You use apt-get source when you want to get the source code, that can be used to create the debian package. The syntax in in the apt-get manpage. The source is stored in a subdirectory of the current working directory. Also, you'll find 3 new files in the cwd, one .orig.tar.gz, ont .diff.gz, and one .dsc. At any point, you can use the command "dpkg-source -X foobar.dsc" [dpkg-dev package] to extract the sources from these three files. Once you've hacked on the sources, the easiest way to build the packages is to cd to the base directory (the subdir created when you did apt=get source) and execute "debian/rules binary". You may use fakeroot, sudo, or similar programs if you don't want to do things as root. .deb files will then be created in .. (i.e. the same dir as the .dsc, .diff.gz, and .orig.tar.gz files). - -- finger for PGP public key. -----BEGIN PGP SIGNATURE----- Version: 2.6.3ia Charset: noconv iQCVAwUBN9QVgr7M/9WKZLW5AQHkkwP/c1SvZYVsZg/9rpczUDM5+uB+aYduaMOE u0lidJdsdG5yxsAHh3fv0EoHckL0NfaL9ba/r7AlEHkBWBVzH2j471b0A2CHBONN 0ZymumUkYlUZe+zMdCThOPktyLKlhO0JUBtfLr9yNFpP+UiFafp+fLbC8eM8g76Q 08eFCNuBvUg= =vxkZ -----END PGP SIGNATURE-----

