Kubo: IPFS Implementation in GO
The first implementation of IPFS.
What is Kubo?
Kubo was the first IPFS implementation and is the most widely used one today. Implementing the Interplanetary Filesystem - the Web3 standard for content-addressing, interoperable with HTTP. Thus powered by IPLD's data models and the libp2p for network communication. Kubo is written in Go.
Featureset
- Runs an IPFS-Node as a network service that is part of LAN and WAN DHT
-
HTTP Gateway (
/ipfs
and/ipns
) functionality for trusted and trustless content retrieval -
HTTP Routing V1 (
/routing/v1
) client and server implementation for delegated routing lookups -
HTTP Kubo RPC API (
/api/v0
) to access and control the daemon -
Command Line Interface based on (
/api/v0
) RPC API - WebUI to manage the Kubo node
- Content blocking support for operators of public nodes
Other implementations
See List
What is IPFS?
IPFS is a global, versioned, peer-to-peer filesystem. It combines good ideas from previous systems such as Git, BitTorrent, Kademlia, SFS, and the Web. It is like a single BitTorrent swarm, exchanging git objects. IPFS provides an interface as simple as the HTTP web, but with permanence built-in. You can also mount the world at /ipfs.
For more info see: https://docs.ipfs.tech/concepts/what-is-ipfs/
Before opening an issue, consider using one of the following locations to ensure you are opening your thread in the right place:
- kubo (previously named go-ipfs) implementation bugs in this repo.
- Documentation issues in ipfs/docs issues.
- IPFS design in ipfs/specs issues.
- Exploration of new ideas in ipfs/notes issues.
- Ask questions and meet the rest of the community at the IPFS Forum.
- Or chat with us.
Next milestones
Table of Contents
- What is Kubo?
- What is IPFS?
- Next milestones
- Table of Contents
- Security Issues
- Minimal System Requirements
- Install
- Getting Started
- Packages
- Development
- Maintainer Info
- Contributing
- License
Security Issues
Please follow SECURITY.md
.
Minimal System Requirements
IPFS can run on most Linux, macOS, and Windows systems. We recommend running it on a machine with at least 4 GB of RAM and 2 CPU cores (kubo is highly parallel). On systems with less memory, it may not be completely stable, and you run on your own risk.
Install
The canonical download instructions for IPFS are over at: https://docs.ipfs.tech/install/. It is highly recommended you follow those instructions if you are not interested in working on IPFS development.
Docker
Official images are published at https://hub.docker.com/r/ipfs/kubo/:
-
🟢 Releases-
latest
andrelease
tags always point at the latest stable release -
vN.N.N
points at a specific release tag - These are production grade images.
-
-
🟠 We also provide experimental developer builds-
master-latest
always points at theHEAD
of themaster
branch -
master-YYYY-DD-MM-GITSHA
points at a specific commit from themaster
branch - These tags are used by developers for internal testing, not intended for end users or production use.
-
$ docker pull ipfs/kubo:latest
$ docker run --rm -it --net=host ipfs/kubo:latest
To customize your node,
pass necessary config via -e
or by mounting scripts in the /container-init.d
.
Learn more at https://docs.ipfs.tech/install/run-ipfs-inside-docker/
Official prebuilt binaries
The official binaries are published at https://dist.ipfs.tech#kubo:
From there:
- Click the blue "Download Kubo" on the right side of the page.
- Open/extract the archive.
- Move kubo (
ipfs
) to your path (install.sh
can do it for you).
If you are unable to access dist.ipfs.tech, you can also download kubo (go-ipfs) from:
Updating
Using ipfs-update
IPFS has an updating tool that can be accessed through ipfs update
. The tool is
not installed alongside IPFS in order to keep that logic independent of the main
codebase. To install ipfs-update
tool, download it here.
Downloading builds using IPFS
List the available versions of Kubo (go-ipfs) implementation:
$ ipfs cat /ipns/dist.ipfs.tech/kubo/versions
Then, to view available builds for a version from the previous command ($VERSION
):
$ ipfs ls /ipns/dist.ipfs.tech/kubo/$VERSION
To download a given build of a version:
$ ipfs get /ipns/dist.ipfs.tech/kubo/$VERSION/kubo_$VERSION_darwin-386.tar.gz # darwin 32-bit build
$ ipfs get /ipns/dist.ipfs.tech/kubo/$VERSION/kubo_$VERSION_darwin-amd64.tar.gz # darwin 64-bit build
$ ipfs get /ipns/dist.ipfs.tech/kubo/$VERSION/kubo_$VERSION_freebsd-amd64.tar.gz # freebsd 64-bit build
$ ipfs get /ipns/dist.ipfs.tech/kubo/$VERSION/kubo_$VERSION_linux-386.tar.gz # linux 32-bit build
$ ipfs get /ipns/dist.ipfs.tech/kubo/$VERSION/kubo_$VERSION_linux-amd64.tar.gz # linux 64-bit build
$ ipfs get /ipns/dist.ipfs.tech/kubo/$VERSION/kubo_$VERSION_linux-arm.tar.gz # linux arm build
$ ipfs get /ipns/dist.ipfs.tech/kubo/$VERSION/kubo_$VERSION_windows-amd64.zip # windows 64-bit build
Unofficial Linux packages
Arch Linux
# pacman -S kubo
Gentoo Linux
https://wiki.gentoo.org/wiki/Kubo
# emerge -a net-p2p/kubo
https://packages.gentoo.org/packages/net-p2p/kubo
Nix
With the purely functional package manager Nix you can install kubo (go-ipfs) like this:
$ nix-env -i kubo
You can also install the Package by using its attribute name, which is also kubo
.
Solus
$ sudo eopkg install kubo
You can also install it through the Solus software center.
openSUSE
Guix
Community Package for go-ipfs is no out-of-date.
Snap
No longer supported, see rationale in kubo#8688.
Ubuntu PPA
PPA homepage on Launchpad.
Latest Ubuntu (>= 20.04 LTS)
sudo add-apt-repository ppa:twdragon/ipfs
sudo apt update
sudo apt install ipfs-kubo