How To Install ack on Fedora 34

ack is Grep-like text finder

Introduction

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

What is ack

Ack is designed as a replacement for grep.

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

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

sudo dnf -y install ack

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

sudo yum -y install ack

How To Uninstall ack on Fedora 34

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

sudo dnf remove ack

ack Package Contents on Fedora 34

/usr/bin/ack
/usr/share/doc/ack
/usr/share/doc/ack/Changes
/usr/share/doc/ack/README.md
/usr/share/licenses/ack
/usr/share/licenses/ack/LICENSE.md
/usr/share/man/man1/ack.1.gz
/usr/share/perl5/vendor_perl/App
/usr/share/perl5/vendor_perl/App/Ack
/usr/share/perl5/vendor_perl/App/Ack.pm
/usr/share/perl5/vendor_perl/App/Ack/ConfigDefault.pm
/usr/share/perl5/vendor_perl/App/Ack/ConfigFinder.pm
/usr/share/perl5/vendor_perl/App/Ack/ConfigLoader.pm
/usr/share/perl5/vendor_perl/App/Ack/File.pm
/usr/share/perl5/vendor_perl/App/Ack/Files.pm
/usr/share/perl5/vendor_perl/App/Ack/Filter
/usr/share/perl5/vendor_perl/App/Ack/Filter.pm
/usr/share/perl5/vendor_perl/App/Ack/Filter/Collection.pm
/usr/share/perl5/vendor_perl/App/Ack/Filter/Default.pm
/usr/share/perl5/vendor_perl/App/Ack/Filter/Extension.pm
/usr/share/perl5/vendor_perl/App/Ack/Filter/ExtensionGroup.pm
/usr/share/perl5/vendor_perl/App/Ack/Filter/FirstLineMatch.pm
/usr/share/perl5/vendor_perl/App/Ack/Filter/Inverse.pm
/usr/share/perl5/vendor_perl/App/Ack/Filter/Is.pm
/usr/share/perl5/vendor_perl/App/Ack/Filter/IsGroup.pm
/usr/share/perl5/vendor_perl/App/Ack/Filter/IsPath.pm
/usr/share/perl5/vendor_perl/App/Ack/Filter/IsPathGroup.pm
/usr/share/perl5/vendor_perl/App/Ack/Filter/Match.pm
/usr/share/perl5/vendor_perl/App/Ack/Filter/MatchGroup.pm

References

Summary

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