How To Install trscripts on Kali Linux
Introduction
In this tutorial we learn how to install trscripts on Kali Linux.
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 Kali Linux. 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 updateAfter updating apt database, We can install trscripts using apt-get by running the following command:
sudo apt-get -y install trscriptsInstall trscripts Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install trscripts using apt by running the following command:
sudo apt -y install trscriptsInstall trscripts Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.
sudo aptitude updateAfter updating apt database, We can install trscripts using aptitude by running the following command:
sudo aptitude -y install trscriptsHow To Uninstall trscripts on Kali Linux
To uninstall only the trscripts package we can use the following command:
sudo apt-get remove trscriptsUninstall trscripts And Its Dependencies
To uninstall trscripts and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove trscriptsRemove trscripts Configurations and Data
To remove trscripts configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge trscriptsRemove 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 trscriptsDependencies
trscripts have the following dependencies:
References
Summary
In this tutorial we learn how to install trscripts package on Kali Linux using different package management tools: apt, apt-get and aptitude.