# 4.5. Installation instructions for the different package formats

Please don't forget to read the README and INSTALL files if they are available.

## 4.5.1. Installation of the Debian packages

The Debian packages install according to the upcoming FHS (file hierarchy standard).

To install the Debian package:

- become superuser

- run: dpkg -i <packagename>.deb

for each and every package you want to install.

## 4.5.2. Installation of the RPM packages

The RPM packages install into /opt/kde.

To install the binary RPM:

- become superuser

- execute: rpm -ivh <packagename>.rpm

To create a binary RPM from the source RPM and install it, do the following:

- become superuser

- run: rpm -ivh <packagename>.src.rpm

- cd /usr/src/redhat/SPECS

- rpm -bb <packagename>.spec

- cd ../RPMS/i386 (or whatever architecture you use)

- rpm -ivh <packagename>.i386.rpm

## 4.5.3. Installation of the source .tar.gz files

The source .tgz package installs into /usr/local/kde by default. You can override this setting by using the "--prefix" option of the configure script.

- Unpack the packages with: tar xvzf <packagename>.tar.gz

- Change directory to the package directory: cd <packagename>

- Configure the package: ./configure

  | Some packages (notably kdebase) have special configuration options that might be applicable to your installation. Type "./configure --help" (without the quotes) to see the available options.

- Build the package: make

- Install the package: su -c "make install" (if you aren't already root). If you already are, just type "make install" (without the quotes).

## 4.5.4. Installation of the binary .tar.gz files

The binary .tar.gz package installs into /opt/kde.

- become superuser

- cd /

- tar xvzf <packagename>.tar.gz