How To Install golang-github-willf-bloom-dev on Ubuntu 20.04
Introduction
In this tutorial we learn how to install golang-github-willf-bloom-dev on Ubuntu 20.04.
What is golang-github-willf-bloom-dev
golang-github-willf-bloom-dev is:
A Bloom filter is a representation of a set of n items, where the main requirement is to make membership queries; i.e., whether an item is a member of a set.
A Bloom filter has two parameters: m, a maximum size (typically a reasonably large multiple of the cardinality of the set to represent) and k, the number of hashing functions on elements of the set. (The actual hashing functions are important, too, but this is not a parameter for this implementation). A Bloom filter is backed by a BitSet (https://github.com/willf/bitset); a key is represented in the filter by setting the bits at each value of the hashing functions (modulo m). Set membership is done by testing whether the bits at each value of the hashing functions (again, modulo m) are set. If so, the item is in the set. If the item is actually in the set, a Bloom filter will never fail (the true positive rate is 1.0); but it is susceptible to false positives. The art is to choose k and m correctly.
In this implementation, the hashing functions used is murmurhash (github.com/spaolacci/murmur3), a non-cryptographic hashing function.
There are three methods to install golang-github-willf-bloom-dev on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install golang-github-willf-bloom-dev Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install golang-github-willf-bloom-dev using apt-get by running the following command:
sudo apt-get -y install golang-github-willf-bloom-dev
Install golang-github-willf-bloom-dev Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install golang-github-willf-bloom-dev using apt by running the following command:
sudo apt -y install golang-github-willf-bloom-dev
Install golang-github-willf-bloom-dev 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 Ubuntu. Update apt database with aptitude using the following command.
sudo aptitude update
After updating apt database, We can install golang-github-willf-bloom-dev using aptitude by running the following command:
sudo aptitude -y install golang-github-willf-bloom-dev
How To Uninstall golang-github-willf-bloom-dev on Ubuntu 20.04
To uninstall only the golang-github-willf-bloom-dev package we can use the following command:
sudo apt-get remove golang-github-willf-bloom-dev
Uninstall golang-github-willf-bloom-dev And Its Dependencies
To uninstall golang-github-willf-bloom-dev and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove golang-github-willf-bloom-dev
Remove golang-github-willf-bloom-dev Configurations and Data
To remove golang-github-willf-bloom-dev configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge golang-github-willf-bloom-dev
Remove golang-github-willf-bloom-dev configuration, data, and all of its dependencies
We can use the following command to remove golang-github-willf-bloom-dev configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge golang-github-willf-bloom-dev
References
Summary
In this tutorial we learn how to install golang-github-willf-bloom-dev package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.