How To Install cal10n on Fedora 34

cal10n is Compiler assisted localization library (CAL10N)

Introduction

In this tutorial we learn how to install cal10n on Fedora 34.

What is cal10n

Compiler Assisted Localization, abbreviated as CAL10N (pronounced as “calion”) is a java library for writing localized (internationalized) messages. Features * java compiler verifies message keys used in source code * tooling to detect errors in message keys * native2ascii tool made superfluous, as you can directly encode bundles in the most convenient charset, per locale. * good performance (300 nanoseconds per key look-up) * automatic reloading of resource bundles upon change

We can use yum or dnf to install cal10n on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install cal10n.

Install cal10n on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install cal10n using dnf by running the following command:

sudo dnf -y install cal10n

Install cal10n on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install cal10n using yum by running the following command:

sudo yum -y install cal10n

How To Uninstall cal10n on Fedora 34

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

sudo dnf remove cal10n

cal10n Package Contents on Fedora 34

/usr/share/java/cal10n
/usr/share/java/cal10n/cal10n-api.jar
/usr/share/licenses/cal10n
/usr/share/licenses/cal10n/LICENSE.txt
/usr/share/maven-metadata/cal10n.xml
/usr/share/maven-poms/cal10n
/usr/share/maven-poms/cal10n/cal10n-api.pom
/usr/share/maven-poms/cal10n/cal10n-parent.pom

References

Summary

In this tutorial we learn how to install cal10n on Fedora 34 using yum and dnf.