how to install anaconda / miniconda on Linux silently
can be achieved by bash miniconda.sh -b
(thanks @darthbith)
The command line usage for this can only be seen with -h
flag but not --help
, so I missed it.
To install the anaconda to another place, use the -p
option:
bash anaconda.sh -b -p /some/path
Installing Miniconda2 Non-Interactively
You're looking for expect
:
Expect is a program that "talks" to other interactive programs according to a script. Following the script, Expect knows what can be expected from a program and what the correct response should be. An interpreted language provides branching and high-level control structures to direct the dialogue. In addition, the user can take control and interact directly when desired, afterward returning control to the script.
Edit: Looking at the screenshot it's asking you to "press ENTER to continue" which I don't see in your script. You have send "\r"
but that's not normally what Enter sends. On Windows it would send /r/n
and on Linux it sends /n
. Give that a try.
Conda - Silently installing a package
Used $conda install -y pandas
and it installed without any prompts (see documentation).
Install Anaconda on Ubuntu (or Linux) via command line
Something along the lines of:
wget https://repo.anaconda.com/archive/Anaconda3-2020.07-Linux-x86_64.sh
to get the installer for 64 bit linux followed by:
bash Anaconda3-2020.07-Linux-x86_64.sh
You can get the latest release from here
How to run Conda?
It turns out that I had not set the path.
To do so, I first had to edit .bash_profile (I downloaded it to my local desktop to do that, I do not know how to text edit a file from linux)
Then add this to .bash_profile:
PATH=$PATH:$HOME/anaconda/bin
Anaconda vs. miniconda
The difference is that miniconda is just shipping the repository management system. So when you install it there is just the management system without packages. Whereas with Anaconda, it is like a distribution with some built in packages.
Like with any Linux distribution, there are some releases which bundles lots of updates for the included packages. That is why there is a difference in version numbering. If you only decide to upgrade Anaconda, you are updating a whole system.
EDIT there are new options now for on the package management side. mamba
can be used as a drop in replacement for conda
. It has a faster solver and is a complete re-write in C++. The solver is actually experimentally available in conda
with --experimental-solver=libmamba
. Keywords to look for if you want to learn more: mamba
, mambaforge
, micromamba
.
How to use Conda in Bash
you will probably have to add conda to your system´s variable path:
go to your home directory:
cd
open the .bashrc :
nano .bashrc
type :
export PATH="/PathOfYours/miniconda3/bin:$PATH"
safe the .bashrc file
Now try again in the terminal:
conda --version
that should do the trick now!
for more info:
https://developers.google.com/earth-engine/guides/python_install-conda#mac_3
Related Topics
Sorting Scientific Number with Unix Sort
Android Studio 2.3 Using Emulator from Console, "/Dev/Kvm Device: Permission Denied" for Root User
Weird Sigsegv Segmentation Fault in Std::String::Assign() Method from Libstdc++.So.6
How to Use Expect with Optional Prompts
Bash VS Csh VS Others - Which Is Better for Application Maintenance
How to Sort Files Numerically from Linux Command Line
Thread Utilization Profiling on Linux
Packet Mangling Utilities Besides Iptables
Percentage Value with Gnu Diff
How to Communicate with a Linux Kernel Module from User Space Without Littering /Dev with New Nodes
Gzip Multiple Files Individually and Keep the Original Files
Sort Logfile by Timestamp on Linux Command Line
How to Replace All Lines Between Two Points and Subtitute It with Some Text in Sed
Setitimer, Sigalrm & Multithread Process (Linux, C)
Syntax Error: End of File Unexpected (Expecting "Then")
Renaming Lots of Files in Linux According to a Pattern
Bash Script to Detect When My Usb Is Plugged in and to Then Sync It with a Directory