text: user1075: I searched for the package 'snakemake' on my SLURM cluster using:
  conda search --channel bioconda snakemake
  and I get many versions, up to 5.4.2.
  I then try to install it using:
  conda install --channel bioconda --yes snakemake=5.4.2
  but it fails with the following message:
  PackagesNotFoundError: The following packages are not available from current channels:
  
    - snakemake
  
  Current channels:
  
    - https://repo.anaconda.com/pkgs/main/linux-64
    - https://repo.anaconda.com/pkgs/main/noarch
    - https://repo.anaconda.com/pkgs/free/linux-64
    - https://repo.anaconda.com/pkgs/free/noarch
    - https://repo.anaconda.com/pkgs/r/linux-64
    - https://repo.anaconda.com/pkgs/r/noarch
    - https://repo.anaconda.com/pkgs/pro/linux-64
    - https://repo.anaconda.com/pkgs/pro/noarch
  
  Why?
  Why is the bioconda channel not included in the current channels? I thought that was what the --channel bioconda did in my install command.
  Note that conda install --channel bioconda --yes samtools=1.9 worked fine and installed samtools successfully.
  
  user1075: I created a file .condarc in my home directory with the following content:
  channels:
    - conda-forge
    - bioconda
    - defaults
  
  and it works now. I don't understand why this is necessary though. I thought the channels in the .condarc file would be used if I did not specify them in my command.
  
original_text: 1075: <p>I searched for the package 'snakemake' on my SLURM cluster using:</p>
  
  <p><code>conda search --channel bioconda snakemake</code></p>
  
  <p>and I get many versions, up to 5.4.2.</p>
  
  <p>I then try to install it using:</p>
  
  <p><code>conda install --channel bioconda --yes snakemake=5.4.2</code></p>
  
  <p>but it fails with the following message:</p>
  
  <pre><code>PackagesNotFoundError: The following packages are not available from current channels:
  
    - snakemake
  
  Current channels:
  
    - https://repo.anaconda.com/pkgs/main/linux-64
    - https://repo.anaconda.com/pkgs/main/noarch
    - https://repo.anaconda.com/pkgs/free/linux-64
    - https://repo.anaconda.com/pkgs/free/noarch
    - https://repo.anaconda.com/pkgs/r/linux-64
    - https://repo.anaconda.com/pkgs/r/noarch
    - https://repo.anaconda.com/pkgs/pro/linux-64
    - https://repo.anaconda.com/pkgs/pro/noarch
  </code></pre>
  
  <p>Why?</p>
  
  <p>Why is the bioconda channel not included in the current channels? I thought that was what the <code>--channel bioconda</code> did in my install command.</p>
  
  <p>Note that <code>conda install --channel bioconda --yes samtools=1.9</code> worked fine and installed samtools successfully.</p>
   1075: <p>I created a file .condarc in my home directory with the following content:</p>
  
  <pre><code>channels:
    - conda-forge
    - bioconda
    - defaults
  </code></pre>
  
  <p>and it works now. I don't understand why this is necessary though. I thought the channels in the .condarc file would be used if I did not specify them in my command.</p>
  