How to Install JetBrains CLion on Linux: 4 Methods

To install JetBrains CLion on Linux, use the JetBrains Toolbox App for the simplest supported setup, download the official CLion archive for a manual install, or choose Snap. A Flatpak is also available on Flathub, but that package is community-provided and has sandbox limitations. Before opening a project, make sure your Linux system has a C or C++ compiler and the build tools your project needs.

Check your Linux setup first

JetBrains lists GCC/G++ or Clang as Linux compiler options. CLion also needs a toolchain, which typically includes a compiler, debugger, and build system. On Ubuntu or Debian, one common setup is:

sudo apt update
sudo apt install build-essential gdb cmake

Package names vary by distribution; install the equivalent compiler, debugger, and CMake packages with your distro’s package manager. Current CLion system requirements list x86_64 or arm64 processors, four CPU cores, 8 GB of RAM, and 10 GB of free disk space. You do not need to install Java separately because CLion includes JetBrains Runtime. Check the CLion installation guide if you are using an older or less common Linux distribution.

Method 1: Install CLion with JetBrains Toolbox

Toolbox is JetBrains’ recommended installer. It can install CLion, keep it updated, manage multiple versions, and roll back an update. Download the Linux Toolbox App from the JetBrains Toolbox page. The Linux download is a compressed archive. Extract it to a directory you can write to, then run the Toolbox launcher from the extracted folder:

cd ~/Downloads
mkdir -p ~/.local/opt
tar -xvf jetbrains-toolbox-*.tar.gz -C ~/.local/opt
cd ~/.local/opt/jetbrains-toolbox-*/
./bin/jetbrains-toolbox

If you have more than one Toolbox archive in Downloads, replace the wildcard with the exact filename. In Toolbox, find CLion and select Install. Choose a version from the available versions menu if you need a specific release. Sign in to your JetBrains account to activate a license associated with it. For troubleshooting Linux dependencies or a first launch, follow JetBrains’ Toolbox App installation instructions.

JetBrains Toolbox App on Linux with CLion selected and its Install button visible

Method 2: Install the standalone CLion tarball

Use the standalone archive if you want to choose the installation directory yourself or prefer not to use an app manager. Open the official CLion download page, select Linux, and download the current .tar.gz archive.

JetBrains CLion download page open in a Linux browser, showing the Download for Linux button
Linux Downloads folder showing a CLion tar.gz archive

In a terminal, extract the archive to /opt, then start the IDE with the script inside its bin directory:

Linux terminal showing a tar command that extracts the CLion archive into /opt
sudo tar xvzf ~/Downloads/CLion-*.tar.gz -C /opt/
sh /opt/clion-*/bin/clion.sh

If the wildcard matches more than one downloaded archive or an older installation, use the exact archive filename and install into a clean directory. JetBrains warns against extracting a new archive over an existing CLion installation. To add a desktop-menu shortcut, open the Welcome screen and choose Configure | Create Desktop Entry, or use Tools | Create Desktop Entry from the IDE menu.

Method 3: Install the official Snap package

Snap is a convenient option if Snap support is already enabled on your distribution. Install and start the snapd service first if needed, using the Snapcraft snapd setup guide. Then install CLion:

Linux terminal with the Snap command for installing CLion using classic confinement
sudo snap install clion --classic

The --classic flag is required by the CLion Snap because it needs access similar to a traditionally installed desktop application. Once installation finishes, launch it with clion or select it from your application launcher. JetBrains notes that the Snap build can have performance or workflow issues in some cases. If you run into them, the Toolbox App is JetBrains’ recommended alternative.

Linux application launcher showing the CLion icon among desktop applications

Method 4: Install the Flathub package

Flathub lists CLion as an unverified app. Its page says the package is community-provided, is not affiliated with or supported by JetBrains, and may not support every use case because of Flatpak sandbox limits. If those tradeoffs work for you and Flatpak is installed, add Flathub for your user and install CLion:

Flathub CLion listing marked Unverified
flatpak remote-add --if-not-exists --user flathub https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak install --user flathub com.jetbrains.CLion

Run it with flatpak run com.jetbrains.CLion. For more on the package’s status and limitations, read the CLion listing on Flathub and the Flatpak command guide.

Linux terminal showing the Flatpak command to install com.jetbrains.CLion from Flathub

Finish the first launch

On first start, sign in or choose the available license option, then open or create a project. If CLion cannot build or debug your code, confirm that your compiler, debugger, and build system are installed. In CLion, review the detected toolchain under Settings | Build, Execution, Deployment | Toolchains. For a standalone install, create the desktop entry if you want CLion to appear in your desktop’s application menu. You can use CLion without installing a separate Java runtime.

Leave a Comment

How to Record Speaker Output on Linux with Audacity

How to Record Speaker Output on Linux with Audacity

Capture Linux desktop audio in Audacity by routing its recording stream to your output device’s monitor source. Follow PulseAudio and PipeWire steps, export tips, and fixes for silent tracks.

How to Use Dropbox on Linux: Install and Sync Your Files

How to Use Dropbox on Linux: Install and Sync Your Files

Install Dropbox on Linux from the official package, sign in, sync a local folder, manage selective sync, and check status from the command line.

How to Install Inkscape on Linux: Ubuntu, Fedora, Arch, and More

How to Install Inkscape on Linux: Ubuntu, Fedora, Arch, and More

Install Inkscape from your Linux distribution’s repositories, the Ubuntu stable PPA, Snap, or Flathub, with current commands and notes for choosing a package source.

How to Find and Remove Duplicate Files on Linux With FSlint

How to Find and Remove Duplicate Files on Linux With FSlint

Use FSlint to scan selected Linux folders, review duplicate groups, and safely delete redundant files or learn when hard-link merging is appropriate.

How to Install SABnzbd on Linux and Configure It

How to Install SABnzbd on Linux and Configure It

Install SABnzbd on Ubuntu or Debian, or run it in Docker on another Linux host. Then open the web interface and configure your provider and download folders.

How to Install the Paper GTK Theme on Linux

How to Install the Paper GTK Theme on Linux

Install the Paper GTK theme from supported Linux repositories, enable it for GTK apps in GNOME Tweaks, and see what the legacy theme can and cannot change.

How to Install and Set Up Plex on OpenMediaVault with Compose

How to Install and Set Up Plex on OpenMediaVault with Compose

The old OpenMediaVault Plex plugin is archived. Set up Plex on OMV 8 with OMV-Extras, the Compose plugin, persistent storage, and Plex’s official container.

How to Clean and Speed Up Ubuntu Safely

How to Clean and Speed Up Ubuntu Safely

Clean and speed up Ubuntu with safe APT cleanup, storage checks, and startup controls that help free space and troubleshoot a sluggish desktop.

How to Install the Hiri Email Client on Linux

How to Install the Hiri Email Client on Linux

Install Hiri on Linux with its Snap package or official tarball, add a desktop launcher, and check supported accounts plus a warning about Hiri’s old Snap release.

How to Get System Specifications for a Linux PC

How to Get System Specifications for a Linux PC

Use Fastfetch and built-in Linux commands to check your distro, kernel, CPU, memory, graphics, storage, and connected devices, then save a clear report.