How to Install “golang-gopkg-mgo.v2-dev” Package on Ubuntu?
mgo is a MongoDB driver for the Go language that implements a rich and well-tested selection of features under a very simple API following standard Go idioms. mgo ha0.s long gone unmaintained and does not support new features of new versions of MongoDB. Anyways, let’s learn how to install it on Ubuntu.
Installation of “golang-gopkg-mgo.v2-dev” Package on Ubuntu
Follow the below steps to install the mgo package.
Step 1: Update the apt packages database
sudo apt update
Step 2: Install the mgo package
sudo apt install -y golang-gopkg-mgo.v2-dev
Step 3: Verify the package installation (Optional).
dpgk -l | grep mgo
As you can see, we’ve successfully installed the golang-mgo package. That’s all for now, let me know if you’ve any problems with it.
Contact Us