Dear Mr. Venu,
Ryo is quite right you can install any software with the help of anaconda or miniconda on Linux.
Here I am attaching the procedure that I have ready discussed with Saat. I hope this will help you.
Hello Saat,
G'day
First you have to install anaconda I would recommend you to go for python 3.7 for LINUX.
After installing ANACONDA you can easily install pyferret from it by these steps. Important thing is to create an new environment for pyferret (I created FERRET). This is because your linux is having its base environment which is not up to date on repository to install software e.g. CDO, FERRET, NCL etc.
Here is the command to install pyferret from ANACONDA cloud.
conda create -n FERRET -c conda-forge pyferret ferret_datasets --yes
In this command conda create is creating an environment named as FERRET (you can give any other name also like ferret7 etc.).
after running this command conda (Anaconda) will start and complete the installation for you under the environment name FERRET. Now close the terminal and open a new one and type.
conda info --envs (this command will show you the environments in your linux system, I have 4 environment for each software I use)
# conda environments:
#
base * /home/srathore/anaconda3
FERRET /home/srathore/anaconda3/envs/FERRET
NCL /home/srathore/anaconda3/envs/NCL
POP /home/srathore/anaconda3/envs/POP
the Base is the basic environment of linux. it comes when you install linux. So right now I am in my base environment which is shown by asterisk sign (*) and your terminal will show like this (base) user@user-Latitude-E7470:~$.
Now you want to use Pyferret so you have to go in that environment and start using pyferret from there. Here is the command to activate the FERRET environment.
conda activate FERRET
now you are in FERRET environment so you can start using pyferret. After issuing this command your terminal will show like this (FERRET) user@user-Latitude-E7470:~$.This shows that your base environment is now changed to FERRET environment.
If you now issue the command (conda info --envs) to check the environment, it will appear like this (e.g. on my linux system)
# conda environments:
#
base /home/srathore/anaconda3
FERRET * /home/srathore/anaconda3/envs/FERRET
NCL /home/srathore/anaconda3/envs/NCL
POP /home/srathore/anaconda3/envs/POP
the asterisk (*) is now shifted to FERRET environment from base environment.
Now lets suppose you want to deactivate the environment you are in currently. So simply type conda deactivate this will bring you back into base environment.
Similarly if you want to install CDO
This will show you how to install anaconda and CDO (
https://code.mpimet.mpg.de/projects/cdo/wiki/Anaconda). I already gave you the link on how to install anaconda so after installing anaconda no need to repeat the step again mentione don CDO page. So just move to
conda config --add channels conda-forge
conda install cdo
Similarly you can find the cdo installation on t his link also (https://anaconda.org/conda-forge/cdo).
We hope this might help you to install many open source software quickly and easily.
Cheers, Saurabh