Skip to main content

repocache

Universal caching and proxying repository server for pypi/maven/npm/yum/rustup, speedup local using.

3.5, 3.6, 3.7, 3.8 main workflow

How to startup?

pip install repocache

python -m repocache.main -f default.cfg
# listen at 0.0.0.0:5000

How to use repocache as YUM repository?

cd /etc/yum.repos.d

# base
curl -O http://192.168.1.2:5000/centos/huawei/Centos-7.repo
# sclo
curl -O http://192.168.1.2:5000/centos/sclo/Centos-7.repo

yum makecache

How to use repocache as NPM repository?

npm config set registry https://127.0.0.1:5000/npm/default/
npm config set prefix=$HOME/.node_modules_global
npm --verbose install smallest-png@2.0.0 -g

NPM Search is support.

How to use repocache as MVN repository?

Change $HOME/.m2/settings.xml as:

<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://maven.apache.org/SETTINGS/1.0.0"
    xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
    <profiles>
        <profile>
            <id>repocache</id>
            <repositories>
                <repository>
                    <id>repocache</id>
                    <url>http://127.0.0.1:5000/mvn/default/</url>
                </repository>
                <repository>
                    <id>jitpack.io</id>
                    <url>http://127.0.0.1:5000/mvn/jitpack/</url>
                </repository>
            </repositories>
        </profile>
    </profiles>
    <activeProfiles>
        <activeProfile>repocache</activeProfile>
    </activeProfiles>
    <mirrors>
        <mirror>
            <id>repocache</id>
            <url>http://127.0.0.1:5000/mvn/default/</url>
            <mirrorOf>central</mirrorOf>
        </mirror>
    </mirrors>
</settings>
cd /path/to/java-project
mvn install

How to use repocache as PIP repository?

Simply install in shell:

pip install -i http://127.0.0.1:5000/pypi/simple --trusted-host=127.0.0.1:5000 click==7.1.2

Or change $HOME/.pip/pip.conf as:

[global]
trusted-host=127.0.0.1:5000
index-url=http://127.0.0.1:5000/pypi/simple

How to use repocache as Rustup?

export RUSTUP_DIST_SERVER=http://127.0.0.1:5000/rust/default

curl http://127.0.0.1:5000/rust/rustup.sh | sh

Settting file

See default.cfg

Open source

This repository was copy from pypicache early, but fully rewrite later. PR wellcome.

Release files for repocache 0.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for repocache 0.3.3
File Size Uploaded
repocache-0.3.3.tar.gz 12.0 kB Details

Release files / repocache-0.3.3.tar.gz

Download URL repocache-0.3.3.tar.gz
Size 12.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b5fa74ebe9ac98054c36036f60e4bf7259358c73562513ba1fda78cafc2e31d5
BLAKE2b-256 checksum
How to use checksums
cdc126d0288c11cf6017c15fa8ee332bdb978ee3c25dbdd3e520aa1a43cdf20a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1

Release history Release notifications | RSS feed

This release

0.3.3 This release

1 release file

0.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page