How To Install scrub.x86_64 on Amazon Linux 2

In this tutorial we learn how to install scrub.x86_64 in Amazon Linux 2. scrub.x86_64 is Disk scrubbing program

Introduction

In this tutorial we learn how to install scrub.x86_64 on Amazon Linux 2.

What is scrub.x86_64

Scrub writes patterns on files or disk devices to make retrieving the data more difficult. It operates in one of three modes scrubbed and all data on it is destroyed; 2) a regular file is scrubbed and only the data in the file (and optionally its name in the directory entry) is destroyed; or 3) a regular file is created, expanded until the file system is full, then scrubbed as in 2).

We can use yum to install scrub.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install scrub.x86_64.

Install scrub.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install scrub.x86_64 using yum by running the following command:

sudo yum -y install scrub.x86_64

How To Uninstall scrub.x86_64 on Amazon Linux 2

To uninstall only the scrub.x86_64 package we can use the following command:

sudo yum remove scrub.x86_64

scrub.x86_64 Package Contents on Amazon Linux 2

/usr/bin/scrub
/usr/share/doc/scrub-2.5.2
/usr/share/doc/scrub-2.5.2/COPYING
/usr/share/doc/scrub-2.5.2/ChangeLog
/usr/share/doc/scrub-2.5.2/DISCLAIMER
/usr/share/doc/scrub-2.5.2/README
/usr/share/man/man1/scrub.1.gz

References

Summary

In this tutorial we learn how to install scrub.x86_64 on Amazon Linux 2 using yum.