Let’s first start by checking if conda is installed.

conda --version

Once it has been confirmed that conda has been installed, we will now make sure that it is up to date.

conda update conda

Conda will compare versions and let you know what is available to install. It will also tell you about other packages that will be automatically updated or changed with the update. If there are newer version available, follow the instruction to install the newest version of conda.

TIPS: To see the full documentation for any command, type the command followed by –help. For example, to learn about the conda update command:

conda update --help

If you faced the error below:

EnvironmentNotWritableError: The current user does not have write permissions to the target environment.
  environment location: /opt/miniconda3
  uid: 1000
  gid: 1000

try to use sudo