Anaconda Repository production environments have the standard channels mirrored: anaconda, wakari, r, anaconda-adam.
If a user wants a package that is not available on these mirrored channels and does not want to mirror the entire channel locally, they can add the package to their local Anaconda Repository.
To add a new package to your local Anaconda Repository:
If an user is interested in a package called pyomo:
1. Go to Anaconda.org and search for the package. pyomo is found on various channels including conda-forge. Conda-forge is a community based collection of recipes and conda packages.
2. Look at the conda packages listed in specified channel: conda-forge/pyomo. To find out the dependencies of this package, click the (i) next to the package name.
The information for linux-64 package, linux-64/pyomo-5.1.1-py27_0.tar.bz2:
The dependency, pyutilib is not found in mirrored channels. It also needs to be mirrored.
3. Download pyomo and the pyutilib dependency on the AE-Repo server:
curl -LO https://beta.anaconda.org/conda-forge/pyomo/5.1.1/download/linux-64/pyomo-5.1.1-py27_0.tar.bz2
curl -LO https://beta.anaconda.org/conda-forge/pyutilib/5.4.1/download/linux-64/pyutilib-5.4.1-py27_0.tar.bz2
4. Create an organization on your local repo. TIP: Giving it the same name conda-forge will make it easy to track the packages.
5. Set anaconda-client to point to your local repo:
anaconda config --set url http://your-local-repo:8080/api -s
NOTE: The user must belong to the owner's organization.
Upload packages to the organization:
anaconda upload -u conda-forge < pkg>
anaconda upload -u conda-forge pyomo
anaconda upload -u conda-forge pyutillib
6. See the instructions for installing packages at: http://your-local-repo:8080/conda-forge/pyomo.
MORE INFO: See the documentation on how to make packages private and control access.