How To Install NLopt on Fedora 34
Introduction
In this tutorial we learn how to install NLopt
on Fedora 34.
What is NLopt
NLopt is a library for nonlinear local and global optimization, for functions with and without gradient information. It is designed as as simple, unified interface and packaging of several free/open-source nonlinear optimization libraries. It features bindings for GNU Guile, Octave and Python. This build has been made with C++-support enabled. NLopt 2.6.2 6.fc34 x86_64 236 k NLopt-2.6.2-6.fc34.src.rpm fedora Open-Source library for nonlinear optimization http BSD and LGPLv2+ and MIT and Public Domain NLopt is a library for nonlinear local and global optimization, for functions with and without gradient information. It is designed as as simple, unified interface and packaging of several free/open-source nonlinear optimization libraries. It features bindings for GNU Guile, Octave and Python. This build has been made with C++-support enabled.
We can use yum
or dnf
to install NLopt
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install NLopt.
Install NLopt 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 NLopt
using dnf
by running the following command:
sudo dnf -y install NLopt
Install NLopt 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 NLopt
using yum
by running the following command:
sudo yum -y install NLopt
How To Uninstall NLopt on Fedora 34
To uninstall only the NLopt
package we can use the following command:
sudo dnf remove NLopt
NLopt Package Contents on Fedora 34
/usr/lib/.build-id
/usr/lib/.build-id/09
/usr/lib/.build-id/09/d6629510fcdc43c347b0b7af738db0722c8c66
/usr/lib/libnlopt.so.0
/usr/lib/libnlopt.so.0.10.0
/usr/share/doc/NLopt
/usr/share/doc/NLopt/COPYING
/usr/share/doc/NLopt/COPYING.src_algs_direct
/usr/share/doc/NLopt/COPYRIGHT
/usr/share/doc/NLopt/COPYRIGHT.src_algs_ags
/usr/share/doc/NLopt/COPYRIGHT.src_algs_bobyqa
/usr/share/doc/NLopt/COPYRIGHT.src_algs_cobyla
/usr/share/doc/NLopt/COPYRIGHT.src_algs_esch
/usr/share/doc/NLopt/COPYRIGHT.src_algs_luksan
/usr/share/doc/NLopt/COPYRIGHT.src_algs_newuoa
/usr/share/doc/NLopt/COPYRIGHT.src_algs_slsqp
/usr/share/doc/NLopt/COPYRIGHT.src_algs_stogo
/usr/share/doc/NLopt/ChangeLog
/usr/share/doc/NLopt/NEWS.md
/usr/lib/.build-id
/usr/lib/.build-id/b3
/usr/lib/.build-id/b3/f62685711d8c62a443a056b1d3048b8051a7ad
/usr/lib64/libnlopt.so.0
/usr/lib64/libnlopt.so.0.10.0
/usr/share/doc/NLopt
/usr/share/doc/NLopt/COPYING
/usr/share/doc/NLopt/COPYING.src_algs_direct
/usr/share/doc/NLopt/COPYRIGHT
/usr/share/doc/NLopt/COPYRIGHT.src_algs_ags
/usr/share/doc/NLopt/COPYRIGHT.src_algs_bobyqa
/usr/share/doc/NLopt/COPYRIGHT.src_algs_cobyla
/usr/share/doc/NLopt/COPYRIGHT.src_algs_esch
/usr/share/doc/NLopt/COPYRIGHT.src_algs_luksan
/usr/share/doc/NLopt/COPYRIGHT.src_algs_newuoa
/usr/share/doc/NLopt/COPYRIGHT.src_algs_slsqp
/usr/share/doc/NLopt/COPYRIGHT.src_algs_stogo
/usr/share/doc/NLopt/ChangeLog
/usr/share/doc/NLopt/NEWS.md
References
- [NLopt website](http://ab-initio.mit.edu/nlopt http://ab-initio.mit.edu/nlopt)
Summary
In this tutorial we learn how to install NLopt
on Fedora 34 using yum and dnf.