AstrOmatic software packages come with most Linux distributions. However they not always available in their most recent versions. Moreover, the executables are generally not optimized for performance. For these reasons, it may often be beneficial to get AstrOmatic software from its dedicated source and binary repositories. |
Binary packages
Modern operating system distributions come with binary package management tools to install binary packages and handle possible inter-package dependencies. The most popular package formats in the GNU/Linux world are RPM
(RedHat Linux family of distributions) and Deb
(Debian Linux family). AstrOmatic provides optimized binary packages for distributions from both families. Currently supported distributions are
- RPM-based:
- Deb-based:
Two channels are provided for every distribution: bleeding
and stable
. Packages in the bleeding
("bleeding edge") channel integrates all the latest changes, but they only go through a minimum set of tests before being built. They are best for experienced users who want to take advantage of the latest features. The stable
channel packages are released after more extensive testing. They are best for all cases where stability is paramount, such as in large production pipelines.
Binary packages of both channels are compiled with the INTEL compiler, fully optimized, and linked with INTEL's Math Kernel Library when applicable. Thanks to a better, multipath auto-vectorization (CPU dispatch), executables from these packages generally run 20 to 200% faster than those provided by existing Linux distributions.
Adding the AstrOmatic repository to your software sources
GNU/Linux distributions can be configured to automatically install and update software packages from external repositories. Adding thebleeding
AstrOmatic repository to the list managed by your system is straightforward (replace bleeding
with stable
in the command lines below to subscribe to the stable
channel instead):
CentOS
As root
user (or using sudo
):
# yum-config-manager --add-repo=https://repo.astromatic.net/el/astromatic-bleeding.repo
In addition, in CentOS 8 some of the libraries used by AstrOmatic software have been labeled as "PowerTools" and must be enabled:
yum install swarp
to install SWarp, or yum update swarp
if a previous version was already installed, will get you the latest version.
Fedora
As root
user (or using sudo
):
# dnf config-manager --add-repo=https://repo.astromatic.net/fedora/astromatic-bleeding.repo
Taking the SWarp example, dnf install swarp
to install, or dnf update swarp
if a previous version was already installed, will get you the latest version.
Debian
As root
user (or using sudo
):
# echo "deb https://repo.astromatic.net/debian/bleeding "\$(grep -oP "VERSION=.*\(\K\w+" /etc/os-release)" main" > /etc/apt/sources.list.d/astromatic-bleeding.list
# apt-key adv --fetch-keys https://repo.astromatic.net/astromatic.net.key
# apt-get update
Taking the SWarp example, apt-get install swarp
to install, or apt-get update swarp
if a previous version was already installed, will get you the latest version.
Ubuntu
As root
user (or using sudo
):
# echo "deb https://repo.astromatic.net/ubuntu/bleeding "\$(grep -oP "DISTRIB_CODENAME=\K\w+" /etc/lsb-release)" main" > /etc/apt/sources.list.d/astromatic-bleeding.list
# apt-key adv --fetch-keys https://repo.astromatic.net/astromatic.net.key
# apt-get update
Taking the SWarp example, apt-get install swarp
to install, or apt-get update swarp
if a previous version was already installed, will get you the latest version.
Source code
If your operating system is not included in the list of supported Linux distributions above, or if you need more control on the installation, or test features still in development, you may prefer to install AstrOmatic software from the source packages. Source code is available on GitHub. Source code stable releases are available in the release
section of each package repository. The master branch contains the most up-to-date version available and is generally safe to use; however it is recommended to stick to the last release or tagged version for use in production. Code available in the various branches have had no or minimal testing, and may not even compile.
AstrOmatic software is meant to be portable. For most packages, the main code is written in ANSI C, system function calls conform to POSIX, and the build system relies on GNU Autotools. On UN*X systems, all is needed to compile and install the source code after cloning or downloading is
$ ./configure
$ make
$ sudo make install
The configure step can be customized using configure options. configure --help
gives a full list of options. Note that software compiled from the source package installs by default in /usr/local
instead of /usr,
and can therefore coexist with binary distributions.
You may also choose to generate your own binary packages (see previous section). On RPM-based systems this is done by typing make rpm
(for the regular version compiled with the default system compiler and open-source numerical libraries), or make rpm-best
(for the version with the INTEL compiler and MKL). The Deb-based distribution equivalents are make deb
or make deb-best
.