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
Leo Arias 5a7c0f0ec2
Replace mv with cp
As suggested by @rngkll.
2018-02-08 18:34:50 -06:00
scripts add a script to sync a mirror 2018-01-07 12:32:15 -06:00
.gitignore Initial commit 2017-12-02 20:24:28 -06:00
ipfs remove the unnecessary slashes 2017-12-06 21:45:54 +00:00
LICENSE Initial commit 2017-12-02 20:24:28 -06:00
README.md Replace mv with cp 2018-02-08 18:34:50 -06:00

IPFS transport for apt

Requirements

sudo apt install python3-pip git
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:

git clone https://github.com/JaquerEspeis/apt-transport-ipfs
cd apt-transport-ipfs
sudo cp ipfs /usr/lib/apt/methods/ipfs

Configure

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

Hacky test

While we set up a proper IPFS mirror, this can be tested by using a hardcoded IPFS hash that was manually set up to serve the hello deb.

Backup your /etc/apt/sources.list, remove all the lines that it has and leave it just with:

deb ipfs:/ipns/QmdyaTjqXayZVQULcEyHQFx6n76TrMBc5aEDCgvp5cUTEi xenial main

To test it, run:

sudo apt update
sudo apt install hello

This IPFS node is not permanent and will disappear. To set it up again, use the script in scripts/add_test_mirror.sh.

Made with 🌈 by JáquerEspeis.