How to get Lapce working on Linux
Lapce is a “lightning-fast” and “powerful” code editor. It’s open-source and allows users to do quick operations with every word they type. Here’s how you can get the Lapce code editor working on your Linux system.
How to install Lapce on Linux
Lapce is officially supported via Flatpak, Snap, etc. However, it is also possible to install lapce on Ubuntu, Debian, Arch Linux, Fedora, and OpenSUSE.
In this guide, we’ll go over all methods for installing Lapce on mainstream Linux distributions. To start the installation process, open up a terminal window by pressing Ctrl + Alt + T on the keyboard. Or, by searching for “Terminal” in the app menu. Once the terminal window is open, follow the instructions below that correspond with the distribution you use.
Ubuntu installation instructions
There is no official DEB package for Lapce in Ubuntu. However, it is possible to convert an existing Lapce RPM package to a DEB with the Alien conversion tool. To get started, install the Alien app on your Ubuntu system.
sudo apt install alien
Once it is installed, use the wget download command to download the latest version of the Lapce RPM to your computer. This download should be quick.
wget https://raw.githubusercontent.com/rpmsphere/x86_64/master/l/lapce-0.1.3-1.x86_64.rpm
After downloading the RPM package file to your computer, use the alien -dcv command to convert the RPM package to a usable DEB package on Ubuntu. This process could take a few minutes, so be patient.
sudo alien -dcv lapce-0.1.3-1.x86_64.rpm
When the conversion is complete, you can install Lapce on your Ubuntu system using the apt install command below.
sudo apt install ./lapce_0.1.3-2_amd64.deb
Debian installation instructions
If you’re on Debian, you’ll need to convert the Lapce RPM package to use it, just like Ubuntu users do. That’s because there’s no official DEB package for Lapce. To start, use the following wget download command to get your hands on the package.
wget https://raw.githubusercontent.com/rpmsphere/x86_64/master/l/lapce-0.1.3-1.x86_64.rpm
With the package downloaded to your computer, you’ll need to install the Alien package conversion tool. It can convert RPMs to other formats, including DEBs.
sudo apt install alien
After installing the Alien package to your computer, you can use it to convert the RPM package to a DEB package using the following command.
sudo alien -dcv lapce-0.1.3-1.x86_64.rpm
When the Lapce package has been converted to a DEB package, you can install it on your Debian Linux system using the following apt install command.
sudo apt install ./lapce_0.1.3-2_amd64.deb
Arch Linux installation instructions
The Lapce application is installable on Arch Linux, however, you will need to install it through the Arch Linux User repository, as there is no package available officially. To start, use the pacman -S command to install the “git” and “base-devel” packages.
sudo pacman -S git base-devel
After installing the two packages onto your computer, use the git clone command to download the Trizen AUR helper. This program will make it much easier to install Lapce on your Arch system.
git clone https://aur.archlinux.org/trizen.git
After downloading the Trizen AUR helper package files, you must install it on your system using the makepkg -sri command.
makepkg -sri
Once the Trizen AUR helper tool is installed on your Linux PC, you can use the trizen -S command to install Lapce on your system.
trizen -S lapce-git
Fedora installation instructions
To install the Lapce application on your Fedora Linux system, you’ll need to download an RPM package from a third-party repository. In the terminal, use the following wget download command to grab the package.
wget https://raw.githubusercontent.com/rpmsphere/x86_64/master/l/lapce-0.1.3-1.x86_64.rpm
After downloading the Lapce package to your computer, you can install it using the dnf install command.
dnf install lapce-0.1.3-1.x86_64.rpm
OpenSUSE installation instructions
There is a third-party Lapce RPM package available for OpenSUSE Tumbleweed users. However, this package doesn’t work on older releases of OpenSUSE. For this reason, we suggest installing it via Snap or Flatpak installation instructions.
Flatpak installation instructions
Lapce is available as a Flatpak, and it’s a great way to get it working on Linux, as Flatpak supports a wide variety of Linux distributions. To start, you’ll need to install the Flatpak runtime.
To install the Flatpak runtime, please follow our Flatpak setup guide. Once it is up and running, run the two commands below to install the Lapce application on Linux as a Flatpak.
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub dev.lapce.lapce
Snap package installation instructions
Lapce is available in the Snap store as a Snap package. To install it on your computer, you must first enable the Snap runtime. Check out our in-depth setup guide to get the runtime working.
Once you have the Snap runtime configured, you’ll be able to install Lapce as a Snap with the following snap install command.
sudo snap install lapce