How To Install lpsolve on Fedora 34

lpsolve is A Mixed Integer Linear Programming (MILP) solver A Mixed Integer Linear Programming (MILP) solver

Introduction

In this tutorial we learn how to install lpsolve on Fedora 34.

What is lpsolve

Mixed Integer Linear Programming (MILP) solver lpsolve solves pure linear, (mixed) integer/binary, semi-continuous and special ordered sets (SOS) models. lpsolve 5.5.2.0 26.fc34 x86_64 514 k lpsolve-5.5.2.0-26.fc34.src.rpm fedora A Mixed Integer Linear Programming (MILP) solver http LGPLv2+ 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 or dnf to install lpsolve on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install lpsolve.

Install lpsolve on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install lpsolve

Install lpsolve on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo yum -y install lpsolve

How To Uninstall lpsolve on Fedora 34

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

sudo dnf remove lpsolve

lpsolve Package Contents on Fedora 34

/usr/bin/lp_solve
/usr/lib/.build-id
/usr/lib/.build-id/01
/usr/lib/.build-id/01/d5238880c8dd5964965b1428467f636df7f9e0
/usr/lib/.build-id/55
/usr/lib/.build-id/55/c4908efec2630d86daf84516abae9ee095a816
/usr/lib64/liblpsolve55.so
/usr/share/doc/lpsolve
/usr/share/doc/lpsolve/LUSOL-overview.txt
/usr/share/doc/lpsolve/LUSOL_LGPL.txt
/usr/share/doc/lpsolve/LUSOL_README.txt
/usr/share/doc/lpsolve/README.txt
/usr/bin/lp_solve
/usr/lib/.build-id
/usr/lib/.build-id/7a
/usr/lib/.build-id/7a/3a761c8dd55e2b2942c6c73146f19c45214b41
/usr/lib/.build-id/b6
/usr/lib/.build-id/b6/7e1799ec52f5dff97c6c660cac6fdbceb7ceaa
/usr/lib/liblpsolve55.so
/usr/share/doc/lpsolve
/usr/share/doc/lpsolve/LUSOL-overview.txt
/usr/share/doc/lpsolve/LUSOL_LGPL.txt
/usr/share/doc/lpsolve/LUSOL_README.txt
/usr/share/doc/lpsolve/README.txt

References

Summary

In this tutorial we learn how to install lpsolve on Fedora 34 using yum and dnf.