Syncthing is a powerful open-source tool for file synchronization between devices. This guide explains how to install Syncthing on AlmaLinux 9.
Step 1: Update Your System
- Before installing any new software, it’s essential to ensure that your system is up-to-date. Run the following commands to update the system packages:
sudo dnf update -y
Step 2: Add the Syncthing Repository
- Syncthing is not available in the default AlmaLinux repositories, so you’ll need to add the official Syncthing repository. First, install the EPEL repository, which provides extra packages for Enterprise Linux:
sudo dnf install epel-release -y
- Next, add the Syncthing repository by creating a new repo file:
sudo nano /etc/yum.repos.d/syncthing.repo
Add the following lines to the file:
[syncthing]
name=Syncthing Repository
baseurl=https://copr-be.cloud.fedoraproject.org/results/maxamillion/syncthing/epel-9-$basearch/
enabled=1
gpgcheck=1
gpgkey=https://copr-be.cloud.fedoraproject.org/results/maxamillion/syncthing/pubkey.gpg
Save and close the file.
Step 3: Install Syncthing
- Once the repository is added, install Syncthing by running the following command:
sudo dnf install syncthing -y
Step 4: Start and Enable Syncthing
- Start the Syncthing service and enable it to start on boot:
systemctl --user enable syncthing.service
systemctl --user start syncthing.service
Step 5: Configure Firewall
- If you have a firewall enabled, you’ll need to allow Syncthing’s default ports. Run the following commands:
sudo firewall-cmd --add-service=syncthing --permanent
sudo firewall-cmd --reload
Step 6: Access Syncthing Web Interface
- By default, Syncthing’s web interface is available at
http://localhost:8384. You can access it using your web browser:
URL: http://your-server-ip:8384
On the first visit, you’ll be prompted to configure Syncthing and set up devices for synchronization.
Conclusion
You have successfully installed Syncthing on AlmaLinux 9. You can now use the web interface to configure and manage file synchronization between multiple devices.