How To Install msort on Fedora 34

msort is Sort files in sophisticated ways

Introduction

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

What is msort

Msort is a program for sorting files in sophisticated ways. Records need not be single lines. Key fields may be selected by position, tag, or character range. For each key, distinct exclusions, multigraphs, substitutions. and a sort order may be defined. Comparisons may be lexicographic, numeric, by string length, date, or time. Optional keys are supported. Msort uses the Unicode character set and provides full Unicode case-folding. The basic program has a somewhat complex command line interface, but may be driven by an optional GUI.

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

Install msort 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 msort using dnf by running the following command:

sudo dnf -y install msort

Install msort 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 msort using yum by running the following command:

sudo yum -y install msort

How To Uninstall msort on Fedora 34

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

sudo dnf remove msort

msort Package Contents on Fedora 34

/usr/bin/msg
/usr/bin/msort
/usr/lib/.build-id
/usr/lib/.build-id/21
/usr/lib/.build-id/21/cb93b078c2352a2b26282a8a504e6bf460e905
/usr/share/doc/msort
/usr/share/doc/msort/AUTHORS
/usr/share/doc/msort/ChangeLog
/usr/share/doc/msort/InitializationFiles
/usr/share/doc/msort/NEWS
/usr/share/doc/msort/README
/usr/share/doc/msort/TODO
/usr/share/doc/msort/msort.pdf
/usr/share/licenses/msort
/usr/share/licenses/msort/COPYING
/usr/share/man/man1/msort.1.gz

References

Summary

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