How To Install trscripts on Ubuntu 18.04

In this tutorial we learn how to install trscripts on Ubuntu 18.04. trscripts is Scripts for reencoding text files and BDF-fonts

Introduction

In this tutorial we learn how to install trscripts on Ubuntu 18.04.

What is trscripts

trscripts is:

The script `trbdf’ can convert a BDF font from one codeset to another.

The script trcs' reencodes text files from one codeset to another. It can generate scripts for tr’. For example the command trcs –from cp1252 –to latin1 –gen-script gives you the following output: #!/bin/sh

trap “exit 0” PIPE

cat “$@” | tr
‘\200’’\201’’\202’’\203’’\204’’\205’’\206’’\207’’\210’’\211’’\212’
‘\213’’\214’’\215’’\216’’\217’’\220’’\221’’\222’’\223’’\224’’\225’
‘\226’’\227’’\230’’\231’’\232’’\233’’\234’’\235’’\236’’\237’
‘\105’’\77’’\47’’\146’’\42’’\267’’\53’’\77’’\136’’\77’’\123’
‘\253’’\117’’\77’’\132’’\77’’\77’’\47’’\47’’\42’’\42’’\267’
‘-’’-’’\176’’\77’’\163’’\273’’\157’’\77’’\172’’\131’

Both scripts try to approximate the missing from the target codeset symbols.

It is easy to add support of other character sets.

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

Install trscripts Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install trscripts

Install trscripts Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install trscripts

Install trscripts 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 Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install trscripts

How To Uninstall trscripts on Ubuntu 18.04

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

sudo apt-get remove trscripts

Uninstall trscripts And Its Dependencies

To uninstall trscripts and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove trscripts

Remove trscripts Configurations and Data

To remove trscripts configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge trscripts

Remove trscripts configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge trscripts

References

Summary

In this tutorial we learn how to install trscripts package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.