How To Install mccs on Ubuntu 18.04
Introduction
In this tutorial we learn how to install mccs on Ubuntu 18.04.
What is mccs
mccs is:
mccs is a solver for package dependencies expressed in the CUDF format. It takes as input a CUDF problem and computes the best solution according to a combination of optimization criteria chosen by the user. Basic criteria to be maximized or minimized may be selected from a list of pre-defined criteria, and these can be combined using various aggregation operators. It relies on an Integer Programming solver or a Pseudo Boolean solver to achieve its task. The version of mccs distributed with this package can be used together with two different solving engines available in Debian, that is lpsolve or cbc. Furthermore, mccs may also be used together with other solvers like Cplex, Gurobi, Glpk, SCIP or WBO.
There are three methods to install mccs on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install mccs Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install mccs using apt-get by running the following command:
sudo apt-get -y install mccs
Install mccs Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install mccs using apt by running the following command:
sudo apt -y install mccs
Install mccs 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 mccs using aptitude by running the following command:
sudo aptitude -y install mccs
How To Uninstall mccs on Ubuntu 18.04
To uninstall only the mccs package we can use the following command:
sudo apt-get remove mccs
Uninstall mccs And Its Dependencies
To uninstall mccs and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove mccs
Remove mccs Configurations and Data
To remove mccs configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge mccs
Remove mccs configuration, data, and all of its dependencies
We can use the following command to remove mccs configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge mccs
References
Summary
In this tutorial we learn how to install mccs package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.