How To Install skeema on Debian 12
Introduction
In this tutorial we learn how to install skeema
on Debian 12.
What is skeema
skeema is:
Skeema is a tool for managing MySQL tables and schema changes in a declarative fashion using pure SQL. It provides a CLI tool allowing you to:
- Export CREATE TABLE statements to the filesystem, for tracking in a repo (git, hg, svn, etc)
- Diff changes in the schema repo against live DBs to automatically generate DDL
- Manage multiple environments (e.g. dev, staging, prod) and keep them in sync with ease
- Configure use of online schema change tools, such as pt-online-schema-change, for performing ALTERs
- Apply configurable linter rules to proactively catch schema design problems and enforce company policies Skeema supports a pull-request-based workflow for schema change submission, review, and execution. This permits your team to manage schema changes in exactly the same way as you manage code changes.
There are three methods to install skeema
on Debian 12. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install skeema Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install skeema
using apt-get
by running the following command:
sudo apt-get -y install skeema
Install skeema Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install skeema
using apt
by running the following command:
sudo apt -y install skeema
Install skeema 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 skeema
using aptitude
by running the following command:
sudo aptitude -y install skeema
How To Uninstall skeema on Debian 12
To uninstall only the skeema
package we can use the following command:
sudo apt-get remove skeema
Uninstall skeema And Its Dependencies
To uninstall skeema
and its dependencies that are no longer needed by Debian 12, we can use the command below:
sudo apt-get -y autoremove skeema
Remove skeema Configurations and Data
To remove skeema
configuration and data from Debian 12 we can use the following command:
sudo apt-get -y purge skeema
Remove skeema configuration, data, and all of its dependencies
We can use the following command to remove skeema
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge skeema
Dependencies
skeema have the following dependencies:
References
Summary
In this tutorial we learn how to install skeema
package on Debian 12 using different package management tools: apt
, apt-get
and aptitude
.