How To Install r-cran-mixsqp on Debian 12
Introduction
In this tutorial we learn how to install r-cran-mixsqp
on Debian 12.
What is r-cran-mixsqp
r-cran-mixsqp is:
Provides an optimization method based on sequential quadratic programming (SQP) for maximum likelihood estimation of the mixture proportions in a finite mixture model where the component densities are known. The algorithm is expected to obtain solutions that are at least as accurate as the state-of-the-art MOSEK interior-point solver (called by function “KWDual” in the ‘REBayes’ package), and they are expected to arrive at solutions more quickly when the number of samples is large and the number of mixture components is not too large. This implements the “mix-SQP” algorithm, with some improvements, described in Y. Kim, P. Carbonetto, M. Stephens & M. Anitescu (2020) DOI:10.1080/10618600.2019.1689985.
There are three methods to install r-cran-mixsqp
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 r-cran-mixsqp Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install r-cran-mixsqp
using apt-get
by running the following command:
sudo apt-get -y install r-cran-mixsqp
Install r-cran-mixsqp Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install r-cran-mixsqp
using apt
by running the following command:
sudo apt -y install r-cran-mixsqp
Install r-cran-mixsqp 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 r-cran-mixsqp
using aptitude
by running the following command:
sudo aptitude -y install r-cran-mixsqp
How To Uninstall r-cran-mixsqp on Debian 12
To uninstall only the r-cran-mixsqp
package we can use the following command:
sudo apt-get remove r-cran-mixsqp
Uninstall r-cran-mixsqp And Its Dependencies
To uninstall r-cran-mixsqp
and its dependencies that are no longer needed by Debian 12, we can use the command below:
sudo apt-get -y autoremove r-cran-mixsqp
Remove r-cran-mixsqp Configurations and Data
To remove r-cran-mixsqp
configuration and data from Debian 12 we can use the following command:
sudo apt-get -y purge r-cran-mixsqp
Remove r-cran-mixsqp configuration, data, and all of its dependencies
We can use the following command to remove r-cran-mixsqp
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge r-cran-mixsqp
Dependencies
r-cran-mixsqp have the following dependencies:
- r-base-core
- r-api-4.0
- r-cran-irlba
- r-cran-rcpp
- r-cran-rcpparmadillo
- libblas3
- libc6
- libgcc-s1
- liblapack3
- libstdc++6
References
Summary
In this tutorial we learn how to install r-cran-mixsqp
package on Debian 12 using different package management tools: apt
, apt-get
and aptitude
.