2. RPM installation

2.1. Retrieve the RPM packages

The platform is distributed as two separate packages:

The latest version of both packages can be downloaded from www.qgar.org/download.php.

2.2. Install the RPMs

2.2.1. Required packages

The installation of packages qgar and qgar-devel requires the Qt library, which is commonly embedded in the libqt3 RPM package.

2.2.2. Default installation

The RPM installation of the Qgar packages is rather straightforward as it uses the default installation options of the rpm command. It requires to be logged-in as the root user on the host computer.

  • Installation of the applications and of the user interface: the installation default base directory, [prefix], is /usr/local, but it may be changed (see next section).

    rpm -ivh qgar-2.2-1mdk.i586.rpm

    The installation spreads over 3 directories:

    • [prefix]/bin contains symbolic links the Qgar applications and to the user interface, as well as a script named qgar, to invoke the user interface,

    • [prefix]/lib/qgar contains the Qgar applications and the user interface,

    • [prefix]/share/qgar, contains the (XML) description files of the Qgar applications.

    To erase this installation:

    rpm -e qgar
  • Installation of the library: the installation default base directory, [prefix], is /usr/local, but it may be changed (see next section).

    rpm -ivh qgar-devel-2.2-1mdk.i586.rpm

    The installation spreads over 2 directories:

    • [prefix]/lib contains the library, qgarlib.a,

    • [prefix]/include/qgarlib, contains the header files of the library.

    To erase this installation:

    rpm -e qgar-devel

2.2.3. Installation in a different base directory

The Qgar packages are relocatable (i.e. can be installed in a directory different from the default base directory, /usr/local), using the --prefix option to introduce the destination directory when invoking rpm:

rpm -ivh --prefix=[destination_directory] qgar-2.2-1mdk.i586.rpm

2.3. Generate your own RPMs

If the host computer environment is not completely compatible with the required Mandrake versions, new RPMs may be generated from the Qgar sources.