[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to install a source package?



-----BEGIN PGP SIGNED MESSAGE-----

On Thu, 26 Aug 1999, Gregory T. Norris wrote:

> On Thu, Aug 26, 1999 at 07:23:25PM -0600, Mark Zimmerman wrote:
> > I need to install from a source package and I have not been able to
> > find the documentation on this. Would someone please point me to the
> > right man page or give a quick summary?

With later versions of apt-get, you can use "apt-get source <packagename>"
to automate steps 1 and 2. You'll need to add a deb-src line you your
sources.list. The format is exactly the same as a normal deb line for
accessing unstable. For example,
  deb-src http://http.us.debian.org/debian unstable main contrib non-free

Also, giving the --compile option will try to automate the entire process
for you. You need to do this as root, IIRC, necause debian/rules binary
wants root privs.

> 1) Download the source components for the package of interest.  There
>    are two possible combinations:
> 
>       *.dsc and *.tar.gz (debian-specific utility, such as apt)
>       *.dsc, *.orig.tar.gz, and *.diff.gz (everything else)
> 
> 2) Unpack it into the current directory, with `dpkg-source -x *.dsc'.
> 
> 3) cd into packagename-<version>, and run `debian/rules build'.
>    Technically, you can probably skip this step, as the make utility
>    should take care of this in the next step.
> 
> 4) Generate the debfile with `fakeroot debian/rules binary'.  As an
>    alternative to using fakeroot, you can issue `debian/rules binary' as
>    root.

You can also use sudo or any other similar program.

> Assuming no errors, you should now have one or more installable debfiles
> in the parent directory.

Of course, if you use fakeroot, you need write permissions to this parent
directory ;)

- -- 
  finger for PGP public key.

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv

iQCVAwUBN8YkhL7M/9WKZLW5AQE2nAP/Zxd1CinKtdMIpnpJP9jlLNfCB4RTDD9n
mzOctwPgC5NRw9I3EhHAhLtfizIjNQaAIEz/p2ZITc/YPDo5ptvApQE460it2m53
uAq3JnHGTXjDNmCFdBlvrnGuYofRn5MdnYTDbEYQY2LRNbd6F0l4uVciGWt7ucX6
jP1hjyvITZA=
=CqUE
-----END PGP SIGNATURE-----


Reply to: