How To Install nrefactory-samples on Kali Linux
Introduction
In this tutorial we learn how to install nrefactory-samples
on Kali Linux.
What is nrefactory-samples
nrefactory-samples is:
NRefactory is the C# analysis library used in the SharpDevelop and MonoDevelop IDEs. It allows applications to easily analyze both syntax and semantics of C# programs. It is quite similar to Microsoft’s Roslyn project; except that it is not a full compiler ?? NRefactory only analyzes C# code, it does not generate IL code.
This package contains sample programs for the NRefactory library.
There are three methods to install nrefactory-samples
on Kali Linux. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install nrefactory-samples Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install nrefactory-samples
using apt-get
by running the following command:
sudo apt-get -y install nrefactory-samples
Install nrefactory-samples Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install nrefactory-samples
using apt
by running the following command:
sudo apt -y install nrefactory-samples
Install nrefactory-samples Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install nrefactory-samples
using aptitude
by running the following command:
sudo aptitude -y install nrefactory-samples
How To Uninstall nrefactory-samples on Kali Linux
To uninstall only the nrefactory-samples
package we can use the following command:
sudo apt-get remove nrefactory-samples
Uninstall nrefactory-samples And Its Dependencies
To uninstall nrefactory-samples
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove nrefactory-samples
Remove nrefactory-samples Configurations and Data
To remove nrefactory-samples
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge nrefactory-samples
Remove nrefactory-samples configuration, data, and all of its dependencies
We can use the following command to remove nrefactory-samples
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge nrefactory-samples
Dependencies
nrefactory-samples have the following dependencies:
- mono-runtime
- libgtk2.0-cil
- libicsharpcode-nrefactory-csharp5.0-cil
- libicsharpcode-nrefactory5.0-cil
- libmono-corlib4.5-cil
- libmono-posix4.0-cil
- libmono-system-core4.0-cil
- libmono-system-drawing4.0-cil
- libmono-system-windows-forms4.0-cil
- libmono-system4.0-cil
References
Summary
In this tutorial we learn how to install nrefactory-samples
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.