2018-02-20 21:15:23 +00:00
|
|
|
IPFS transport for apt
|
|
|
|
|
|
|
|
# Requirements
|
|
|
|
|
|
|
|
sudo apt install python-pip git gzip wget
|
|
|
|
sudo pip install ipfsapi
|
|
|
|
|
2018-02-21 16:26:24 +00:00
|
|
|
# Try IPFS-Repo's:
|
|
|
|
insted of install ipfs and /usr/lib/apt/methods/ipfs you can test it via public gateways
|
|
|
|
|
2018-10-02 15:55:10 +00:00
|
|
|
add deb https://ipfs.io/ipns/QmXfAyjHThwksUyW9BwuqCDuzu1PM1XQkR1HVTbActvYDJ bionic main restricted universe multiverse
|
2018-02-21 16:26:24 +00:00
|
|
|
|
|
|
|
to the /etc/apt/sources.list
|
|
|
|
|
|
|
|
but dont use this for general purpose -> the gateways are elseware heavely out of bandwith!
|
|
|
|
|
2018-02-20 21:15:23 +00:00
|
|
|
# Install
|
|
|
|
|
|
|
|
Copy the ipfs file from this repo to the directory for apt transport methods:
|
|
|
|
|
|
|
|
git clone https://github.com/6543/apt-transport-ipfs
|
|
|
|
cd apt-transport-ipfs/client
|
|
|
|
sudo cp ipfs /usr/lib/apt/methods/ipfs
|
|
|
|
|
|
|
|
Use the instruktions from https://github.com/6543/ipfs_daemon/blob/master/setup-ipfs-daemon to start ipfs on boot
|
|
|
|
|
|
|
|
# Configure
|
|
|
|
|
|
|
|
Add an IPFS mirror to your apt sources.list file.
|
|
|
|
|
|
|
|
Backup your /etc/apt/sources.list, remove all the lines that it has and leave it
|
|
|
|
just with:
|
|
|
|
|
|
|
|
#archive.ubuntu.com
|
2018-10-02 15:55:10 +00:00
|
|
|
deb ipfs:/ipns/QmXfAyjHThwksUyW9BwuqCDuzu1PM1XQkR1HVTbActvYDJ bionic main restricted universe multiverse
|
|
|
|
deb ipfs:/ipns/QmXfAyjHThwksUyW9BwuqCDuzu1PM1XQkR1HVTbActvYDJ bionic-security main restricted universe multiverse
|
|
|
|
deb ipfs:/ipns/QmXfAyjHThwksUyW9BwuqCDuzu1PM1XQkR1HVTbActvYDJ bionic-updates main restricted universe multiverse
|
|
|
|
deb-src ipfs:/ipns/QmXfAyjHThwksUyW9BwuqCDuzu1PM1XQkR1HVTbActvYDJ bionic main restricted universe multiverse
|
|
|
|
deb-src ipfs:/ipns/QmXfAyjHThwksUyW9BwuqCDuzu1PM1XQkR1HVTbActvYDJ bionic-security main restricted universe multiverse
|
|
|
|
deb-src ipfs:/ipns/QmXfAyjHThwksUyW9BwuqCDuzu1PM1XQkR1HVTbActvYDJ bionic-updates main restricted universe multiverse
|
2018-02-20 21:15:23 +00:00
|
|
|
|
|
|
|
#archive.canonical.com
|
2018-10-02 15:55:10 +00:00
|
|
|
deb ipfs:/ipns/QmUajtQCL6yHcBaYxsZKyD8QH7n977ZVxjU5yMXwYC183c bionic partner
|
|
|
|
deb-src ipfs:/ipns/QmUajtQCL6yHcBaYxsZKyD8QH7n977ZVxjU5yMXwYC183c bionic partner
|
2018-02-22 15:49:19 +00:00
|
|
|
|