Install Fresh Text Editor on Ubuntu 24.04

Install Fresh Text Editor on Ubuntu 24.04

Fresh is an open-source terminal-based text editor written in Rust programming language with a focus on speed and ease of use. It's designed to give the GUI-like editing experience right inside the terminal. This tutorial shows how to install Fresh text editor on Ubuntu 24.04.

Install Fresh

Retrieve the latest Fresh release version tag from GitHub and store it in a variable:

FRESH_EDITOR_VERSION=$(curl -s "https://api.github.com/repos/sinelaw/fresh/releases/latest" | grep -Po '"tag_name": "v\K[0-9.]+')

Download the Debian package from releases page:

wget -qO fresh-editor.deb https://github.com/sinelaw/fresh/releases/latest/download/fresh-editor_${FRESH_EDITOR_VERSION}-1_amd64.deb

Install the downloaded package with APT:

sudo apt install -y ./fresh-editor.deb

We can check Fresh version as follows:

fresh --version

Remove the downloaded package file:

rm -rf fresh-editor.deb

Testing Fresh

Run the fresh command with a filename argument to create a new file or edit an existing one:

fresh test.txt

Execute the command with superuser privileges if the current permissions are insufficient:

sudo fresh /var/log/dpkg.log
Editing File with Fresh on Ubuntu

Uninstall Fresh

To fully uninstall Fresh, run the following command:

sudo apt purge --autoremove -y fresh-editor

Delete Fresh configuration files:

rm -rf ~/.local/share/fresh

Leave a Comment

Cancel reply

Your email address will not be published.