How To Install openstv on Ubuntu 18.04

In this tutorial we learn how to install openstv on Ubuntu 18.04. openstv is single transferable vote and instant runoff voting software

Introduction

In this tutorial we learn how to install openstv on Ubuntu 18.04.

What is openstv

openstv is:

OpenSTV is an open-source software for implementing the single transferable vote and other voting methods such as instant runoff voting, Condorcet voting, and approval voting. OpenSTV is the only open-source software that implements the single transferable vote exactly as used by governments, including Scotland and the City of Cambridge, Massachusetts. These methods have been extensively verified against other software and/or actual election results.

Organizations can use OpenSTV to implement their own elections. First, the organization must adopt a voting method. Second, the organization must conduct the vote, and this will most likely be done with paper ballots. Third, the ballots must be entered into the OpenSTV program. Finally, you can use OpenSTV to count the votes and determine the winners of the election.

There are three methods to install openstv on Ubuntu 18.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 openstv Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install openstv

Install openstv Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install openstv

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

sudo aptitude -y install openstv

How To Uninstall openstv on Ubuntu 18.04

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

sudo apt-get remove openstv

Uninstall openstv And Its Dependencies

To uninstall openstv and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove openstv

Remove openstv Configurations and Data

To remove openstv configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge openstv

Remove openstv configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge openstv

References

Summary

In this tutorial we learn how to install openstv package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.