How To Install cw on Debian 10

Learn how to install cw on Debian 10 with this tutorial. cw is Morse code tutor - command line user interface

Introduction

In this tutorial we learn how to install cw on Debian 10.

What is cw

cw is:

The unixcw project provides support for learning to use Morse.

This package provides two executables:

  • cw - a simple command line application that converts key-presses to Morse code that can be heard through the console buzzer or a sound card;
  • cwgen - a program that generates groups of random characters for Morse code practice, which can be piped to the cw program.

It also includes example files (with the extension “cw”) containing commands which can be used to change properties such as the speed, tone, and spacing of characters.

There are three methods to install cw on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install cw Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install cw using apt-get by running the following command:

sudo apt-get -y install cw

Install cw Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install cw using apt by running the following command:

sudo apt -y install cw

Install cw Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install cw using aptitude by running the following command:

sudo aptitude -y install cw

How To Uninstall cw on Debian 10

To uninstall only the cw package we can use the following command:

sudo apt-get remove cw

Uninstall cw And Its Dependencies

To uninstall cw and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove cw

Remove cw Configurations and Data

To remove cw configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge cw

Remove cw configuration, data, and all of its dependencies

We can use the following command to remove cw configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge cw

Dependencies

cw have the following dependencies:

References

Summary

In this tutorial we learn how to install cw package on Debian 10 using different package management tools: apt, apt-get and aptitude.