How To Install perl-Test-Mojibake on Rocky Linux 8
Introduction
In this tutorial we learn how to install perl-Test-Mojibake
on Rocky Linux 8.
What is perl-Test-Mojibake
Many modern text editors automatically save files using UTF-8 codification. However, the perl interpreter does not expect it by default. Whilst this does not represent a big deal on (most) backend-oriented programs, Web framework (Catalyst, Mojolicious) based applications will suffer so-called Mojibake (literally saves BOM (Byte Order Mark, U+FEFF character in Unicode) at the start of a script with the executable bit set (on Unix systems), it won’t execute at all, due to shebang corruption. Avoiding codification problems is quite simple * Always use utf8/use common * Always specify =encoding utf8 when saving POD as UTF-8 * Do neither of above when saving as ISO-8859-1 * Never save BOM (not that it’s wrong; just avoid it as you’ll barely notice its presence when in trouble) However, if you find yourself upgrading old code to use UTF-8 or trying to standardize a big project with many developers, each one using a different platform/editor, reviewing all files manually can be quite painful, especially in cases where some files have multiple encodings (note realized that gedit and derivatives are unable to open files with character conversion tables). Enter the Test
We can use yum
or dnf
to install perl-Test-Mojibake
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Test-Mojibake.
Install perl-Test-Mojibake on Rocky Linux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install perl-Test-Mojibake
using dnf
by running the following command:
sudo dnf -y install perl-Test-Mojibake
Install perl-Test-Mojibake on Rocky Linux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install perl-Test-Mojibake
using yum
by running the following command:
sudo yum -y install perl-Test-Mojibake
How To Uninstall perl-Test-Mojibake on Rocky Linux 8
To uninstall only the perl-Test-Mojibake
package we can use the following command:
sudo dnf remove perl-Test-Mojibake
perl-Test-Mojibake Package Contents on Rocky Linux 8
/usr/bin/scan_mojibake
/usr/share/doc/perl-Test-Mojibake
/usr/share/doc/perl-Test-Mojibake/Changes
/usr/share/doc/perl-Test-Mojibake/README
/usr/share/licenses/perl-Test-Mojibake
/usr/share/licenses/perl-Test-Mojibake/LICENSE
/usr/share/man/man1/scan_mojibake.1.gz
/usr/share/man/man3/Test::Mojibake.3pm.gz
/usr/share/perl5/vendor_perl/Test
/usr/share/perl5/vendor_perl/Test/Mojibake.pm
References
Summary
In this tutorial we learn how to install perl-Test-Mojibake
on Rocky Linux 8 using yum and dnf.