This repository has been archived on 2019-09-18. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
2017-12-03 18:27:38 +00:00
.gitignore Initial commit 2017-12-02 20:24:28 -06:00
ipfs remove the hardcoded download 2017-12-03 18:12:32 +00:00
LICENSE Initial commit 2017-12-02 20:24:28 -06:00
README.md add hacky testing instructions, while we get a mirror 2017-12-03 18:27:38 +00:00

IPFS transport for apt

Requirements

sudo apt install python3 pip
sudo pip3 install ipfsapi
sudo snap install ipfs
ipfs init
ipfs daemon &

Install

Copy the ipfs file from this repo to the directory for apt transport methods:

sudo wget --output-document /usr/lib/apt/methods/ipfs https://raw.githubusercontent.com/JaquerEspeis/apt-transport-ipfs/master/ipfs
sudo chmod +x /usr/lib/apt/methods/ipfs

Configure

Add an IPFS mirror to your apt sources.list file. TODO set up a mirror.

Hacky local test

While we set up a proper IPFS mirror, this can be tested by adding a bunch of files:

cd ~
mkdir --parents test-archive/dists/xenial/
cd test-archive/dists/xenial
wget http://archive.ubuntu.com/ubuntu/dists/xenial/InRelease
wget http://archive.ubuntu.com/ubuntu/dists/xenial/Release
ipfs add --recursive ~/test-archive

The last line that this command returns will be something like:

added {hash} test-archive

Now, add that hash to /etc/apt/source.list with the following form:

deb ipfs://{hash} xenial main