{"id":20219940,"url":"https://github.com/antonilol/pacman-cache-server","last_synced_at":"2026-05-08T21:34:18.517Z","repository":{"id":109619239,"uuid":"466581461","full_name":"antonilol/pacman-cache-server","owner":"antonilol","description":"Caching pacman mirror for faster downloads at home","archived":false,"fork":false,"pushed_at":"2022-03-19T08:58:07.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-03T11:45:24.111Z","etag":null,"topics":["archlinux","cache","http-server","mirror","pacman","server","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/antonilol.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-05T22:26:52.000Z","updated_at":"2024-02-16T10:38:59.000Z","dependencies_parsed_at":"2023-03-24T20:01:44.948Z","dependency_job_id":null,"html_url":"https://github.com/antonilol/pacman-cache-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/antonilol/pacman-cache-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonilol%2Fpacman-cache-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonilol%2Fpacman-cache-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonilol%2Fpacman-cache-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonilol%2Fpacman-cache-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antonilol","download_url":"https://codeload.github.com/antonilol/pacman-cache-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonilol%2Fpacman-cache-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32798454,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["archlinux","cache","http-server","mirror","pacman","server","typescript"],"created_at":"2024-11-14T06:44:21.166Z","updated_at":"2026-05-08T21:34:18.499Z","avatar_url":"https://github.com/antonilol.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pacman-cache-server\nCaching pacman mirror for faster downloads at home\n\n### Install from github\n\n```bash\ngit clone https://github.com/antonilol/pacman-cache-server.git\ncd pacman-cache-server\nnpm i\nnpm run build\n```\n\nCopy the sample config and edit it (optional)\n```bash\ncp config.sample.json config.json\n```\n\n### Install from AUR\n\nWith an AUR helper, for example `yay`\n```bash\nyay -S pacman-cache-server-git\n```\n\nThe config can be edited in `/usr/lib/pacman-cache-server-git/` and the server can be started with systemd with\n```\nsystemctl start pacman-cache-server\n```\n\n### Usage\n\nStart the server with\n```bash\nnpm run start\n```\n\nOn the clients, add\n```\nServer = http://\u003chost\u003e:\u003cport\u003e/$repo/os/$arch\n```\nat the top of `/etc/pacman.d/mirrorlist`\n\nReplace\n`\u003chost\u003e` with the IP address of your server (or `localhost` if you run it on the same machine) and\n`\u003cport\u003e` with the http port specified in `config.json` (default: 8080)\n\n\nThis server redirects all requests to the mirror specified in `config.json`\nand saves a local copy of the file in `cacheDir`.\nWhen the next time the same file is requested, instead of asking the mirror for it,\nthe local copy is given to the client.\n\nBy default, only `*.pkg.tar.zst` and `*.pkg.tar.zst.sig` are cached (this can be changed in `config.json`).\nIt is not recommended to include `*.db` here because the package database changes without the filename changing.\n\nTo not get your disk at 100% somewhere in the future you can schedule a cron job to run\n[pkgcacheclean](https://aur.archlinux.org/packages/pkgcacheclean) every week/month.\n(Requires `cacheDir` to be set at pacman's cache dir `/var/cache/pacman/pkg/`)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonilol%2Fpacman-cache-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantonilol%2Fpacman-cache-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonilol%2Fpacman-cache-server/lists"}