migrate-repository command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
migrate-repository: command not found
or when using sudo you get the following error message
sudo: migrate-repository: command not found
Solutions to migrate-repository: command not found
How To Fix migrate-repository: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu migrate-repository is provided by python3-migrate package.
python3-migrate is:
Inspired by Ruby on Rails’ migrations, migrate provides a way to deal with database schema changes in SQLAlchemy projects.
SQLAlchemy-migrate is build on top of SQLAlchemy and provides a changeset and a versioning API for database schemas as well as a script utilizing these APIs. The database change sets are managed in a file based repository allowing upgrades and downgrades of database schema versions. The change sets may consist of Python code facilitating the changeset API or SQL scripts.
SQLAlchemy-migrate has support for MySQL, PostgreSQL, SQLite and Oracle databases. The support for Oracle is not as well tested as the support for the other database systems.
This package provides the Python 3.x module.
To fix this problem, we can install more using the command below.
sudo apt-get -y install python3-migrate
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install python3-migrate.
sudo apt -y install python3-migrate
Or if you have aptitude installed you can use the following command.
sudo aptitude install python3-migrate
Summary
In this tutorial we learn how to fix migrate-repository command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.