2015-06-06 11:05:21 +02:00
|
|
|
---
|
|
|
|
title: "Install"
|
|
|
|
description: "Rclone Installation"
|
2016-03-28 12:36:52 +02:00
|
|
|
date: "2016-03-28"
|
2016-04-18 19:55:07 +02:00
|
|
|
---
|
2015-06-06 11:05:21 +02:00
|
|
|
|
2016-10-06 18:20:45 +02:00
|
|
|
# Install #
|
2015-06-06 11:05:21 +02:00
|
|
|
|
|
|
|
Rclone is a Go program and comes as a single binary file.
|
|
|
|
|
2016-10-06 18:20:45 +02:00
|
|
|
## Quickstart ##
|
2015-06-06 11:05:21 +02:00
|
|
|
|
2016-10-06 18:20:45 +02:00
|
|
|
* [Download](/downloads/) the relevant binary.
|
|
|
|
* Unpack and the `rclone` binary.
|
2017-03-29 11:06:22 +02:00
|
|
|
* Run `rclone config` to setup. See [rclone config docs](/docs/) for more details.
|
2015-06-06 11:05:21 +02:00
|
|
|
|
2016-10-06 18:20:45 +02:00
|
|
|
See below for some expanded Linux / macOS instructions.
|
2015-06-14 16:04:39 +02:00
|
|
|
|
|
|
|
See the [Usage section](/docs/) of the docs for how to use rclone, or
|
2015-06-06 11:05:21 +02:00
|
|
|
run `rclone -h`.
|
2015-06-28 11:38:27 +02:00
|
|
|
|
2016-10-06 18:20:45 +02:00
|
|
|
## Linux installation from precompiled binary ##
|
|
|
|
|
|
|
|
Fetch and unpack
|
|
|
|
|
2017-03-29 11:06:22 +02:00
|
|
|
curl -O https://downloads.rclone.org/rclone-current-linux-amd64.zip
|
2016-10-06 18:20:45 +02:00
|
|
|
unzip rclone-current-linux-amd64.zip
|
|
|
|
cd rclone-*-linux-amd64
|
|
|
|
|
|
|
|
Copy binary file
|
2015-06-28 11:38:27 +02:00
|
|
|
|
2017-02-26 11:09:23 +01:00
|
|
|
sudo cp rclone /usr/bin/
|
|
|
|
sudo chown root:root /usr/bin/rclone
|
|
|
|
sudo chmod 755 /usr/bin/rclone
|
2016-10-06 18:20:45 +02:00
|
|
|
|
|
|
|
Install manpage
|
|
|
|
|
2015-06-28 11:38:27 +02:00
|
|
|
sudo mkdir -p /usr/local/share/man/man1
|
|
|
|
sudo cp rclone.1 /usr/local/share/man/man1/
|
|
|
|
sudo mandb
|
2016-07-09 14:47:55 +02:00
|
|
|
|
2017-03-29 11:06:22 +02:00
|
|
|
Run `rclone config` to setup. See [rclone config docs](/docs/) for more details.
|
2016-10-06 18:20:45 +02:00
|
|
|
|
|
|
|
rclone config
|
|
|
|
|
|
|
|
## macOS installation from precompiled binary ##
|
|
|
|
|
|
|
|
Download the latest version of rclone.
|
|
|
|
|
2017-03-29 11:06:22 +02:00
|
|
|
cd && curl -O https://downloads.rclone.org/rclone-current-osx-amd64.zip
|
2016-10-06 18:20:45 +02:00
|
|
|
|
|
|
|
Unzip the download and cd to the extracted folder.
|
|
|
|
|
|
|
|
unzip -a rclone-current-osx-amd64.zip && cd rclone-*-osx-amd64
|
|
|
|
|
|
|
|
Move rclone to your $PATH. You will be prompted for your password.
|
|
|
|
|
|
|
|
sudo mv rclone /usr/local/bin/
|
|
|
|
|
|
|
|
Remove the leftover files.
|
|
|
|
|
|
|
|
cd .. && rm -rf rclone-*-osx-amd64 rclone-current-osx-amd64.zip
|
|
|
|
|
2017-03-29 11:06:22 +02:00
|
|
|
Run `rclone config` to setup. See [rclone config docs](/docs/) for more details.
|
2016-10-06 18:20:45 +02:00
|
|
|
|
|
|
|
rclone config
|
|
|
|
|
|
|
|
## Install from source ##
|
|
|
|
|
2017-05-11 18:07:49 +02:00
|
|
|
Make sure you have at least [Go](https://golang.org/) 1.6 installed.
|
2016-10-06 18:20:45 +02:00
|
|
|
Make sure your `GOPATH` is set, then:
|
|
|
|
|
|
|
|
go get -u -v github.com/ncw/rclone
|
|
|
|
|
|
|
|
and this will build the binary in `$GOPATH/bin`. If you have built
|
|
|
|
rclone before then you will want to update its dependencies first with
|
|
|
|
this
|
|
|
|
|
|
|
|
go get -u -v github.com/ncw/rclone/...
|
|
|
|
|
|
|
|
## Installation with Ansible ##
|
2016-07-09 14:47:55 +02:00
|
|
|
|
|
|
|
This can be done with [Stefan Weichinger's ansible
|
|
|
|
role](https://github.com/stefangweichinger/ansible-rclone).
|
|
|
|
|
|
|
|
Instructions
|
|
|
|
|
|
|
|
1. `git clone https://github.com/stefangweichinger/ansible-rclone.git` into your local roles-directory
|
|
|
|
2. add the role to the hosts you want rclone installed to:
|
|
|
|
|
|
|
|
```
|
|
|
|
- hosts: rclone-hosts
|
|
|
|
roles:
|
|
|
|
- rclone
|
|
|
|
```
|
2017-02-10 02:33:53 +01:00
|
|
|
|
|
|
|
## Installation with snap ##
|
|
|
|
|
|
|
|
### Quickstart ###
|
|
|
|
|
|
|
|
* install Snapd on your distro using the instructions below
|
|
|
|
* sudo snap install rclone --classic
|
2017-03-29 11:06:22 +02:00
|
|
|
* Run `rclone config` to setup. See [rclone config docs](/docs/) for more details.
|
2017-02-10 02:33:53 +01:00
|
|
|
|
|
|
|
See below for how to install snapd if it isn't already installed
|
|
|
|
|
|
|
|
#### Arch ####
|
|
|
|
|
|
|
|
sudo pacman -S snapd
|
|
|
|
|
|
|
|
enable the snapd systemd service:
|
|
|
|
|
|
|
|
sudo systemctl enable --now snapd.socket
|
|
|
|
|
|
|
|
#### Debian / Ubuntu ####
|
|
|
|
|
|
|
|
sudo apt install snapd
|
|
|
|
|
|
|
|
#### Fedora ####
|
|
|
|
|
|
|
|
sudo dnf copr enable zyga/snapcore
|
|
|
|
sudo dnf install snapd
|
|
|
|
|
|
|
|
enable the snapd systemd service:
|
|
|
|
|
|
|
|
sudo systemctl enable --now snapd.service
|
|
|
|
|
|
|
|
SELinux support is in beta, so currently:
|
|
|
|
|
|
|
|
sudo setenforce 0
|
|
|
|
|
|
|
|
to persist, edit `/etc/selinux/config` to set `SELINUX=permissive` and reboot.
|
|
|
|
|
|
|
|
#### Gentoo ####
|
|
|
|
|
|
|
|
Install the [gentoo-snappy overlay](https://github.com/zyga/gentoo-snappy).
|
|
|
|
|
|
|
|
#### OpenEmbedded/Yocto ####
|
|
|
|
|
|
|
|
Install the [snap meta layer](https://github.com/morphis/meta-snappy/blob/master/README.md).
|
|
|
|
|
|
|
|
#### openSUSE ####
|
|
|
|
|
2017-03-29 14:38:34 +02:00
|
|
|
sudo zypper addrepo https://download.opensuse.org/repositories/system:/snappy/openSUSE_Leap_42.2/ snappy
|
2017-02-10 02:33:53 +01:00
|
|
|
sudo zypper install snapd
|
|
|
|
|
|
|
|
#### OpenWrt ####
|
|
|
|
|
|
|
|
Enable the snap-openwrt feed.
|