{"id":26122025,"url":"https://github.com/ipfs-shipyard/apt-on-ipfs","last_synced_at":"2025-04-13T13:06:33.241Z","repository":{"id":66214297,"uuid":"176995796","full_name":"ipfs-shipyard/apt-on-ipfs","owner":"ipfs-shipyard","description":"A Docker image that installs ubuntu packages via IPFS","archived":false,"fork":false,"pushed_at":"2019-03-27T15:44:41.000Z","size":7,"stargazers_count":19,"open_issues_count":0,"forks_count":0,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-13T13:06:27.999Z","etag":null,"topics":["apt","docker","ipfs","mirror"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/ipfs-shipyard.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":"2019-03-21T17:44:14.000Z","updated_at":"2024-08-20T23:45:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"21fa44bd-5ab2-4300-b449-75bb37f6f876","html_url":"https://github.com/ipfs-shipyard/apt-on-ipfs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipfs-shipyard%2Fapt-on-ipfs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipfs-shipyard%2Fapt-on-ipfs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipfs-shipyard%2Fapt-on-ipfs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipfs-shipyard%2Fapt-on-ipfs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ipfs-shipyard","download_url":"https://codeload.github.com/ipfs-shipyard/apt-on-ipfs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248717242,"owners_count":21150389,"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":["apt","docker","ipfs","mirror"],"created_at":"2025-03-10T14:38:07.672Z","updated_at":"2025-04-13T13:06:33.235Z","avatar_url":"https://github.com/ipfs-shipyard.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IPFS apt mirror\n\nA docker image that installs ubuntu packages via IPFS rather than using http to talk to a mirror\n\nFull credit to https://github.com/JaquerEspeis/apt-transport-ipfs for laying the ground work for this.\n\nSee the [Dockerfile](Dockerfile) for a breakdown of how it works, and [sources.list](sources.list) for the current IPFS hash of the mirror.\n\nRun it with the following commands, may take a few minutes depending on how many nodes are connected\n\n```shell\ngit clone https://github.com/andrew/apt-on-ipfs\ncd apt-on-ipfs\ndocker build .\n```\n\n## Running your own mirror\n\nNote: This requires ~2.5TB of free disk space and over 36 hours to complete the first time, subsequent runs take ~3 hours.\n\nInitial setup commands, run once:\n\n```shell\n\napt-get update\napt-get install -y git wget\n\nwget https://dist.ipfs.io/go-ipfs/v0.4.19/go-ipfs_v0.4.19_linux-amd64.tar.gz\ntar xvfz go-ipfs_v0.4.19_linux-amd64.tar.gz\nmv go-ipfs/ipfs /usr/local/bin/ipfs\n\nmkdir -p /data/apt\n\nexport IPFS_PATH=/data/.ipfs\n\nipfs init\n```\n\nMirroring commands, can be ran repeatedly to keep up to date:\n\n```shell\nrsync -q --recursive --times --links --safe-links --hard-links --exclude \"Packages*\" --exclude \"Sources*\" --exclude \"Release*\" --exclude \"InRelease\" rsync://archive.ubuntu.com/ubuntu /data/apt/\n\nrsync -q --recursive --times --links --safe-links --hard-links --delete --delete-after rsync://archive.ubuntu.com/ubuntu /data/apt/\n\nexport IPFS_PATH=/data/.ipfs\n\nhash=\"$(ipfs add -r --quieter --raw-leaves /data/apt | tail -n1)\"\n\nipfs name publish \"$hash\"\n```\n\nThe first time you run the mirroring commands, a new [IPNS](https://docs.ipfs.io/guides/concepts/ipns/) will be output, update [sources.list](sources.list) with your IPNS and then after each sync that IPNS will be updated to point to the latest IPFS hash of the mirror.\n\nYou may wish to pick a different ubuntu mirror that is geographically closer to your server for faster rsyncing: https://launchpad.net/ubuntu/+archivemirrors\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipfs-shipyard%2Fapt-on-ipfs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fipfs-shipyard%2Fapt-on-ipfs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipfs-shipyard%2Fapt-on-ipfs/lists"}