# Install ScyllaDB Without root Privileges

This document covers installing, uninstalling, and upgrading ScyllaDB using Unified Installer.
Unified Installer is recommended when you do not have root privileges to the server.
If you have root privileges, we recommend installing ScyllaDB with
[ScyllaDB Web Installer](https://opensource.docs.scylladb.com/stable/getting-started/installation-common/scylla-web-installer.md)
or by downloading the OS-specific packages (RPMs and DEBs) and installing them with
the package manager (dnf and apt).

## Prerequisites

Ensure your platform is supported by the ScyllaDB version you want to install.
See [OS Support](https://opensource.docs.scylladb.com/stable/getting-started/os-support.md) for information about supported Linux distributions and versions.

Note that if you’re on CentOS 7, only root offline installation is supported.

## Download and Install

1. Download the latest tar.gz file for ScyllaDB version (x86 or ARM) from `https://downloads.scylladb.com/downloads/scylla/relocatable/scylladb-<version>/`.

   Example for version 6.1: [https://downloads.scylladb.com/downloads/scylla/relocatable/scylladb-6.1/](https://downloads.scylladb.com/downloads/scylla/relocatable/scylladb-6.1/)
2. Uncompress the downloaded package.

   The following example shows the package for ScyllaDB 6.1.1 (x86):
   ```console
   tar xvfz scylla-unified-6.1.1-0.20240814.8d90b817660a.x86_64.tar.gz
   ```
3. Install OpenJDK 8 or 11.

   The following example shows Java installation on a CentOS-like system:
   ```console
   sudo yum install -y java-11-openjdk-headless
   ```

   For root offline installation on Debian-like systems, two additional packages, `xfsprogs`
   and `mdadm`, should be installed to be used in RAID setup.
4. Install ScyllaDB as a user with non-root privileges:
   ```console
   ./install.sh --nonroot --python3 ~/scylladb/python3/bin/python3
   ```
5. (Optional) Install scylla-jmx
   > scylla-jmx becomes optional package from ScyllaDB 6.2, not installed by default.
   > If you need JMX server, see [Install scylla-jmx Package](https://opensource.docs.scylladb.com/stable/getting-started/install-scylla/install-jmx.md)

## Configure and Run ScyllaDB

1. Run the ScyllaDB setup script:
   ```console
   ~/scylladb/sbin/scylla_setup
   ```
2. Start ScyllaDB:
   ```console
   systemctl --user start scylla-server
   ```
3. Verify that ScyllaDB is running:
   ```console
   systemctl --user status scylla-server
   ```

Now you can start using ScyllaDB. Here are some tools you may find useful.

Run nodetool:

```console
~/scylladb/share/cassandra/bin/nodetool status
```

Run cqlsh:

```console
~/scylladb/share/cassandra/bin/cqlsh
```

Run cassandra-stress:

```console
~/scylladb/share/cassandra/bin/cassandra-stress write
```

#### NOTE
You can avoid adding the extended prefix to the commands by exporting the binary directories to PATH:

`export PATH=$PATH:~/scylladb/python3/bin:~/scylladb/share/cassandra/bin/:~/scylladb/bin:~/scylladb/sbin`

## Upgrade/ Downgrade/ Uninstall

<a id="unified-installed-upgrade"></a>

### Upgrade

The unified package is based on a binary package; it’s not a RPM / DEB packages, so it doesn’t upgrade or downgrade by yum / apt. To upgrade ScyllaDB, run the `install.sh` script.

Root install:

```sh
./install.sh --upgrade
```

Nonroot install

```sh
./install.sh --upgrade --nonroot
```

#### NOTE
The installation script does not upgrade scylla-jmx and scylla-tools. You will have to upgrade them separately.

### Uninstall

Root uninstall:

```sh
sudo ./uninstall.sh
```

Nonroot uninstall

```sh
./uninstall.sh --nonroot
```

### Downgrade

To downgrade to your original ScyllaDB version, use the [Uninstall]() procedure, then install the original ScyllaDB version.

## Next Steps

* [Configure ScyllaDB](https://opensource.docs.scylladb.com/stable/getting-started/system-configuration.md)
* Manage your clusters with [ScyllaDB Manager](https://manager.docs.scylladb.com/)
* Monitor your cluster and data with [ScyllaDB Monitoring](https://monitoring.docs.scylladb.com/)
* Get familiar with ScyllaDB’s [command line reference guide](https://opensource.docs.scylladb.com/stable/operating-scylla/nodetool.md).
* Learn about ScyllaDB at [ScyllaDB University](https://university.scylladb.com/)
