Configure Your Package Manager

Point your package manager to this proxy to cache downloads and improve reliability.

npm npm JavaScript
/npm/

Configure npm to use the proxy:

# In ~/.npmrc or project .npmrc
registry=https://pkgs.freds.help/npm/

# Or via environment variable
npm_config_registry=https://pkgs.freds.help/npm/ npm install
cargo Cargo Rust
/cargo/

Configure Cargo to use the proxy (sparse index protocol):

# In ~/.cargo/config.toml or project .cargo/config.toml
[source.crates-io]
replace-with = "proxy"

[source.proxy]
registry = "sparse+https://pkgs.freds.help/cargo/"
gem RubyGems Ruby
/gem/

Configure Bundler/RubyGems to use the proxy:

# In Gemfile
source "https://pkgs.freds.help/gem"

# Or configure globally
gem sources --add https://pkgs.freds.help/gem/
bundle config mirror.https://rubygems.org https://pkgs.freds.help/gem
go Go Modules Go
/go/

Set the GOPROXY environment variable:

export GOPROXY=https://pkgs.freds.help/go,direct

# Add to your shell profile for persistence
hex Hex Elixir
/hex/

Configure Hex to use the proxy:

# In ~/.hex/hex.config
{default_url, <<"https://pkgs.freds.help/hex">>}.

# Or via environment variable
export HEX_MIRROR=https://pkgs.freds.help/hex
pub pub.dev Dart/Flutter
/pub/

Set the PUB_HOSTED_URL environment variable:

export PUB_HOSTED_URL=https://pkgs.freds.help/pub
pypi PyPI Python
/pypi/

Configure pip to use the proxy:

# Via command line
pip install --index-url https://pkgs.freds.help/pypi/simple/ package_name

# In ~/.pip/pip.conf
[global]
index-url = https://pkgs.freds.help/pypi/simple/
maven Maven Java
/maven/

Configure Maven to use the proxy:

<!-- In ~/.m2/settings.xml -->
<settings>
  <mirrors>
    <mirror>
      <id>proxy</id>
      <mirrorOf>central</mirrorOf>
      <url>https://pkgs.freds.help/maven/</url>
    </mirror>
  </mirrors>
</settings>
nuget NuGet .NET
/nuget/

Configure NuGet to use the proxy:

<!-- In nuget.config -->
<configuration>
  <packageSources>
    <clear />
    <add key="proxy" value="https://pkgs.freds.help/nuget/v3/index.json" />
  </packageSources>
</configuration>

# Or via CLI
dotnet nuget add source https://pkgs.freds.help/nuget/v3/index.json -n proxy
composer Composer PHP
/composer/

Configure Composer to use the proxy:

// In composer.json
{
    "repositories": [
        {
            "type": "composer",
            "url": "https://pkgs.freds.help/composer"
        }
    ]
}

# Or globally
composer config -g repositories.proxy composer https://pkgs.freds.help/composer
conan Conan C/C++
/conan/

Configure Conan to use the proxy:

conan remote add proxy https://pkgs.freds.help/conan
conan remote disable conancenter
conda Conda Python/R
/conda/

Configure Conda to use the proxy:

# In ~/.condarc
channels:
  - https://pkgs.freds.help/conda/main
  - https://pkgs.freds.help/conda/conda-forge
default_channels:
  - https://pkgs.freds.help/conda/main

# Or via command
conda config --add channels https://pkgs.freds.help/conda/main
cran CRAN R
/cran/

Configure R to use the proxy:

# In R session
options(repos = c(CRAN = "https://pkgs.freds.help/cran"))

# In ~/.Rprofile for persistence
local({
  r <- getOption("repos")
  r["CRAN"] <- "https://pkgs.freds.help/cran"
  options(repos = r)
})
container Container Registry Docker/OCI
/v2/

Configure Docker to use the proxy as a mirror:

# In /etc/docker/daemon.json
{
  "registry-mirrors": ["https://pkgs.freds.help"]
}

# Then restart Docker
sudo systemctl restart docker

# Or pull directly
docker pull pkgs.freds.help/library/nginx:latest
debian Debian/APT Debian/Ubuntu
/debian/

Configure APT to use the proxy:

# In /etc/apt/sources.list or /etc/apt/sources.list.d/proxy.list
deb https://pkgs.freds.help/debian stable main contrib

# Replace your existing sources.list entries with the proxy URL
# Then run:
sudo apt update
rpm RPM/Yum Fedora/RHEL
/rpm/

Configure yum/dnf to use the proxy:

# In /etc/yum.repos.d/proxy.repo
[proxy-fedora]
name=Fedora via Proxy
baseurl=https://pkgs.freds.help/rpm/releases/$releasever/Everything/$basearch/os/
enabled=1
gpgcheck=0

# Then run:
sudo dnf clean all
sudo dnf update

Need Help?

After configuring your package manager, install packages as usual. The proxy will automatically cache them. Check the dashboard to see cached packages.