{"id":15290824,"url":"https://github.com/pedia/repocache","last_synced_at":"2025-04-13T10:12:25.230Z","repository":{"id":52726299,"uuid":"336484824","full_name":"pedia/repocache","owner":"pedia","description":"Proxy Cache remote pypi/maven/npm/rustup/yum repository ","archived":false,"fork":false,"pushed_at":"2021-04-20T02:57:23.000Z","size":282,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T01:35:53.280Z","etag":null,"topics":["maven","npm","pip","proxy","rustup-mirror","yum"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pedia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-06T07:51:24.000Z","updated_at":"2023-08-16T18:59:27.000Z","dependencies_parsed_at":"2022-08-22T12:41:27.772Z","dependency_job_id":null,"html_url":"https://github.com/pedia/repocache","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedia%2Frepocache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedia%2Frepocache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedia%2Frepocache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedia%2Frepocache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pedia","download_url":"https://codeload.github.com/pedia/repocache/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248695482,"owners_count":21146956,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["maven","npm","pip","proxy","rustup-mirror","yum"],"created_at":"2024-09-30T16:09:38.519Z","updated_at":"2025-04-13T10:12:25.201Z","avatar_url":"https://github.com/pedia.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# repocache\nUniversal caching and proxying repository server for pypi/maven/npm/yum/rustup, speedup local using.\n\nSpecially used in slow internet connection or intranet.\n\nPython 3.5, 3.6, 3.7, 3.8 ![main workflow](https://github.com/pedia/repocache/actions/workflows/main.yml/badge.svg)\n\n## How to startup?\n```bash\npip install repocache\n\npython -m repocache.main -f default.cfg\n# listen at 0.0.0.0:5000\n```\n\n## How to use repocache as YUM repository?\n```bash\ncd /etc/yum.repos.d\n\n# base\ncurl -O http://192.168.1.2:5000/centos/huawei/Centos-7.repo\n# sclo\ncurl -O http://192.168.1.2:5000/centos/sclo/Centos-7.repo\n\nyum makecache\n```\n\n## How to use repocache as NPM repository?\n```bash\nnpm config set registry https://127.0.0.1:5000/npm/default/\nnpm config set prefix=$HOME/.node_modules_global\nnpm --verbose install smallest-png@2.0.0 -g\n```\n\nNPM Search is support.\n\n## How to use repocache as MVN repository?\n\nChange $HOME/.m2/settings.xml as:\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003csettings xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n    xmlns=\"http://maven.apache.org/SETTINGS/1.0.0\"\n    xsi:schemaLocation=\"http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd\"\u003e\n    \u003cprofiles\u003e\n        \u003cprofile\u003e\n            \u003cid\u003erepocache\u003c/id\u003e\n            \u003crepositories\u003e\n                \u003crepository\u003e\n                    \u003cid\u003erepocache\u003c/id\u003e\n                    \u003curl\u003ehttp://127.0.0.1:5000/mvn/default/\u003c/url\u003e\n                \u003c/repository\u003e\n                \u003crepository\u003e\n                    \u003cid\u003ejitpack.io\u003c/id\u003e\n                    \u003curl\u003ehttp://127.0.0.1:5000/mvn/jitpack/\u003c/url\u003e\n                \u003c/repository\u003e\n            \u003c/repositories\u003e\n        \u003c/profile\u003e\n    \u003c/profiles\u003e\n    \u003cactiveProfiles\u003e\n        \u003cactiveProfile\u003erepocache\u003c/activeProfile\u003e\n    \u003c/activeProfiles\u003e\n    \u003cmirrors\u003e\n        \u003cmirror\u003e\n            \u003cid\u003erepocache\u003c/id\u003e\n            \u003curl\u003ehttp://127.0.0.1:5000/mvn/default/\u003c/url\u003e\n            \u003cmirrorOf\u003ecentral\u003c/mirrorOf\u003e\n        \u003c/mirror\u003e\n    \u003c/mirrors\u003e\n\u003c/settings\u003e\n```\n\n```shell\ncd /path/to/java-project\nmvn install\n```\n\n\n\n## How to use repocache as PIP repository?\nSimply install in shell:\n```bash\npip install -i http://127.0.0.1:5000/pypi/simple --trusted-host=127.0.0.1:5000 click==7.1.2\n```\n\nOr change $HOME/.pip/pip.conf as:\n```\n[global]\ntrusted-host=127.0.0.1:5000\nindex-url=http://127.0.0.1:5000/pypi/simple\n```\n\n## How to use repocache as Rustup repository?\n```bash\nexport RUSTUP_DIST_SERVER=http://127.0.0.1:5000/rust/default\n\ncurl http://127.0.0.1:5000/rust/rustup.sh | sh\n```\n\n\n## Settting file\nSee [default.cfg](default.cfg)\n\n\n## Open source\nThis repository was copy from pypicache early, but fully rewrite later.\nPR wellcome.\n\n# TODO:\n\nDownloaded: http://conjars.org/repo/org/pentaho/pentaho-aggdesigner/5.1.5-jhyde/pentaho-aggdesigner-5.1.5-jhyde.pom (8.6 kB at 16 kB/s)\nDownloaded: http://conjars.org/repo/org/pentaho/pentaho-aggdesigner-algorithm/5.1.5-jhyde/pentaho-aggdesigner-algorithm-5.1.5-jhyde.jar\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedia%2Frepocache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpedia%2Frepocache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedia%2Frepocache/lists"}