To install Cloud Storage FUSE for Ubuntu or Debian, follow the instructions below:
-
Add the Cloud Storage FUSE distribution URL as a package source and import its public key, or download the package directly from GitHub:
export GCSFUSE_REPO=gcsfuse-`lsb_release -c -s` echo "deb https://packages.cloud.google.com/apt $GCSFUSE_REPO main" | sudo tee /etc/apt/sources.list.d/gcsfuse.list curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
-
Update the list of packages available and install Cloud Storage FUSE:
sudo apt-get update sudo apt-get install gcsfuse
-
Cloud Storage FUSE updates can be installed by:
sudo apt-get update && sudo apt-get install –only-upgrade gcsfus
To install Cloud Storage FUSE for CentOS or Red Hat, follow the instructions below.
-
Configure the Cloud Storage FUSE repository and its associated public key:
sudo tee /etc/yum.repos.d/gcsfuse.repo > /dev/null <<EOF [gcsfuse] name=gcsfuse (packages.cloud.google.com) baseurl=https://packages.cloud.google.com/yum/repos/gcsfuse-el7-x86_64 enabled=1 gpgcheck=1 repo_gpgcheck=0 gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg EOF
-
Install Cloud Storage FUSE using the YUM Linux package manager:
sudo yum install gcsfuse
Be sure to answer "yes" to any questions about adding the GPG signing key.
To install Cloud Storage FUSE by building the binaries from source, follow the instructions below: Prerequisites:
-
Make sure you have a working Go installation, the newest version specified in go.mod. See Installing Go from source.
-
Fuse. See the instructions for the binary release above.
-
Make sure you have the Git command-line tool installed. This is probably available as git in your package manager.
-
To install or update Cloud Storage FUSE, run the following command
GO111MODULE=auto go get -u github.com/googlecloudplatform/gcsfuse
This will fetch the latest Cloud Storage FUSE sources to $GOPATH/src/github.com/googlecloudplatform/gcsfuse, build the sources, and then install a binary named gcsfuse to $GOPATH/bin.