The platform is distributed as two separate packages:
A package named qgar, including a graphical user interface (QgarGui) and some applications (QgarApps),
A developer's package, named qgar-devel, embedding a library (QgarLib) and its header files.
The installation of packages qgar and qgar-devel requires the Qt library, which is commonly embedded in the libqt3 RPM package.
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
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
If the host computer environment is not completely compatible with the required Mandrake versions, new RPMs may be generated from the Qgar sources.
Download qgar-2.2-1mdk.src.rpm (http://www.qgar.org/download.php).
Install the corresponding package:
rpm -ivh qgar-2.2-1mdk.src.rpm
/usr/src/RPM/SOURCES then contains the gzipped tar archive of the Qgar platform, qgar-2.2.tar.gz.
/usr/src/RPM/SPECS, contains the RPM specification file, qgar-mdk.specs, to generate the qgar and qgar-devel RPM packages.
It is now possible either to install the Qgar platform from its sources, using /usr/src/RPM/SOURCES/qgar-2.2.tar.gz (see section Source installation), or, once specification file /usr/src/RPM/SPECS/qgar-mdk.specs has been customized, to generate RPMs adapted to the host computer environment:
rpm -ba /usr/src/RPM/SPECS/qgar-mdk.specs
Generated RPMs can then be found in a subdirectory (corresponding to the host computer processor) of /usr/src/RPM/RPMS and in directory /usr/src/RPM/SRPMS.