How To Install dos2unix.x86_64 on Amazon Linux 2

In this tutorial we learn how to install dos2unix.x86_64 in Amazon Linux 2. dos2unix.x86_64 is Text file format converters

Introduction

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

What is dos2unix.x86_64

Convert text files with DOS or Mac line endings to Unix line endings and vice versa.

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

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

sudo yum -y install dos2unix.x86_64

How To Uninstall dos2unix.x86_64 on Amazon Linux 2

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

sudo yum remove dos2unix.x86_64

dos2unix.x86_64 Package Contents on Amazon Linux 2

/usr/bin/dos2unix
/usr/bin/mac2unix
/usr/bin/unix2dos
/usr/bin/unix2mac
/usr/share/doc/dos2unix-6.0.3
/usr/share/doc/dos2unix-6.0.3/COPYING.txt
/usr/share/doc/dos2unix-6.0.3/ChangeLog.txt
/usr/share/doc/dos2unix-6.0.3/NEWS.txt
/usr/share/doc/dos2unix-6.0.3/README.txt
/usr/share/doc/dos2unix-6.0.3/TODO.txt
/usr/share/doc/dos2unix-6.0.3/dos2unix.htm
/usr/share/locale/de/LC_MESSAGES/dos2unix.mo
/usr/share/locale/eo/LC_MESSAGES/dos2unix.mo
/usr/share/locale/es/LC_MESSAGES/dos2unix.mo
/usr/share/locale/nl/LC_MESSAGES/dos2unix.mo
/usr/share/man/es/man1/dos2unix.1.gz
/usr/share/man/es/man1/mac2unix.1.gz
/usr/share/man/es/man1/unix2dos.1.gz
/usr/share/man/es/man1/unix2mac.1.gz
/usr/share/man/man1/dos2unix.1.gz
/usr/share/man/man1/mac2unix.1.gz
/usr/share/man/man1/unix2dos.1.gz
/usr/share/man/man1/unix2mac.1.gz
/usr/share/man/nl/man1/dos2unix.1.gz
/usr/share/man/nl/man1/mac2unix.1.gz
/usr/share/man/nl/man1/unix2dos.1.gz
/usr/share/man/nl/man1/unix2mac.1.gz

References

Summary

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