Open In App

How to Install Golang Migrate on Ubuntu?

Last Updated : 10 Jun, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

Schema migration is an important activity when dealing with databases that we frequently have to perform during the application’s life cycle to adapt to new business needs. Golang migrate is a tool which helps in this operation.

Installing Golang Migrate on Ubuntu

Step 1: Open the terminal for executing the installation commands.

Open-the-linux-terminal

 

Step 2: Let us setup the repository to install the migrate package.

 curl -s https://packagecloud.io/install/repositories/golang-migrate/migrate/script.deb.sh | sudo bash

 

Step 3: Update the system by executing the following command.

sudo apt-get update

Update-the-system

 

Step 4: Now, it’s time to set up golang migrate. Execute the following command in the terminal to install migrate.

sudo apt-get install migrate

Install-migrate-on-linux

 

Now you can use golang migrate to perform database migrations.


Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads