Description | Ways to install softwares under Linux (Centos7) |
---|---|
Related-course materials | HPC Administration Module1 |
Authors | Ndomassi TANDO (ndomassi.tando@ird.fr) |
Creation Date | 23/09/2019 |
Last Modified Date | 23/09/2019 |
Summary
- RPM packages
- Installation from sources
- Installation of a python package
- Installation via Conda
- Perl Modules installation
- Essential system softwares
- Links
- License
RPM packages
Rpm are used for distribution such as Centos, Redhat or fedora.
You can install them with several commands:
To use the command above, the dependencies of the package to install have to be installed first.
To avoid that and if you have of the rpms of the deendencies , just use:
Installation from sources:
A lot of linux softwares have their sources available.
It allows to compile the software to match with the server architecture.
Usually, the sources are compressed into a tarball.
You first have to decompress the tarball with the command:
Into the source package, you should find a README.md or INSTALL.md file that explain to you how to install the software.
Use the following lines to compile the package:
Installation of a python package:
We can use the command :
From source, after decompressing the tarball:
If you work with several versions of python or a cluster, you should use a virtual environment to install your python package.
The virtual environnement encapsulates a python environment for each python packages avoiding interferences with the other:
Create a folder for your python package in /usr/local
Create the virtual environment:
Activate the virtual environment to install the python package:
Deactivate the environment:
Installation via Conda:
URL: https://conda.io/docs/
Conda quickly installs, runs and updates packages and their dependencies. Conda easily creates, saves, loads and switches between environments on your local computer. It was created for Python programs, but it can package and distribute software for any language.
Install conda running the installer:
Once conda installed, you can create a new environment and install a package with the command:
To activate a environment:
To deactivate a environment:
Perl Modules installation:
Use the following commands:
or from the source:
Essential system softwares:
Python:
Python is a programming language
URL : https://www.python.org/
Installation :
Add /usr/local/python-3.7.1
to the path :
Usage :
Perl:
Perl 5 is a highly capable, feature-rich programming language with over 30 years of development
URL : https://www.perl.org/about.html
Installation :
Add /usr/local/perl-5.28.1
to the path :
Usage :
Perlbrew (optional):
perlbrew is an admin-free perl installation management tool.
It is a tool to manage multiple perl installations.
URL : https://perlbrew.pl/
Installation :
Add /usr/local/perl-5.28.1
to the path :
source /etc/profile
Usage :
java:
Java is a programming language web oriented.
URL : https://www.java.com/fr/download/linux_manual.jsp
Installation :
Download the tarball form the interface (jre ou jdk)
Add /usr/java/jre-8u191/
to the path :
Usage :
gcc:
The GNU Compiler Collection includes front ends for C, C++, Objective-C, Fortran, Ada, Go, and D, as well as libraries for these languages (libstdc++,…). GCC was originally written as the compiler for the GNU operating system.
URL : http://gcc.gnu.org/install/
Installation :
Add /usr/local/gcc-7.4.0
to the path :
Bioperl:
Installation
Choose the most recent version:
Links
- Related courses : HPC Trainings