How To Install libgrapple-dev on Ubuntu 18.04

In this tutorial we learn how to install libgrapple-dev on Ubuntu 18.04. libgrapple-dev is a network layer designed for games (development files)

Introduction

In this tutorial we learn how to install libgrapple-dev on Ubuntu 18.04.

What is libgrapple-dev

libgrapple-dev is:

Grapple is designed to be a simple network layer, allowing the addition of multiplayer features to a game for as little as a dozen lines of code.

However it is also fully featured, so if you want more from your networking, you can have it.

Basic Features

  • Simple client-server networking
  • Keeps all clients aware of all other clients
  • Passworded servers
  • Data transfer via TCP, UDP, or reliable UDP

Advanced Features

  • Network messenging by either a push or a pull model, or a mixture of both
  • Multiple methods of querying users
  • User Groups for client bandwidth saving
  • Network load reacting data transmission and retransmission
  • Background pinging to monitor network states
  • Server failover
  • A fully functional lobby system

This package contains the header files and static libraries needed to build programs that use grapple.

Homepage: http://grapple.linuxgamepublishing.com/

There are three methods to install libgrapple-dev 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 libgrapple-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 libgrapple-dev using apt-get by running the following command:

sudo apt-get -y install libgrapple-dev

Install libgrapple-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libgrapple-dev

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

sudo aptitude -y install libgrapple-dev

How To Uninstall libgrapple-dev on Ubuntu 18.04

To uninstall only the libgrapple-dev package we can use the following command:

sudo apt-get remove libgrapple-dev

Uninstall libgrapple-dev And Its Dependencies

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

sudo apt-get -y autoremove libgrapple-dev

Remove libgrapple-dev Configurations and Data

To remove libgrapple-dev configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libgrapple-dev

Remove libgrapple-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libgrapple-dev

References

Summary

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