How To Install sed on Fedora 36

In this tutorial we learn how to install sed in Fedora 36. sed is A GNU stream text editor

Introduction

In this tutorial we learn how to install sed on Fedora 36.

What is sed

The sed (Stream EDitor) editor is a stream or batch (non-interactive) editor. Sed takes text as input, performs an operation or set of operations on the text and outputs the modified text. The operations that sed performs (substitutions, deletions, insertions, etc.) can be specified in a script file or from the command line.

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

Install sed on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install sed using dnf by running the following command:

sudo dnf -y install sed

Install sed on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install sed using yum by running the following command:

sudo yum -y install sed

How To Uninstall sed on Fedora 36

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

sudo dnf remove sed

sed Package Contents on Fedora 36

/usr/bin/sed
/usr/lib/.build-id
/usr/lib/.build-id/4f
/usr/lib/.build-id/4f/55f81da0260c5ee35ae51db02d9f965eebb6ba
/usr/share/doc/sed
/usr/share/doc/sed/AUTHORS
/usr/share/doc/sed/BUGS
/usr/share/doc/sed/NEWS
/usr/share/doc/sed/README
/usr/share/doc/sed/THANKS
/usr/share/doc/sed/sedfaq.txt.gz
/usr/share/info/sed.info.gz
/usr/share/licenses/sed
/usr/share/licenses/sed/COPYING
/usr/share/locale/af/LC_MESSAGES/sed.mo
/usr/share/locale/ast/LC_MESSAGES/sed.mo
/usr/share/locale/bg/LC_MESSAGES/sed.mo
/usr/share/locale/ca/LC_MESSAGES/sed.mo
/usr/share/locale/cs/LC_MESSAGES/sed.mo
/usr/share/locale/da/LC_MESSAGES/sed.mo
/usr/share/locale/de/LC_MESSAGES/sed.mo
/usr/share/locale/el/LC_MESSAGES/sed.mo
/usr/share/locale/eo/LC_MESSAGES/sed.mo
/usr/share/locale/es/LC_MESSAGES/sed.mo
/usr/share/locale/et/LC_MESSAGES/sed.mo
/usr/share/locale/eu/LC_MESSAGES/sed.mo
/usr/share/locale/fi/LC_MESSAGES/sed.mo
/usr/share/locale/fr/LC_MESSAGES/sed.mo
/usr/share/locale/ga/LC_MESSAGES/sed.mo
/usr/share/locale/gl/LC_MESSAGES/sed.mo
/usr/share/locale/he/LC_MESSAGES/sed.mo
/usr/share/locale/hr/LC_MESSAGES/sed.mo
/usr/share/locale/hu/LC_MESSAGES/sed.mo
/usr/share/locale/id/LC_MESSAGES/sed.mo
/usr/share/locale/it/LC_MESSAGES/sed.mo
/usr/share/locale/ja/LC_MESSAGES/sed.mo
/usr/share/locale/ko/LC_MESSAGES/sed.mo
/usr/share/locale/nb/LC_MESSAGES/sed.mo
/usr/share/locale/nl/LC_MESSAGES/sed.mo
/usr/share/locale/pl/LC_MESSAGES/sed.mo
/usr/share/locale/pt/LC_MESSAGES/sed.mo
/usr/share/locale/pt_BR/LC_MESSAGES/sed.mo
/usr/share/locale/ro/LC_MESSAGES/sed.mo
/usr/share/locale/ru/LC_MESSAGES/sed.mo
/usr/share/locale/sk/LC_MESSAGES/sed.mo
/usr/share/locale/sl/LC_MESSAGES/sed.mo
/usr/share/locale/sr/LC_MESSAGES/sed.mo
/usr/share/locale/sv/LC_MESSAGES/sed.mo
/usr/share/locale/tr/LC_MESSAGES/sed.mo
/usr/share/locale/uk/LC_MESSAGES/sed.mo
/usr/share/locale/vi/LC_MESSAGES/sed.mo
/usr/share/locale/zh_CN/LC_MESSAGES/sed.mo
/usr/share/locale/zh_TW/LC_MESSAGES/sed.mo
/usr/share/man/man1/sed.1.gz

References

Summary

In this tutorial we learn how to install sed on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).