How To Install libsqlexpr-ocaml-dev on Debian 10
Introduction
In this tutorial we learn how to install libsqlexpr-ocaml-dev
on Debian 10.
What is libsqlexpr-ocaml-dev
libsqlexpr-ocaml-dev is:
Minimalistic library and syntax extension for type-safe, convenient execution of SQL statements. Currently compatible with Sqlite3.
Sqlexpr features:
- automated prepared statement caching, param binding, data extraction, error checking (including automatic stmt reset to avoid BUSY/LOCKED errors in subsequent queries), stmt finalization on db close, etc.
- HOFs like iter, fold, transaction
- support for different concurrency models: everything is functorized over a THREAD monad, so you can for instance do concurrent folds/iters with Lwt
- support for SQL stmt syntax checks and some extra semantic checking (column names, etc)
There are three methods to install libsqlexpr-ocaml-dev
on Debian 10. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libsqlexpr-ocaml-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 libsqlexpr-ocaml-dev
using apt-get
by running the following command:
sudo apt-get -y install libsqlexpr-ocaml-dev
Install libsqlexpr-ocaml-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libsqlexpr-ocaml-dev
using apt
by running the following command:
sudo apt -y install libsqlexpr-ocaml-dev
Install libsqlexpr-ocaml-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 Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libsqlexpr-ocaml-dev
using aptitude
by running the following command:
sudo aptitude -y install libsqlexpr-ocaml-dev
How To Uninstall libsqlexpr-ocaml-dev on Debian 10
To uninstall only the libsqlexpr-ocaml-dev
package we can use the following command:
sudo apt-get remove libsqlexpr-ocaml-dev
Uninstall libsqlexpr-ocaml-dev And Its Dependencies
To uninstall libsqlexpr-ocaml-dev
and its dependencies that are no longer needed by Debian 10, we can use the command below:
sudo apt-get -y autoremove libsqlexpr-ocaml-dev
Remove libsqlexpr-ocaml-dev Configurations and Data
To remove libsqlexpr-ocaml-dev
configuration and data from Debian 10 we can use the following command:
sudo apt-get -y purge libsqlexpr-ocaml-dev
Remove libsqlexpr-ocaml-dev configuration, data, and all of its dependencies
We can use the following command to remove libsqlexpr-ocaml-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libsqlexpr-ocaml-dev
Dependencies
libsqlexpr-ocaml-dev have the following dependencies:
- libbatteries-ocaml-dev-sgbg8
- libcamlp4-ocaml-dev-w0ou6
- libcsv-ocaml-dev-dkq57
- libestring-ocaml-dev-04wq1
- liblwt-ocaml-dev-wwm00
- libresult-ocaml-dev-ciso5
- libsqlexpr-ocaml-ynx93
- libsqlite3-ocaml-dev-fg2a5
- ocaml-nox-4.05.0
- libc6
References
Summary
In this tutorial we learn how to install libsqlexpr-ocaml-dev
package on Debian 10 using different package management tools: apt
, apt-get
and aptitude
.