How To Install yorick-optimpack on Debian 12

Learn how to install yorick-optimpack on Debian 12 with this tutorial. yorick-optimpack is optimization of large scale problems for the Yorick language

Introduction

In this tutorial we learn how to install yorick-optimpack on Debian 12.

What is yorick-optimpack

yorick-optimpack is:

OptimPack is a portable C library which implements algorithms for optimization of large scale problems with bound constraints. Large scale means some million variables (e.g. pixel values) or more.

The most important algorithm is VMLM-B: a variable metric method with limited memory requirements and, possibly, bound constraints on the parameters. The algorithm is based on limited memory BFGS updates with Mor? & Thuente inexact line search and gradient projection to account for bounds.

This package contains two Yorick plug-ins: one based on the newer OptimPackLegacy version and, for backward compatibility, one based on the previous OptimPack1 implementation.

There are three methods to install yorick-optimpack on Debian 12. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install yorick-optimpack Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install yorick-optimpack using apt-get by running the following command:

sudo apt-get -y install yorick-optimpack

Install yorick-optimpack Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install yorick-optimpack using apt by running the following command:

sudo apt -y install yorick-optimpack

Install yorick-optimpack Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install yorick-optimpack using aptitude by running the following command:

sudo aptitude -y install yorick-optimpack

How To Uninstall yorick-optimpack on Debian 12

To uninstall only the yorick-optimpack package we can use the following command:

sudo apt-get remove yorick-optimpack

Uninstall yorick-optimpack And Its Dependencies

To uninstall yorick-optimpack and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove yorick-optimpack

Remove yorick-optimpack Configurations and Data

To remove yorick-optimpack configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge yorick-optimpack

Remove yorick-optimpack configuration, data, and all of its dependencies

We can use the following command to remove yorick-optimpack configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge yorick-optimpack

Dependencies

yorick-optimpack have the following dependencies:

References

Summary

In this tutorial we learn how to install yorick-optimpack package on Debian 12 using different package management tools: apt, apt-get and aptitude.