Giter Site home page Giter Site logo

apt-transport-ipfs's Introduction

IPFS transport for apt

Requirements

sudo apt install python3-pip git
sudo pip3 install ipfshttpclient
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.

apt-transport-ipfs's People

Contributors

rngkll avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.