# Installing QNSQY on Linux

QNSQY Standard edition, for 64-bit Linux on x86_64 and ARM64. The current version and its files are listed on the [download page](https://quantumsequrity.com/download); replace `<version>` below with it.

**Last updated:** 2026-10-24

---

## Requirements

| Item | Requirement |
|------|-------------|
| Processor | 64-bit x86 (x86_64 / AMD64) or 64-bit ARM (ARM64 / aarch64). ARM64 is tested on ARM64 cloud servers (Arm Neoverse-N2), not yet on ARM64 desktops. |
| C library | glibc 2.28 or newer for the .deb and .rpm packages. Without glibc (Alpine and other musl systems): the [static build](#static-build-no-desktop-app). |
| Desktop app | A Wayland session. On X11 the app opens only if you pass `--allow-x11`. |
| Network | Needed to download. Paid plans check in with our billing server (the answer is cached for up to 7 days of offline work). Password encryption, ML-KEM-512 and ML-DSA-44 work offline without an account. |

Check your system:

```bash
uname -m                 # x86_64 or aarch64
ldd --version | head -1  # must show 2.28 or higher (musl: use the static build)
```

Our distribution tests (October 2026) ran on the RHEL 8 and 9 families (Red Hat UBI 8 and 9, AlmaLinux 8 and 9, Rocky Linux 8 and 9, Oracle Linux 8 and 9, CentOS Stream 9), AlmaLinux 10, Amazon Linux 2023, Fedora 40 to 44, Ubuntu 20.04, 22.04 and 24.04, Debian 11, 12 and 13, openSUSE Leap 15.6 and SUSE Linux Enterprise 15 SP6. Debian 10, Ubuntu 18.04, RHEL and CentOS 7 and Amazon Linux 2 have an older glibc and are not supported.

ARM64 was tested on ARM64 cloud servers (Arm Neoverse-N2, October 2026): in AlmaLinux 8, 9 and 10, Amazon Linux 2023, Fedora 44, Debian 11, 12 and 13, Ubuntu 20.04, 22.04 and 24.04, openSUSE Leap 15.6 and SUSE Linux Enterprise 15 SP6 containers (all on the servers' Ubuntu 24.04 kernel) the packages installed with signature checks on, and so did the one-line installer, and the program passed its checks with the network lock on; on the servers' Ubuntu 24.04 with the file-access limits (Landlock) too, where it also checked the release lists' ML-DSA-87 signatures, and files moved between x86_64 and ARM64 in both directions. The desktop app opened its window on X11 and on Wayland, on a virtual display; it has not been tried on an ARM64 desktop. In emulated ARM64 machines, Debian 11 (kernel 5.10, no Landlock) and Debian 12 passed too. The known-answer tests of ML-KEM, ML-DSA, SLH-DSA, FN-DSA, HQC and LMS pass on ARM64 (in emulation) with the same results as on x86_64. The static build passed its checks in Alpine Linux 3.24 containers, on x86_64 and on ARM64 cloud servers.

---

## Install

### One-line installer

```bash
curl -fsSL https://quantumsequrity.com/downloads/install.sh | bash
```

The script:

1. picks the .deb or the .rpm package for your distribution and processor and checks your glibc version (on a musl system it stops and points to the static build);
2. downloads the package, `checksums.txt` and its ML-DSA-87 signature from `https://cdn.quantumsequrity.com/linux/`;
3. checks the package's SHA-256 against `checksums.txt`, then checks the ML-DSA-87 signature with the program from the downloaded package, before anything is installed;
4. installs the package with your package manager (it asks for your `sudo` password).

Any failed check stops the install.

### apt (Debian, Ubuntu)

```bash
curl -fsSL https://cdn.quantumsequrity.com/repo/qnsqy-repo.gpg.asc | sudo gpg --dearmor -o /usr/share/keyrings/qnsqy.gpg
echo "deb [signed-by=/usr/share/keyrings/qnsqy.gpg] https://cdn.quantumsequrity.com/repo/deb stable main" | sudo tee /etc/apt/sources.list.d/qnsqy.list
sudo apt update && sudo apt install qnsqy
```

### dnf (RHEL 8 and later and its rebuilds, Amazon Linux 2023, Fedora)

```bash
sudo tee /etc/yum.repos.d/qnsqy.repo <<'EOF'
[qnsqy]
name=QNSQY
baseurl=https://cdn.quantumsequrity.com/repo/rpm
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://cdn.quantumsequrity.com/repo/qnsqy-repo.gpg.asc
EOF
sudo dnf install qnsqy
```

### zypper (openSUSE Leap 15.6, SLES 15 SP6)

```bash
sudo zypper addrepo https://cdn.quantumsequrity.com/repo/rpm/qnsqy.repo
sudo zypper install qnsqy
```

The repositories are signed. `qnsqy-repo.gpg.asc` holds the RSA-4096 repository key, fingerprint `127B 9C49 8A44 09CB 7E76 8F2B 3E4E C494 939D 0A89`; it signs the rpm metadata and every new `.rpm` package. The apt index is signed by this key and by the Ed25519 key `C8BE B5E1 75D4 493B 6067 8BB8 E76B B1B3 9C41 D8B6` (now at `qnsqy-repo-ed25519.gpg.asc`; it signed the earlier `.rpm` packages). apt checks the index on every update; dnf and zypper check the metadata and each package's own signature (`gpgcheck=1`). dnf and zypper show the key's fingerprint before importing it: compare it with the one here. If you added the dnf repository earlier, dnf asks to import the RSA key on your next upgrade. If you added it before 18 October 2026, also turn on the package check once: `sudo sed -i 's/^gpgcheck=0/gpgcheck=1/' /etc/yum.repos.d/qnsqy.repo`.

### npm

```bash
npm install -g qnsqy
```

### Package file

```bash
# Debian, Ubuntu
curl -fsSLO https://cdn.quantumsequrity.com/linux/qnsqy_<version>-1_amd64.deb
sudo apt install ./qnsqy_<version>-1_amd64.deb

# RHEL 8 and later, Amazon Linux 2023, Fedora
curl -fsSLO https://cdn.quantumsequrity.com/linux/qnsqy-<version>-1.x86_64.rpm
sudo dnf install ./qnsqy-<version>-1.x86_64.rpm

# ARM64: the same commands with qnsqy_<version>-1_arm64.deb or qnsqy-<version>-1.aarch64.rpm
```

Check a package file before you install it, as described in the [release signing procedure](https://quantumsequrity.com/downloads/SIGNING_PROCEDURE.md): its SHA-256 against the signed `checksums.txt`, and the ML-DSA-87 signature with `qnsqy verify-release`. A matching SHA-256 alone only proves the file matches the list; the signature proves the list came from us.

The package installs one program, `/usr/bin/qnsqy`, which contains the command line, the desktop app, the terminal app and the MCP server.

The apt, dnf and zypper repositories above serve both processors: on ARM64 the same commands install the ARM64 package.

### Static build (no desktop app)

For Alpine Linux and other systems without glibc, one statically linked program (x86_64 or ARM64) with the command line, the terminal app and the MCP server. It has no desktop app: a static program cannot load the desktop libraries.

```bash
curl -fsSLO https://cdn.quantumsequrity.com/linux/qnsqy-<version>-linux-x86_64-static.tar.gz   # ARM64: linux-aarch64-static
tar -xzf qnsqy-<version>-linux-x86_64-static.tar.gz
sudo install -m 755 qnsqy-<version>-linux-x86_64-static/qnsqy /usr/local/bin/qnsqy
qnsqy --version
```

Check the tarball's SHA-256 against the signed `checksums.txt` first, as for a package file. There is no repository for the static build: install a new version the same way.

---

## First run

```bash
qnsqy --version                # shows the installed version
echo "hello" > test.txt
qnsqy encrypt -i test.txt      # asks for a password, writes test.txt.qs
qnsqy decrypt -i test.txt.qs   # asks for the password, restores test.txt
```

- Desktop app: `qnsqy --gui`, or QNSQY in your applications menu.
- Terminal app: `qnsqy --tui`.
- MCP server for AI agents: `qnsqy --mcp` (see [For AI Agents](https://quantumsequrity.com/agents)).

---

## Network lock and sandbox

On Linux, after the licence check, QNSQY applies a seccomp-bpf filter that blocks its own network calls before any cryptographic work, and Landlock filesystem limits where the kernel supports them. Other programs keep their network. Operations started from the desktop app run in a separate command-line process under the same filter.

If the sandbox cannot be applied (some containers or restricted virtual machines), QNSQY stops with `SECURITY SANDBOX FAILED` and lists your options: run where seccomp is available, disconnect the network, or pass `--allow-unsandboxed`. That last option is not recommended: the network is then not blocked.

---

## Uninstall

```bash
sudo apt remove qnsqy      # installed with apt or a .deb
sudo dnf remove qnsqy      # installed with dnf or an .rpm
npm uninstall -g qnsqy     # installed with npm
sudo rm /usr/local/bin/qnsqy   # the static build
```

Optional: remove settings and data. This also deletes your local audit log and your stored sign-in; it does not touch your encrypted files.

```bash
rm -rf ~/.config/qnsqy ~/.local/share/qnsqy
```

---

## Troubleshooting

- **`version 'GLIBC_2.xx' not found`:** your distribution's glibc is older than 2.28 (for example Ubuntu 18.04, RHEL 7, Amazon Linux 2). Use a newer release.
- **`qnsqy: command not found` after an npm install:** add npm's global folder to your `PATH` (`npm prefix -g` shows it).
- **`SECURITY SANDBOX FAILED`:** see [Network lock and sandbox](#network-lock-and-sandbox).
- **The desktop app does not open:** it needs a Wayland session. `qnsqy --gui --allow-x11` opens it on X11, where other programs can read its keystrokes, so use that only on a machine you trust.
- **The desktop app stops with `Library libxkbcommon-x11.so could not be loaded` or an OpenGL error:** a system without a desktop lacks libraries the app needs. On RHEL and its rebuilds: `sudo dnf install libxkbcommon-x11 mesa-libEGL mesa-dri-drivers`.
- **The desktop app is too small on a high-resolution screen:** `SLINT_SCALE_FACTOR=2 qnsqy --gui`.

Questions: support@quantumsequrity.com. Security reports: security@quantumsequrity.com.
