How to Install Rider on Ubuntu 22.04 or 20.04

JetBrains Rider offers a compelling solution for developers seeking a robust and intelligent .NET development environment on Ubuntu. This platform, developed by JetBrains, provides a comprehensive set of tools for .NET development, making it a standout choice for professionals.

Key Features of JetBrains Rider for Ubuntu Users

  • Cross-Platform Functionality: Rider is designed to operate smoothly on Windows, macOS, and Linux, offering a consistent and reliable development experience across different operating systems.
  • Advanced Language Support: Beyond the .NET framework, Rider also supports .NET Core and Mono-based projects. It accommodates various languages, from C# and VB.NET to web development languages like HTML and JavaScript.
  • Rich Feature Set: Rider comes equipped with auto code completion, debugging tools, integrated unit test runner, and version control tools, among others. These features collectively enhance productivity and efficiency.
  • Built on IntelliJ and ReSharper: The platform leverages the capabilities of IntelliJ and ReSharper, two powerful tools from the JetBrains family, to offer an all-in-one development solution.

Understanding the capabilities of JetBrains Rider sets the stage for its installation. The upcoming guide will focus on how to install Rider on Ubuntu 22.04 Jammy Jellyfish or Ubuntu 20.04 Focal Fossa. We’ll cover multiple installation methods, ensuring you can choose the best suits your needs.

Section 1: Install Rider on Ubuntu 22.04 or 20.04 via APT and PPA

The Advanced Packaging Tool, commonly known as APT, is a robust package management system foundational to Ubuntu and other Debian-based distributions. This section will employ APT to install JetBrains Rider, a versatile Integrated Development Environment (IDE) designed explicitly for .NET development.

Step 1: Refreshing the Ubuntu System Before Rider Installation

Before installing new software, we must keep our system’s local package database updated. This practice ensures that your Ubuntu system is up-to-date with the latest versions of all available software, providing a foundation for smooth and successful installations. Execute the following command to update the package database:

sudo apt update

After updating the package database, we should also upgrade the system. This action guarantees all your installed software is at the latest versions, contributing to a more secure and stable operating environment. Execute the following command to perform the system upgrade:

sudo apt upgrade

Step 2: Install Initial Packages for Rider on Ubuntu

The installation process requires us to add several essential packages to our system. These packages, namely dirmngr, ca-certificates, software-properties-common, apt-transport-https, curl, and lsb-release, facilitate secure file transfers, manage repositories, and perform other crucial package-related tasks. Execute the following command to install these packages:

sudo apt install dirmngr ca-certificates software-properties-common apt-transport-https curl lsb-release -y

Step 3: Incorporating the JetBrains PPA by Jonas Groeger on Ubuntu

At this juncture, we need to add the JetBrains Personal Package Archive (PPA) to the system’s list of repositories. Incorporating this repository enables APT to fetch JetBrains Rider directly from JetBrains’ PPA.

We’ll import the GPG key for the JetBrains repository for package authenticity. The GNU Privacy Guard (GPG), an embodiment of the OpenPGP standard, verifies the authenticity of the packages in the repository, assuring they are genuinely from JetBrains. Execute the following command to import the GPG key:

curl -s | gpg --dearmor | sudo tee /usr/share/keyrings/jetbrains-ppa-archive-keyring.gpg > /dev/null

Next, import the repository with the following command:

echo "deb [signed-by=/usr/share/keyrings/jetbrains-ppa-archive-keyring.gpg] any main" | sudo tee /etc/apt/sources.list.d/jetbrains-ppa.list > /dev/null

Step 4: Refreshing the APT Package Index after Rider PPA Import on Ubuntu

Having integrated a new repository into the system, updating the APT package database is critical. This action ensures your system recognizes the latest package information from the newly added JetBrains PPA. Execute the following command to update the APT package database:

sudo apt update

Step 5: Install Rider on Ubuntu 22.04 or 20.04 via APT Command

We’re now ready to install JetBrains Rider. Your system is primed with the Rider package details from the JetBrains PPA and is all set to fetch and install it. Use the following APT install command to initiate the installation process:

sudo apt install rider

Upon executing the command, APT will download JetBrains Rider, resolve any required dependencies, and install them on your system.

Section 2: Install Rider via Snap on Ubuntu 22.04 or 20.04

For new users to Ubuntu, snap should automatically be installed.

Snap, developed by Canonical, the creator of Ubuntu, is a robust software deployment and package management system. Its design philosophy simplifies software installation and ongoing maintenance tasks across various Linux distributions. This section delves into the step-by-step process of installing JetBrains Rider using the Snap package manager.

Step 1: Verifying the Existence of Snap-on Your Ubuntu System

Canonical has made Snap a part of most Ubuntu distributions, installing it by default. However, there can be cases where Snap might not be pre-installed or may have been manually removed. In such scenarios, Snap can be reinstalled on your system with the following command:

sudo apt install snapd -y

This command installs the Snap Daemon (snapd), a background service designed to manage and maintain Snap packages on your system.

Step 2: Enabling Classic Snap Support for Rider on Ubuntu

Certain Snap packages require ‘classic’ confinement – a feature that provides the Snap package access to your system’s resources, similar to traditional software. To ensure broad compatibility and seamless operation of these packages, we establish a symbolic link (symlink) using the following command:

sudo ln -s /var/lib/snapd/snap /snap

Running the command above forms a symlink between /var/lib/snapd/snap and /snap, effectively enabling classic Snap support on your system.

Step 3: Install the Core Snap Before Rider Installation on Ubuntu

Before proceeding with the JetBrains Rider installation, installing the ‘core’ Snap is vital. This core Snap is a foundation for other Snaps, providing the necessary libraries and services they rely upon. This preemptive step can help circumvent potential conflicts or issues that may crop up later. To install the core Snap, execute the following command:

sudo snap install core

Step 4: Install Rider via Snap Command on Ubuntu

With the prerequisites, we’re ready to install JetBrains Rider. This can be achieved by executing the following command:

sudo snap install rider --classic

In the command above, sudo is used to grant elevated privileges, snap invokes the Snap package manager, install denotes the action to install a package, and rider is the package we’re targeting for installation. The --classic option allows Rider to access your system’s resources, akin to a traditionally packaged application.

Section 3: Install Rider via Flatpak and Flathub on Ubuntu 22.04 or 20.04

Flatpak is a universal package management system designed with Linux in mind. Although it shares similarities with Snap, it differentiates itself through an exclusive sandboxing feature. This functionality encapsulates applications, isolating them from the rest of the system. The result is enhanced system security and a reduction in potential software conflicts.

Step 1: Enable the Flathub Repository for Rider Flatpak Installation on Ubuntu

As we set out to install JetBrains Rider using Flatpak, our first action is to enable the Flathub repository. Flathub operates as a trusted distribution platform for hosting Flatpak applications. Its role resembles an online marketplace, supplying access to various applications ready for installation.

To incorporate the Flathub repository into your system’s configuration, execute the following command in your terminal:

sudo flatpak remote-add --if-not-exists flathub

You seamlessly integrate the Flathub repository into your Flatpak configuration by running the command above. This integration opens the door to various applications, including JetBrains Rider.

Step 2: Install Rider via Flatpak Command on Ubuntu

Having successfully woven the Flathub repository into your system, the next progression involves the installation of JetBrains Rider. This process requires the flatpak install command. The particular command for installing JetBrains Rider is:

flatpak install flathub com.jetbrains.Rider -y

This command initiates the download and installation of JetBrains Rider from the Flathub repository. It ensures the most recent stable application version is procured for use.

At this point, it’s crucial to acknowledge that if your system doesn’t support Flatpak, you must install it beforehand. For an extensive guide on installing the most recent supported version of Flatpak on Ubuntu, we encourage you to visit our detailed guide on installing Flatpak.

Section 4: Starting Rider on Ubuntu 22.04 or 20.04

Following the successful installation of JetBrains Rider on your Ubuntu system, the next progression involves initiating the application. There are two predominant methods to launch Rider: the command-line interface (CLI) and the graphical user interface (GUI). Each technique caters to individual user preferences, offering adaptability in how you interact with your system. This section elucidates the process of launching JetBrains Rider utilizing both these methodologies.

Initiating Rider through the Command-Line Interface (CLI) on Ubuntu

In the Linux landscape, the command-line interface is an indispensable instrument, and initiating applications such as JetBrains Rider is no exception. The following subsections shed light on how to launch JetBrains Rider employing different command sets, contingent on your method of installation—APT, Snap, and Flatpak.

Commencing JetBrains Rider Using the APT Command

To initiate JetBrains Rider with the APT command, launch your terminal and input:


Upon execution, this command instantiates the Integrated Development Environment (IDE), readying it for your coding projects.

Commencing JetBrains Rider Using the Snap Command

If you have installed JetBrains Rider using Snap, the command to initiate it is:

snap run rider

Upon execution, this command commences JetBrains Rider, assuming the installation was accomplished without errors.

Commencing JetBrains Rider Using the Flatpak Command

If you have selected Flatpak as your preferred installation medium, the following command in your terminal will initiate JetBrains Rider:

flatpak run com.jetbrains.Rider

This command triggers JetBrains Rider into action, provided the installation was completed accurately.

Initiating JetBrains Rider through the Graphical User Interface (GUI) on Ubuntu

For those who find comfort in a visual-oriented approach, Ubuntu’s graphical user interface (GUI) offers an alternative way to commence JetBrains Rider. The procedure involves the following stages:

  • Access the Activities menu: This is at the top-left corner of your desktop screen.
  • Choose the Show Applications icon: This is located at the bottom of the Activities overlay.
  • Proceed to search for JetBrains Rider: You can manually scroll through your applications or use the search bar for a quicker find.
  • Launch JetBrains Rider: Finally, click the JetBrains Rider icon to initiate the IDE, setting it up for your coding tasks.
Rider application icon on Ubuntu 22.04 or 20.04 Linux desktop for launching the software.Pin
The Rider application icon as it appears on the Ubuntu 22.04 or 20.04 Linux desktop.

Section 5: Tips for Getting Started with Rider on Ubuntu 22.04 or 20.04

JetBrains Rider is a highly versatile and robust Integrated Development Environment (IDE). It can be tailored and customized to fit various coding styles and preferences. Here are a few tips and tricks to help you harness its power more efficiently on Ubuntu Linux.

First-time setup appearance selection screen for Rider on Ubuntu 22.04 or 20.04 Linux.Pin
Choosing the appearance settings during the first-time setup of Rider on Ubuntu 22.04 or 20.04 Linux.

Customize Your IDE Theme on Ubuntu

Rider offers an assortment of themes that you can choose from to customize your IDE look and feel. These themes include light and dark variants and a high-contrast theme for enhanced readability. To access and change your theme:

  • Navigate to File > Settings > Appearance & Behavior > Appearance.
  • Select your preferred theme from the Theme dropdown menu.

Code Analysis and Error Detection

Rider performs real-time code analysis and highlights syntax errors, redundancies, and code smells. It can also offer quick fixes which can be applied with a simple key combination (Alt+Enter). This feature dramatically enhances coding efficiency and ensures a cleaner, more optimized codebase.

Utilize Live Templates

Live templates in Rider are predefined code snippets that can be inserted into your code. They speed up coding by reducing time spent on repetitive tasks. To create a live template:

  • Go to File > Settings > Editor > Live Templates.
  • Click the + button to create a new live template, enter your code snippet, and define the applicable context.

Leverage Built-In Terminal

Rider has a built-in terminal that you can use to run Linux commands without leaving the IDE. This can be accessed through View > Tool Windows > Terminal. You can customize the terminal settings to use different shell programs based on your preference.

Debug with Ease

Rider provides a powerful debugger that supports .NET, Mono, Unity, .NET Core, and more. The visual debugger makes setting breakpoints, stepping through code, and inspecting variables easy.

Manage VCS with Rider

Rider provides excellent Version Control System (VCS) integration. You can commit changes, review differences, and manage branches directly from the IDE. To access this, go to VCS > Commit (or use the shortcut Ctrl+K).

Remember, these are just a few tips to get started with JetBrains Rider. As you continue to explore the IDE, you’ll discover more features and capabilities that can boost your productivity and coding experience.

Default user interface of Rider IDE on Ubuntu 22.04 or 20.04 Linux.Pin
The default user interface of the Rider IDE as seen on Ubuntu 22.04 or 20.04 Linux.

Section 6: Additional Rider Commands on Ubuntu 22.04 or 20.04

This guide portion focuses on managing JetBrains Rider on your Ubuntu Linux environment. The focal point will utilize specific command-line operations to update and remove the Integrated Development Environment (IDE). We will primarily explore the unique commands associated with package managers like APT, Snap, and Flatpak.

Update Rider on Ubuntu 22.04 or 20.04

In the world of software applications, keeping your tools updated is critical. Regular updates bring fresh features, crucial security fixes, and enhancements in performance. Thus, familiarizing yourself with updating Rider using various package managers becomes invaluable.

Refreshing Rider Using the APT Command on Ubuntu

The Advanced Package Tool, widely recognized as APT, is a prevalent package management system in Ubuntu. Updating Rider using APT involves two crucial steps. Initially, the package list is refreshed to capture the latest state of all packages. Following this, the upgrade command is issued to implement the updates. The commands facilitating these operations are:

sudo apt update
sudo apt upgrade rider

Updating Rider via the Snap Command on Ubuntu

Snap, a software packaging and deployment framework developed by Canonical, offers a straightforward approach to update Rider. The following command initiates this operation:

sudo snap refresh rider

Note that updates are handled automatically if you installed Rider as a snap package. Snaps are refreshed in the background every day.

Utilizing Flatpak to Update Rider on Ubuntu

Flatpak is a robust tool for software deployment, package management, and application virtualization on Linux platforms. To conduct an update of Rider via Flatpak, use the subsequent command:

sudo flatpak update com.jetbrains.Rider

Remember, these commands will update all outdated packages, upholding the best practices for maintaining your system’s security and performance.

Remove Rider on Ubuntu 22.04 or 20.04

There may be instances where you need to remove Rider from your Ubuntu Linux system. The upcoming sections will detail the steps required for this procedure.

Removing Rider Using the APT Command on Ubuntu

To uninstall Rider using APT, the below command needs to be run:

sudo apt remove rider

In the event you do not plan to reinstall Rider or use the JetBrains third-party APT PPA, the repository and GPG key can also be purged using these commands:

sudo rm /etc/apt/sources.list.d/jetbrains-ppa.list
sudo rm /usr/share/keyrings/jetbrains-ppa-archive-keyring.gpg

Uninstalling Rider via the Snap Command on Ubuntu

The process of uninstalling Rider using Snap is as straightforward as issuing the following command:

sudo snap remove rider

Utilizing the Flatpak Command to Remove Rider on Ubuntu

Finally, to uninstall Rider using Flatpak, you should execute the command below:

sudo flatpak uninstall com.jetbrains.Rider

Closing Thoughts

Throughout this comprehensive guide, we’ve traversed the various aspects of managing JetBrains Rider on an Ubuntu Linux distribution. From installation and customization to regular updates and uninstallation, we’ve explored the key operations associated with Rider management via various package managers – APT, Snap, and Flatpak. This journey’s hands-on experience and knowledge equip you with the proficiency needed to handle Rider and ultimately contribute to an efficient, effective, and seamless software development experience.

Share to...