How To Install lpsolve.x86_64 on Amazon Linux 2

In this tutorial we learn how to install lpsolve.x86_64 in Amazon Linux 2. lpsolve.x86_64 is A Mixed Integer Linear Programming (MILP) solver

Introduction

In this tutorial we learn how to install lpsolve.x86_64 on Amazon Linux 2.

What is lpsolve.x86_64

Mixed Integer Linear Programming (MILP) solver lpsolve solves pure linear, (mixed) integer/binary, semi-continuous and special ordered sets (SOS) models.

We can use yum to install lpsolve.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install lpsolve.x86_64.

Install lpsolve.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install lpsolve.x86_64 using yum by running the following command:

sudo yum -y install lpsolve.x86_64

How To Uninstall lpsolve.x86_64 on Amazon Linux 2

To uninstall only the lpsolve.x86_64 package we can use the following command:

sudo yum remove lpsolve.x86_64

lpsolve.x86_64 Package Contents on Amazon Linux 2

/usr/bin/lp_solve
/usr/lib64/liblpsolve55.so
/usr/share/doc/lpsolve-5.5.2.0
/usr/share/doc/lpsolve-5.5.2.0/LUSOL-overview.txt
/usr/share/doc/lpsolve-5.5.2.0/LUSOL_LGPL.txt
/usr/share/doc/lpsolve-5.5.2.0/LUSOL_README.txt
/usr/share/doc/lpsolve-5.5.2.0/README.txt

References

Summary

In this tutorial we learn how to install lpsolve.x86_64 on Amazon Linux 2 using yum.