How To Install lbdb on debian 9

In this tutorial we learn how to install lbdb on debian 9. lbdb is Little Brothers DataBase for the mutt mail reader

Introduction

In this tutorial we learn how to install lbdb on debian 9.

What is lbdb

This package consists of a set of small tools, which collect mail addresses from several sources and offer these addresses to the mutt external query feature. At the moment the following modules are supported:

  • m_finger (uses the finger(1) command)
  • m_inmail (scans incoming mail for addresses)
  • m_passwd (searches /etc/passwd)
  • m_yppasswd (searches the YP password database)
  • m_nispasswd (searches the NIS password database)
  • m_getent (searches the configured password database)
  • m_pgp2, m_pgp5, m_gpg (searches your PGP or GnuPG keyrings)
  • m_fido (searches the Fidonet nodelist)
  • m_abook (uses the address book application abook(1))
  • m_goobook (uses goobook to read Google contacts)
  • m_addr_email (uses addr-email from the addressbook Tk program)
  • m_muttalias (searches your Mutt mail aliases)
  • m_pine (searches your Pine addressbook files)
  • m_wanderlust (search the WanderLust alias database)
  • m_palm (uses your Palm database; needs libpalm-perl package)
  • m_gnomecard (uses GnomeCard database files)
  • m_bbdb (search your BBDB (big brother database))
  • m_ldap (query some LDAP server)
  • m_evolution (search in the Evolution addressbook)
  • m_vcf (search in vcard files using libvformat)

There are three ways to install lbdb on debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install lbdb Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install lbdb using apt-get by running the following command:

sudo apt-get -y install lbdb

Install lbdb Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install lbdb using apt by running the following command:

sudo apt -y install lbdb

Install lbdb Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install lbdb using aptitude by running the following command:

sudo aptitude -y install lbdb

How To Uninstall lbdb on debian 9

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

sudo apt-get remove lbdb

Uninstall lbdb And Its Dependencies

To uninstall lbdb and its dependencies that are no longer needed by debian 9, we can use the command below:

sudo apt-get -y autoremove lbdb

Remove lbdb Configurations and Data

To remove lbdb configuration and data from debian 9 we can use the following command:

sudo apt-get -y purge lbdb

Remove lbdb configuration, data, and all of its dependencies

We can use the following command to remove lbdb configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge lbdb

References

Summary

In this tutorial we learn how to install lbdb on debian 9 using different package management tools like apt, apt-get and aptitude.