How To Install sdpam on Ubuntu
Posted on April 1, 2023  (Last modified on May 20, 2023 )
2 minutes • 393 words
Introduction
In this tutorial we learn how to install sdpam on Ubuntu.
What is sdpam
sdpam is:
This package provides SDPA-M, Matlab/Octave interface of SDPA (SemiDefinite Programming Algorithm). See the information of the package ‘sdpa’. To use SDPA-M on Octave, add /usr/share/sdpa/mex and /usr/lib/sdpa/mex to your Octave path. The summary of each command can be found in /usr/share/sdpa/mex/CommandList.txt The compilation by Matlab can be found at /usr/share/doc/sdpa/README. Further information on SDP and SDPA can be found at http://sdpa.sourceforge.net/
There are three methods to install sdpam on Ubuntu. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install sdpam Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install sdpam using apt-get by running the following command:
sudo apt-get -y install sdpam
Install sdpam Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install sdpam using apt by running the following command:
sudo apt -y install sdpam
Install sdpam 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 Ubuntu. Update apt database with aptitude using the following command.
sudo aptitude update
After updating apt database, We can install sdpam using aptitude by running the following command:
sudo aptitude -y install sdpam
How To Uninstall sdpam on Ubuntu
To uninstall only the sdpam package we can use the following command:
sudo apt-get remove sdpam
Uninstall sdpam And Its Dependencies
To uninstall sdpam and its dependencies that are no longer needed by Ubuntu, we can use the command below:
sudo apt-get -y autoremove sdpam
Remove sdpam Configurations and Data
To remove sdpam configuration and data from Ubuntu we can use the following command:
sudo apt-get -y purge sdpam
Remove sdpam configuration, data, and all of its dependencies
We can use the following command to remove sdpam configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge sdpam
Dependencies
sdpam have the following dependencies:
- libc6
- libgcc-s1
- libgfortran5
- libscotch-6.1
- libstdc++6
- libopenblas-pthread-dev
- libmumps-seq-5.4
- octave
- libsdpa-dev
References
Summary
In this tutorial we learn how to install sdpam package on Ubuntu using different package management tools: apt, apt-get and aptitude.