# Installing tuna-bastion

## Using script

Run the command in the terminal:

```shell
curl -sSLf https://releases.tuna.am/bastion/get.sh | sh

```

info

The script automatically detects the distribution and installs `tuna-bastion` through the package manager.

## Through package manager

**Debian/Ubuntu**

For Debian and Debian-based distributions (Ubuntu, Mint and others), run the following commands in the terminal:

```shell
sudo apt update
sudo apt install -y ca-certificates curl gnupg
curl -fsSL https://code.tuna.am/api/packages/tuna/debian/repository.key | sudo gpg --dearmor --batch --yes -o /usr/share/keyrings/tuna-forgejo.gpg
echo 'deb [signed-by=/usr/share/keyrings/tuna-forgejo.gpg] https://code.tuna.am/api/packages/tuna/debian stable main' | sudo tee /etc/apt/sources.list.d/tuna-forgejo.list
sudo apt update
sudo apt install -y tuna-bastion

```

**SUSE/OpenSUSE**

For SUSE and OpenSUSE, run the following commands in the terminal:

```shell
sudo zypper addrepo --repo https://code.tuna.am/api/packages/tuna/rpm/stable.repo
sudo zypper install -y tuna-bastion

```

**RHEL/Fedora**

For RHEL and derivative distributions (CentOS, Rocky, AlmaLinux and others), as well as Fedora, run the following commands in the terminal:

```shell
sudo curl -fsSL https://code.tuna.am/api/packages/tuna/rpm/stable.repo -o /etc/yum.repos.d/tuna-forgejo.repo
sudo dnf install -y tuna-bastion

```
