How To Install r-cran-foreach on Kali Linux
Introduction
In this tutorial we learn how to install r-cran-foreach on Kali Linux.
What is r-cran-foreach
r-cran-foreach is:
This package provides support for the foreach looping construct. Foreach is an idiom that allows for iterating over elements in a collection, without the use of an explicit loop counter. This package in particular is intended to be used for its return value, rather than for its side effects. In that sense, it is similar to the standard lapply function, but doesn’t require the evaluation of a function. Using foreach without side effects also facilitates executing the loop in parallel.
There are three methods to install r-cran-foreach 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 r-cran-foreach Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install r-cran-foreach using apt-get by running the following command:
sudo apt-get -y install r-cran-foreachInstall r-cran-foreach Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install r-cran-foreach using apt by running the following command:
sudo apt -y install r-cran-foreachInstall r-cran-foreach 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 updateAfter updating apt database, We can install r-cran-foreach using aptitude by running the following command:
sudo aptitude -y install r-cran-foreachHow To Uninstall r-cran-foreach on Kali Linux
To uninstall only the r-cran-foreach package we can use the following command:
sudo apt-get remove r-cran-foreachUninstall r-cran-foreach And Its Dependencies
To uninstall r-cran-foreach and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove r-cran-foreachRemove r-cran-foreach Configurations and Data
To remove r-cran-foreach configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge r-cran-foreachRemove r-cran-foreach configuration, data, and all of its dependencies
We can use the following command to remove r-cran-foreach configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge r-cran-foreachDependencies
r-cran-foreach have the following dependencies:
References
Summary
In this tutorial we learn how to install r-cran-foreach package on Kali Linux using different package management tools: apt, apt-get and aptitude.