How To Install dos2unix on Rocky Linux 8

In this tutorial we learn how to install dos2unix on Rocky Linux 8. dos2unix is Text file format converters

Introduction

In this tutorial we learn how to install dos2unix on Rocky Linux 8.

What is dos2unix

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

We can use yum or dnf to install dos2unix on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install dos2unix.

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

sudo dnf -y install dos2unix

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

sudo yum -y install dos2unix

How To Uninstall dos2unix on Rocky Linux 8

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

sudo dnf remove dos2unix

dos2unix Package Contents on Rocky Linux 8

/usr/bin/dos2unix
/usr/bin/mac2unix
/usr/bin/unix2dos
/usr/bin/unix2mac
/usr/lib/.build-id
/usr/lib/.build-id/63
/usr/lib/.build-id/63/0250335a27591afac919d343f97aac8befe036
/usr/lib/.build-id/89
/usr/lib/.build-id/89/68f82baccb1a85ff6139e24217187d920701ed
/usr/share/doc/dos2unix
/usr/share/doc/dos2unix/COPYING.txt
/usr/share/doc/dos2unix/ChangeLog.txt
/usr/share/doc/dos2unix/NEWS.txt
/usr/share/doc/dos2unix/README.txt
/usr/share/doc/dos2unix/TODO.txt
/usr/share/doc/dos2unix/dos2unix.htm
/usr/share/locale/da/LC_MESSAGES/dos2unix.mo
/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/fr/LC_MESSAGES/dos2unix.mo
/usr/share/locale/hu/LC_MESSAGES/dos2unix.mo
/usr/share/locale/ja/LC_MESSAGES/dos2unix.mo
/usr/share/locale/nb/LC_MESSAGES/dos2unix.mo
/usr/share/locale/nl/LC_MESSAGES/dos2unix.mo
/usr/share/locale/pl/LC_MESSAGES/dos2unix.mo
/usr/share/locale/pt_BR/LC_MESSAGES/dos2unix.mo
/usr/share/locale/ru/LC_MESSAGES/dos2unix.mo
/usr/share/locale/sr/LC_MESSAGES/dos2unix.mo
/usr/share/locale/sv/LC_MESSAGES/dos2unix.mo
/usr/share/locale/uk/LC_MESSAGES/dos2unix.mo
/usr/share/locale/vi/LC_MESSAGES/dos2unix.mo
/usr/share/locale/zh_CN/LC_MESSAGES/dos2unix.mo
/usr/share/locale/zh_TW/LC_MESSAGES/dos2unix.mo
/usr/share/man/de/man1/dos2unix.1.gz
/usr/share/man/de/man1/mac2unix.1.gz
/usr/share/man/de/man1/unix2dos.1.gz
/usr/share/man/de/man1/unix2mac.1.gz
/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/fr/man1/dos2unix.1.gz
/usr/share/man/fr/man1/mac2unix.1.gz
/usr/share/man/fr/man1/unix2dos.1.gz
/usr/share/man/fr/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
/usr/share/man/pl/man1/dos2unix.1.gz
/usr/share/man/pl/man1/mac2unix.1.gz
/usr/share/man/pl/man1/unix2dos.1.gz
/usr/share/man/pl/man1/unix2mac.1.gz
/usr/share/man/pt_BR/man1/dos2unix.1.gz
/usr/share/man/pt_BR/man1/mac2unix.1.gz
/usr/share/man/pt_BR/man1/unix2dos.1.gz
/usr/share/man/pt_BR/man1/unix2mac.1.gz
/usr/share/man/sv/man1/dos2unix.1.gz
/usr/share/man/sv/man1/mac2unix.1.gz
/usr/share/man/sv/man1/unix2dos.1.gz
/usr/share/man/sv/man1/unix2mac.1.gz
/usr/share/man/uk/man1/dos2unix.1.gz
/usr/share/man/uk/man1/mac2unix.1.gz
/usr/share/man/uk/man1/unix2dos.1.gz
/usr/share/man/uk/man1/unix2mac.1.gz
/usr/share/man/zh_CN/man1/dos2unix.1.gz
/usr/share/man/zh_CN/man1/mac2unix.1.gz
/usr/share/man/zh_CN/man1/unix2dos.1.gz
/usr/share/man/zh_CN/man1/unix2mac.1.gz

References

Summary

In this tutorial we learn how to install dos2unix on Rocky Linux 8 using yum and dnf.