# 1.5.2 Linux Installation

XTrackCAD for LINUX is shipped as a self-extracting archive (executable).

1. Installing from the self-extracting archive.
     After downloading open a command line then
     `./xtrkcad-setup-4.2.0beta1.i386.sh --prefix=/usr/local --exclude-subdir`
     This will install the executable in /usr/local/bin. A directory named `xtrkcad` will be created in /usr/local/share and all files will be unpacked into it.

If you install XTrackCAD into another directory, set the `XTRKCADLIB` environment variable to point to that directory.