How to install Resilio Sync on Linux using packages

As one of the most powerful P2P data distribution app, Sync from Resilio can be installed on a Linux OS using multiple install methods.

Today we are going to show you how to install Sync “the Linux way” – using packages and a tool such as “yum” to download and install the package.

To install the official Linux packages, you need to go through several steps:

  • Add the Resilio repository to your repo list.
  • Add the PGP public key to the list of trusted keys.
  • Install the Sync package.

 

Installing on Debian OS (Debian, Ubuntu)

Create a file called /etc/apt/sources.list.d/resilio-sync.list with the following text to register Resilio repository:

deb http://linux-packages.resilio.com/resilio-sync/deb resilio-sync non-free

Add a public key with the following command:

wget -qO - https://linux-packages.resilio.com/resilio-sync/key.asc | sudo apt-key add -

For arm64 architecture

sudo dpkg --add-architecture armhf
sudo apt-get update

In /etc/apt/sources.list change the line to:

deb [arch=armhf] http://linux-packages.resilio.com/  to  resilio-sync/deb resilio-sync non-free

 

Install Resilio Sync

sudo apt-get update
sudo apt-get install resilio-sync

 

For RPM-based Linux (Red Hat, CentOS)

Make file /etc/yum.repos.d/resilio-sync.repo with the following content to register the Resilio repository:

[resilio-sync]
name=Resilio Sync $basearch
baseurl=http://linux-packages.resilio.com/resilio-sync/rpm/$basearch
enabled=1
gpgcheck=1

Add public key:

sudo rpm --import https://linux-packages.resilio.com/resilio-sync/key.asc

 

Install Resilio Sync:

sudo yum install resilio-sync

 

Managing Resilio Sync

systemd

Enable sync service automatic startup as user rslsync:

sudo systemctl enable resilio-sync

Enable sync service as current user:

edit file /usr/lib/systemd/user/resilio-sync.service and change “WanedBy=multi-user.target” to “WantedBy=default.target”.

Save the file then enable the service:

systemctl --user enable resilio-sync

Systemctl can be also run with the following arguments: start, stop, enable, disable, status

For example:

systemctl --user start resilio-sync

 

sysvinit, upstart

Run as rslsync user:

sudo service resilio-sync start 

Service can also be run with the following arguments: start, stop, restart

After successful migration and verifying that setup is preserved, you can remove btsync package:

For Debian-based Linux:

sudo apt-get purge btsync

For RPM-based Linux

Voila! Enjoy your Sync app from Resilio. Stay tuned for more useful info regarding Sync and other Linux apps.

Leave a Reply