How to Uninstall or Install codespell on Ubuntu 22.04

Updated: August 30, 2022

codespell is designed to find and fix common misspellings in text files. It is designed primarily for checking misspelled words in source code, but it can be used with other files as well. I will show you how to install codespell on Ubuntu 22.04 in this tutorial.


  • Operating system: Ubuntu 22.04 or older Ubuntu versions
  • Privileges: Make sure you are able to execute sudo commands.

Prerequisites to install codespell on Ubuntu 22.04

Install codespell Ubuntu 22.04

codespell is one of the popular ways on Ubuntu now so that this tutorial will show you some ways to install it. Choose the one that you think is easy and you can follow.

Install codespell using APT

This is one of the most popular methods for installing Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to install codespell on your Ubuntu.

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Launching the terminal and entering the following Linux command:

sudo apt-get -y update

Step 2: Install the package on Ubuntu 22.04. After updating, you can install codespell Ubuntu by executing this command in the terminal.

sudo apt install codespell

Install codespell using Aptitude

With Aptitude, users can view a list of available packages and manage their installation, upgrade, and removal of packages. If you didn’t install it on Ubuntu, you need to install it by executing this command.

sudo apt-get install aptitude

After installing, you can now install codespell by following these steps:

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Obtain new packages from Ubuntu by updating the APT database. Opening the terminal and executing this Linux command:

sudo apt update

Step 2: Install the package on Ubuntu 22.04. You can now install codespell Ubuntu by executing this command in the terminal.

sudo aptitude install codespell

Install codespell from Ubuntu Software Center

The next option you should make if you’re using Ubuntu 22.04 is Software Center Ubuntu. because you can quickly install all of the packages that it contains, including codespell. Following these steps to begin the installation:

Step 1: Opening Software Center from Applications menu

You need to use Super to open the Applications menu, then search for Ubuntu Software and click on it.

Step 2: Search for codespell in Ubuntu Software

After Ubuntu Software Center appears, you need to search for codespell by typing its name into the search box and choose the first one in the result lists. After that, click the Install button to install codespell.

Install codespell from Software Center on Ubuntu 22.04

Install codespell using Snap

Snap is a software package and deployment system that uses self-contained packages to deliver software to users. Therefore, Snap enables you to install codespell easily. Simply pasting this command into the terminal and pressing enter.

sudo snap install codespell --beta

Uninstall codespell on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu is difficult? You are mistaken; Anyone can easily uninstall any program, not just codespell.

If you installed codespell using APT or Aptitude, you could uninstall codespell on Ubuntu by following this step:

sudo apt remove --auto-remove codespell

You can also execute this command if you want to uninstall codespell and remove its data and dependencies:

sudo apt autoremove --purge codespell

If you installed codespell using Snap, you can execute this command:

sudo snap remove codespell


In this tutorial, I showed you ways to install codespell on Ubuntu 22.04 and some ways to uninstall codespell too. Please do not hesitate to contact me if you require any assistance. I’m delighted to respond to them.