How To Install libosl-doc on Ubuntu 18.04

In this tutorial we learn how to install libosl-doc on Ubuntu 18.04. libosl-doc is library for Shogi playing programs

Introduction

In this tutorial we learn how to install libosl-doc on Ubuntu 18.04.

What is libosl-doc

libosl-doc is:

OpenShogiLib (OSL) provides following features of Shogi playing programs, especially for Shogi programming study. Shogi is a Japanese two-player board game like Chess.

  1. Board: reading/writing records, generating legal moves etc.
  2. Evaluation function: piece values and a lot of features
  3. Hash table: hashing boards etc.
  4. Checkmate search: concurrent df-pn+ etc.
  5. Search framework: full-depth search, realization probability etc.
  6. Move category: mate, illegal moves etc.
  7. Opening book
  8. Gaming: search time control etc.

This package contains documents that Doxygen generates from OSL source files.

There are three methods to install libosl-doc 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 libosl-doc Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libosl-doc

Install libosl-doc Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libosl-doc

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

sudo aptitude -y install libosl-doc

How To Uninstall libosl-doc on Ubuntu 18.04

To uninstall only the libosl-doc package we can use the following command:

sudo apt-get remove libosl-doc

Uninstall libosl-doc And Its Dependencies

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

sudo apt-get -y autoremove libosl-doc

Remove libosl-doc Configurations and Data

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

sudo apt-get -y purge libosl-doc

Remove libosl-doc configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libosl-doc

References

Summary

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