## How to use the Scribus Debian Repository

These notes are kindly provided by our Debian package maintainer, Oleksandr Moskalenko. <malex at tagancha.org>. Please direct questions related to Scribus on Debian to the above email.

Note: Use apt. It is the proper way to install debian packages both binary and source. Make sure you have dpkg-dev installed if you intend to build your own package from source.

### Preparation:

Add the following lines to your `/etc/apt/sources.list` :

>     deb         http://debian.scribus.net/debian/ unstable/
>     deb-src     http://debian.scribus.net/debian/ unstable/

Update the package database.

>      apt-get update

### Available packages:

Available packages include scribus (1.2.xcvs), scribus-cvs (1.3cvs), scribus-doc (Documentation for the official Debian 1.2.x package), and scribus-template (Extra templates distributed in Debian).

### Binary package installation:

Once you modified your `/etc/apt/sources.list` you are ready to Install a binary package via

>      apt-get install "package(s)"

"package(s)" must be in the "Available packages" list above.

### Building from the source packages:

You can also build your own package from the available source packages, in case your CPU architecture is different, you have different library version because you are running Ubuntu or Knoppix, or for any other reason you can think of. The most straightforward way to rebuild a source package is probably to run

>      apt-get source -b scribus scribus-cvs

to get both 1.2cvs and 1.3cvs source packages and build binary packages from them. Don't forget to remove downloaded source packages and the directories they were unpacked into to clean up after you are done. Install the resulting packages with "dpkg -i "package"".

You can also get the source package:

>     apt-get source "package"

Change to the directory where the package was unpacked.

Build the package with

>     dpkg-buildpackage -rfakeroot -b

Install the package you built. with dpkg -i ../"package"

### References:

Note: these instructions are also partially available at:

http://www.debian.org/doc/FAQ/ch-pkg_basics.en.html

See section 6.13 "How do I install a source package?" and section 6.14 "How do I build binary packages from a source package?"

Enjoy Scribus!