How do I install mutt 1.7.0 on Xenial or Trusty?
My favorite command line email client has a big new version. Mutt version 1.7.0 has been released on August 18th 2016 and among other changes and improvements the developers have merged the very useful 'sidebar' patch. I am very keen to come to grips with this!
How do I install this newest version of mutt on Xenial Xerus and Trusty Tahr?
As one may expect, Jonathon Fernyhough has a PPA for version 1.7.0 of mutt
for Ubuntu 16.04 (and 14.04 too) at https://launchpad.net/~jonathonf/+archive/ubuntu/backports:
sudo add-apt-repository ppa:jonathonf/backports
sudo apt-get update
sudo apt-get install mutt
Edwin's answer of using PPA is great. But if you like being adventurous You can try building from source too.
-
Download the source
wget -c ftp://ftp.mutt.org/pub/mutt/mutt-1.7.0.tar.gz
-
Extract it and
cd
to ittar xf mutt-1.7.0.tar.gz cd mutt-1.7.0/
-
Make sure you have necessary development packages installed. I had
build-essential
installed already and needed to installlibncurses5-dev
. So do thissudo apt-get install build-essential libncurses5-dev
-
Then proceed with installation. You should check the
INSTALL
file customize the build. For example you might want to use these parameters toconfigure
-
--enable-pop
for enabling POP3 support -
--enable-imap
for enabling IMAP support -
--with-ssl
which will enable SSL support for POP and IMAP. Needs OpenSSL headers and development libraries.
Now the typical sequence of commands. (If you want customizations, you'll need to pass the options after
./configure
like./configure --enable-pop
.)./configure make sudo make install
or if you want to use
checkinstall
the last step would besudo checkinstall -D make install
the
-D
switch is used to make a debian package from installation. Check details on it in the Addition section.Mutt 1.7 should get installed.
-
Addition: As andrew.46 said, we can also use checkinstall
instead of make install
. This will give us the opportunity to remove the package with a single command and to have a debian package (if -D
option is used), which can be used in multiple other machines to install it.
More on checkinstall
- Debian Administrators article on checkinstall