How To Install nmh on Fedora 34

nmh is A capable MIME-email-handling system with a command-line interface

Introduction

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

What is nmh

nmh is a collection of single-purpose programs that send, receive, show, search, and otherwise manipulate emails, including MIME. They combine well with other Unix programs, easing the development of custom shorthand commands as shell scripts. Optional GUI interfaces are provided by the external xmh and exmh projects. nmh is a descendant of the RAND MH, Mail Handler, project.

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

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

sudo dnf -y install nmh

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

sudo yum -y install nmh

How To Uninstall nmh on Fedora 34

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

sudo dnf remove nmh

nmh Package Contents on Fedora 34

/etc/nmh
/etc/nmh/MailAliases
/etc/nmh/bash_completion_nmh
/etc/nmh/components
/etc/nmh/digestcomps
/etc/nmh/distcomps
/etc/nmh/forwcomps
/etc/nmh/mhical.12hour
/etc/nmh/mhical.24hour
/etc/nmh/mhl.body
/etc/nmh/mhl.digest
/etc/nmh/mhl.format
/etc/nmh/mhl.forward
/etc/nmh/mhl.headers
/etc/nmh/mhl.reply
/etc/nmh/mhl.replywithoutbody
/etc/nmh/mhn.defaults
/etc/nmh/mhshow.marker
/etc/nmh/mts.conf
/etc/nmh/rcvdistcomps
/etc/nmh/rcvdistcomps.outbox
/etc/nmh/replcomps
/etc/nmh/replgroupcomps
/etc/nmh/rmmproc.messageid
/etc/nmh/scan.MMDDYY
/etc/nmh/scan.YYYYMMDD
/etc/nmh/scan.curses
/etc/nmh/scan.default
/etc/nmh/scan.highlighted
/etc/nmh/scan.mailx
/etc/nmh/scan.nomime
/etc/nmh/scan.size
/etc/nmh/scan.time
/etc/nmh/scan.timely
/etc/nmh/scan.unseen
/usr/bin/ali
/usr/bin/anno
/usr/bin/burst
/usr/bin/comp
/usr/bin/dist
/usr/bin/flist
/usr/bin/flists
/usr/bin/fmttest
/usr/bin/fnext
/usr/bin/folder
/usr/bin/folders
/usr/bin/forw
/usr/bin/fprev
/usr/bin/inc
/usr/bin/install-mh
/usr/bin/mark
/usr/bin/mhbuild
/usr/bin/mhfixmsg
/usr/bin/mhical
/usr/bin/mhlist
/usr/bin/mhlogin
/usr/bin/mhmail
/usr/bin/mhn
/usr/bin/mhparam
/usr/bin/mhpath
/usr/bin/mhshow
/usr/bin/mhstore
/usr/bin/msgchk
/usr/bin/new
/usr/bin/next
/usr/bin/packf
/usr/bin/pick
/usr/bin/prev
/usr/bin/prompter
/usr/bin/refile
/usr/bin/repl
/usr/bin/rmf
/usr/bin/rmm
/usr/bin/scan
/usr/bin/send
/usr/bin/sendfiles
/usr/bin/show
/usr/bin/sortm
/usr/bin/unseen
/usr/bin/whatnow
/usr/bin/whom
/usr/lib/.build-id
/usr/lib/.build-id/06
/usr/lib/.build-id/06/f43c37402399298eed9295507ffc4e41b2064a
/usr/lib/.build-id/08
/usr/lib/.build-id/08/dd42ca1aca19615db84ca30399c09be7ab84fc
/usr/lib/.build-id/13
/usr/lib/.build-id/13/52feb52d17ffc893e2e5f7f30e1368b6866e12
/usr/lib/.build-id/17
/usr/lib/.build-id/17/0751e5634633a27e51c68da7b7f4c114686ac8
/usr/lib/.build-id/18
/usr/lib/.build-id/18/4d1ce16a9500b9fb49a1f943b2d318edcf6d09
/usr/lib/.build-id/1b
/usr/lib/.build-id/1b/d83edcbaca076cdd711ad9dae03b23220c4cbe
/usr/lib/.build-id/20
/usr/lib/.build-id/20/012de213ad03f61be1d5ca2003ab11e07ebc88
/usr/lib/.build-id/22
/usr/lib/.build-id/22/d3663b73ddf4ba6299e0850c4cef8b799c79d3
/usr/lib/.build-id/22/ed1ec9779db1e3b9826ee6263a88555029a207
/usr/lib/.build-id/2a
/usr/lib/.build-id/2a/9646baf78b3905978594c0c2d31ff7efe5da59
/usr/lib/.build-id/31
/usr/lib/.build-id/31/2bfef8171e121f25bb2270748c38dea8ec898a
/usr/lib/.build-id/32
/usr/lib/.build-id/32/51e3d4cc9520bb8f79996c46aa5b787abc5b4f
/usr/lib/.build-id/32/aae9191f3b69eeb6de53a05d76f1c824bb2881
/usr/lib/.build-id/41
/usr/lib/.build-id/41/1349469b444304383d9f1fdc9dd005b534e8f3
/usr/lib/.build-id/41/1349469b444304383d9f1fdc9dd005b534e8f3.1
/usr/lib/.build-id/4a
/usr/lib/.build-id/4a/4c94e96b628d74708c1a43eaf6154f2802b31e
/usr/lib/.build-id/56
/usr/lib/.build-id/56/02fc829c925fbf2974b199c21949af94d52f4a
/usr/lib/.build-id/62
/usr/lib/.build-id/62/94613eeaf5529483a35dcdce6719aee407cd39
/usr/lib/.build-id/6f
/usr/lib/.build-id/6f/fef840b74bcd3018e4787f85671e5d5e618faa
/usr/lib/.build-id/74
/usr/lib/.build-id/74/fb90e257b2e08ad9e5be0a3b0cece89b0655e0
/usr/lib/.build-id/79
/usr/lib/.build-id/79/481b9bac9dc1c9116d96f847ace7d4eec0a0da
/usr/lib/.build-id/7b
/usr/lib/.build-id/7b/96207e74bf53de7f5d6d202652947dd8bb2fc7
/usr/lib/.build-id/80
/usr/lib/.build-id/80/28bc0c2268ef7c56b8884b322cf77b7f7ea480
/usr/lib/.build-id/84
/usr/lib/.build-id/84/b5647636062e312993357d1d10c90a7ed9170b
/usr/lib/.build-id/89
/usr/lib/.build-id/89/68b50c1618b015964e0bc2bc70c658719ebf7a
/usr/lib/.build-id/93
/usr/lib/.build-id/93/9a370b58a4ff61f64b8ba51842b03e2810dca1
/usr/lib/.build-id/94
/usr/lib/.build-id/94/9f9a1c09d0128767f892759b04d2ccddc3681f
/usr/lib/.build-id/95
/usr/lib/.build-id/95/11e119b94062d30a10cfe5a3183d498e117938
/usr/lib/.build-id/95/227bfbbd1ef5e07750f2bd5fa91311c55b02ba
/usr/lib/.build-id/97
/usr/lib/.build-id/97/27d8a51e7a18b137faf60aa901c202e6fa53dd
/usr/lib/.build-id/aa
/usr/lib/.build-id/aa/4051780f3bdeed28b6b70bf36c2e21a18741e9
/usr/lib/.build-id/ab
/usr/lib/.build-id/ab/725d52e8dd03052602e702e6dd50e4805cf8ca
/usr/lib/.build-id/ae
/usr/lib/.build-id/ae/8bbe051c47d32b4bb5dda8e1db8a1d1242307e
/usr/lib/.build-id/b2
/usr/lib/.build-id/b2/025f7dae443234f5aafe41e9f7223703f24192
/usr/lib/.build-id/b2/025f7dae443234f5aafe41e9f7223703f24192.1
/usr/lib/.build-id/b2/025f7dae443234f5aafe41e9f7223703f24192.2
/usr/lib/.build-id/b2/025f7dae443234f5aafe41e9f7223703f24192.3
/usr/lib/.build-id/c0
/usr/lib/.build-id/c0/c977f5e7b387e1534b5509ae8f95355b53a283
/usr/lib/.build-id/ce
/usr/lib/.build-id/ce/ab2ea6e9a2d25b1a1a43be354669268b25533c
/usr/lib/.build-id/cf
/usr/lib/.build-id/cf/fea5a6c6584acfa5131bc8aa51702610ba71d0
/usr/lib/.build-id/d1
/usr/lib/.build-id/d1/de6b053f6c66cc68c4450aa643359946875285
/usr/lib/.build-id/d3
/usr/lib/.build-id/d3/8bc653f061c5ff371911a9dd6a841a6d0899f9
/usr/lib/.build-id/d4
/usr/lib/.build-id/d4/69dd9ba825df7ee22194175e83dc4f4827506a
/usr/lib/.build-id/d7
/usr/lib/.build-id/d7/a7d7b2ecee21ff3a90b6548c201a14b22150bb
/usr/lib/.build-id/db
/usr/lib/.build-id/db/15f8b0724cf33bbd93ac0b7771ba0ce6205d6a
/usr/lib/.build-id/df
/usr/lib/.build-id/df/7de9ad02d48a137e593a03186c57fe10f22db4
/usr/lib/.build-id/e0
/usr/lib/.build-id/e0/6dc6f3b4bb6675c01fb65557b1d6d6583fcd18
/usr/lib/.build-id/e2
/usr/lib/.build-id/e2/89fe9ff187b97b93b81aba524a5c0c2a492511
/usr/lib/.build-id/ef
/usr/lib/.build-id/ef/56ad255b53d414272c261f99c93c42a5bb8f90
/usr/lib/.build-id/ef/56ad255b53d414272c261f99c93c42a5bb8f90.1
/usr/lib/.build-id/f3
/usr/lib/.build-id/f3/9df51c414f3bda9abb9e1db3a72e426e738588
/usr/lib/.build-id/f3/9df51c414f3bda9abb9e1db3a72e426e738588.1
/usr/lib/.build-id/f3/9df51c414f3bda9abb9e1db3a72e426e738588.2
/usr/lib/.build-id/f3/a89ad27254ccfbee069670e6c7636c9d7dc61b
/usr/lib/.build-id/f5
/usr/lib/.build-id/f5/3b3125ee0847d4264bbcccf7ffa3815e8ca9fe
/usr/lib/.build-id/f6
/usr/lib/.build-id/f6/fc8a8eebf2564e83e11480bc62786e46e1948f
/usr/libexec/nmh
/usr/libexec/nmh/ap
/usr/libexec/nmh/dp
/usr/libexec/nmh/fmtdump
/usr/libexec/nmh/mhl
/usr/libexec/nmh/mkstemp
/usr/libexec/nmh/post
/usr/libexec/nmh/rcvdist
/usr/libexec/nmh/rcvpack
/usr/libexec/nmh/rcvstore
/usr/libexec/nmh/rcvtty
/usr/libexec/nmh/slocal
/usr/libexec/nmh/spost
/usr/libexec/nmh/viamail
/usr/share/doc/nmh/COMPLETION-TCSH
/usr/share/doc/nmh/COMPLETION-ZSH
/usr/share/doc/nmh/COPYRIGHT
/usr/share/doc/nmh/DIFFERENCES
/usr/share/doc/nmh/FAQ
/usr/share/doc/nmh/INSTALL
/usr/share/doc/nmh/MAIL.FILTERING
/usr/share/doc/nmh/MAILING-LISTS
/usr/share/doc/nmh/NEWS
/usr/share/doc/nmh/README
/usr/share/doc/nmh/README-ATTACHMENTS
/usr/share/doc/nmh/README-HOOKS
/usr/share/doc/nmh/README-components
/usr/share/doc/nmh/README.SASL
/usr/share/doc/nmh/README.about
/usr/share/doc/nmh/README.developers
/usr/share/doc/nmh/README.manpages
/usr/share/doc/nmh/TODO
/usr/share/doc/nmh/VERSION
/usr/share/doc/nmh/contrib
/usr/share/doc/nmh/contrib/localpostproc
/usr/share/doc/nmh/contrib/ml
/usr/share/doc/nmh/contrib/replaliases
/usr/share/doc/nmh/contrib/replyfilter
/usr/share/doc/nmh/contrib/vpick
/usr/share/man/man1/ali.1.gz
/usr/share/man/man1/anno.1.gz
/usr/share/man/man1/burst.1.gz
/usr/share/man/man1/comp.1.gz
/usr/share/man/man1/dist.1.gz
/usr/share/man/man1/flist.1.gz
/usr/share/man/man1/flists.1.gz
/usr/share/man/man1/fmttest.1.gz
/usr/share/man/man1/fnext.1.gz
/usr/share/man/man1/folder.1.gz
/usr/share/man/man1/folders.1.gz
/usr/share/man/man1/forw.1.gz
/usr/share/man/man1/fprev.1.gz
/usr/share/man/man1/inc.1.gz
/usr/share/man/man1/install-mh.1.gz
/usr/share/man/man1/mark.1.gz
/usr/share/man/man1/mh-mkstemp.1.gz
/usr/share/man/man1/mhbuild.1.gz
/usr/share/man/man1/mhfixmsg.1.gz
/usr/share/man/man1/mhical.1.gz
/usr/share/man/man1/mhl.1.gz
/usr/share/man/man1/mhlist.1.gz
/usr/share/man/man1/mhlogin.1.gz
/usr/share/man/man1/mhmail.1.gz
/usr/share/man/man1/mhn.1.gz
/usr/share/man/man1/mhparam.1.gz
/usr/share/man/man1/mhpath.1.gz
/usr/share/man/man1/mhshow.1.gz
/usr/share/man/man1/mhstore.1.gz
/usr/share/man/man1/msgchk.1.gz
/usr/share/man/man1/new.1.gz
/usr/share/man/man1/next.1.gz
/usr/share/man/man1/packf.1.gz
/usr/share/man/man1/pick.1.gz
/usr/share/man/man1/prev.1.gz
/usr/share/man/man1/prompter.1.gz
/usr/share/man/man1/rcvdist.1.gz
/usr/share/man/man1/rcvpack.1.gz
/usr/share/man/man1/rcvstore.1.gz
/usr/share/man/man1/rcvtty.1.gz
/usr/share/man/man1/refile.1.gz
/usr/share/man/man1/repl.1.gz
/usr/share/man/man1/rmf.1.gz
/usr/share/man/man1/rmm.1.gz
/usr/share/man/man1/scan.1.gz
/usr/share/man/man1/send.1.gz
/usr/share/man/man1/sendfiles.1.gz
/usr/share/man/man1/show.1.gz
/usr/share/man/man1/slocal.1.gz
/usr/share/man/man1/sortm.1.gz
/usr/share/man/man1/unseen.1.gz
/usr/share/man/man1/whatnow.1.gz
/usr/share/man/man1/whom.1.gz
/usr/share/man/man5/mh-alias.5.gz
/usr/share/man/man5/mh-draft.5.gz
/usr/share/man/man5/mh-folders.5.gz
/usr/share/man/man5/mh-format.5.gz
/usr/share/man/man5/mh-mail.5.gz
/usr/share/man/man5/mh-profile.5.gz
/usr/share/man/man5/mh-sequence.5.gz
/usr/share/man/man5/mh-tailor.5.gz
/usr/share/man/man5/mh_profile.5.gz
/usr/share/man/man5/mts.conf.5.gz
/usr/share/man/man7/MH.7.gz
/usr/share/man/man7/mh-chart.7.gz
/usr/share/man/man7/mh-mime.7.gz
/usr/share/man/man7/nmh.7.gz
/usr/share/man/man8/ap.8.gz
/usr/share/man/man8/dp.8.gz
/usr/share/man/man8/fmtdump.8.gz
/usr/share/man/man8/post.8.gz

References

Summary

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