How To Install mp on Fedora 34

mp is An open-source library for mathematical programming

Introduction

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

What is mp

An open-source library for mathematical programming. Features * Reusable high-performance .nl reader * Efficient type-safe C++ API for connecting solvers to AMPL and other systems * Interfaces to solvers supporting AMPL extensions for logic and constraint programming * IBM ILOG CPLEX and CPLEX CP Optimizer (ilogcp) * Gecode * JaCoP * Interfaces to the following solvers * LocalSolver * Sulum * Interfaces to other solvers via AMPL Solver Library * Cross-platform build support with CMake and continuous integration systems. This includes third-party solvers and libraries (COIN-OR solvers with CMake support are available in the ampl/coin repository). * AMPLGSL, an AMPL function library providing access to the GNU Scientific Library (GSL) functions. See the AMPLGSL documentation. * Database support on Linux and MacOS X. See Database and spreadsheet connection guide. * SMPSWriter, a converter from deterministic equivalent of a two-stage stochastic programming (SP) problem written in AMPL to an SP problem in SMPS format.

We can use yum or dnf to install mp on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install mp.

Install mp 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 mp using dnf by running the following command:

sudo dnf -y install mp

Install mp 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 mp using yum by running the following command:

sudo yum -y install mp

How To Uninstall mp on Fedora 34

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

sudo dnf remove mp

mp Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/09
/usr/lib/.build-id/09/03e6d79131d4738af751ef16e5590bb04383d8
/usr/lib/.build-id/22
/usr/lib/.build-id/22/61cead8121f8ced3b4df5dbc67328883ebfc7c
/usr/lib/.build-id/25
/usr/lib/.build-id/25/659374d9a37d5902ca40cae25eecaf12e2a845
/usr/lib/.build-id/26
/usr/lib/.build-id/26/8d36df22ea4d41a24a2d097d789d7e8d13310d
/usr/lib/.build-id/29
/usr/lib/.build-id/29/0f07b72c0b9e706d15c80c6e0b79487684ca4c
/usr/lib/.build-id/3c
/usr/lib/.build-id/3c/973ff8f98bb1eb06661e4fac3566f9772692bf
/usr/lib/.build-id/3e
/usr/lib/.build-id/3e/1d5608fd943abfeb59b516615f16532e1b9e5b
/usr/lib/.build-id/3e/a254036458e8f30417728a0fc3e1095322869b
/usr/lib/.build-id/41
/usr/lib/.build-id/41/af8bd1c4eca5d9c504edd2c3511c19a67380e9
/usr/lib/.build-id/6f
/usr/lib/.build-id/6f/d58508db0d14ce8419952e05d722bf66ac62cd
/usr/lib/.build-id/70
/usr/lib/.build-id/70/f40d98998167c6f149bbb1b064383d9907254f
/usr/lib/.build-id/73
/usr/lib/.build-id/73/f4b4343639db7d1237962ba428c5aa42c21c12
/usr/lib/.build-id/7c
/usr/lib/.build-id/7c/dddff00c245421b93d645bdf1f7de871c75774
/usr/lib/.build-id/7f
/usr/lib/.build-id/7f/04cdebc79fbb7d68f149a2dd46c62b8a77e10a
/usr/lib/.build-id/89
/usr/lib/.build-id/89/3757ef1ef5a23aefcab3c6ffa5c265f2dc4ac3
/usr/lib/.build-id/af
/usr/lib/.build-id/af/809e422412bfc1995f48817ea1547cda9ce631
/usr/lib/.build-id/b5
/usr/lib/.build-id/b5/40215503b7b12f41c4dfa8a46e547935da73c3
/usr/lib/.build-id/d5
/usr/lib/.build-id/d5/4fcb6b9115f23892e37f7345665c0ac7c99b5b
/usr/lib64/libasl.so.3
/usr/lib64/libasl.so.3.1.0
/usr/lib64/libmp.so.3
/usr/lib64/libmp.so.3.1.0
/usr/lib64/mp
/usr/lib64/mp/bin
/usr/lib64/mp/bin/amplgsl.dll
/usr/lib64/mp/bin/ampljacop.jar
/usr/lib64/mp/bin/ampltabl.dll
/usr/lib64/mp/bin/arithchk
/usr/lib64/mp/bin/cp.dll
/usr/lib64/mp/bin/fullbit.dll
/usr/lib64/mp/bin/gecode
/usr/lib64/mp/bin/gen-expr-info
/usr/lib64/mp/bin/gjh
/usr/lib64/mp/bin/gsl-info
/usr/lib64/mp/bin/jacop
/usr/lib64/mp/bin/lib
/usr/lib64/mp/bin/lib/jacop-4.7.0.jar
/usr/lib64/mp/bin/libamplgecode.so
/usr/lib64/mp/bin/libampljacop.so
/usr/lib64/mp/bin/libamplsmpswriter.so
/usr/lib64/mp/bin/simpbit.dll
/usr/lib64/mp/bin/smpswriter
/usr/lib64/mp/bin/tableproxy64
/usr/share/doc/mp
/usr/share/doc/mp/README.rst
/usr/share/licenses/mp
/usr/share/licenses/mp/LICENSE.rst
/usr/share/modulefiles/mp-x86_64

References

Summary

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