How To Install r-base-core on Kali Linux
Introduction
In this tutorial we learn how to install r-base-core on Kali Linux.
What is r-base-core
r-base-core is:
R is a system for statistical computation and graphics. It consists of a language plus a run-time environment with graphics, a debugger, access to certain system functions, and the ability to run programs stored in script files.
The design of R has been heavily influenced by two existing languages: Becker, Chambers & Wilks’ S and Sussman’s Scheme. Whereas the resulting language is very similar in appearance to S, the underlying implementation and semantics are derived from Scheme.
The core of R is an interpreted computer language which allows branching and looping as well as modular programming using functions. Most of the user-visible functions in R are written in R. It is possible for the user to interface to procedures written in the C, C++, or FORTRAN languages for efficiency, and many of R’s core functions do so. The R distribution contains functionality for a large number of statistical procedures and underlying applied math computations. There is also a large set of functions which provide a flexible graphical environment for creating various kinds of data presentations.
Additionally, several thousand extension “packages” are available
from CRAN, the Comprehensive R Archive Network, many also as Debian
packages, named ‘r-cran-
This package provides the core GNU R system from which only the optional documentation packages r-base-html, r-doc-html, r-doc-pdf and r-doc-info have been split off to somewhat reduce the size of this package.
There are three methods to install r-base-core 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-base-core Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install r-base-core using apt-get by running the following command:
sudo apt-get -y install r-base-coreInstall r-base-core Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install r-base-core using apt by running the following command:
sudo apt -y install r-base-coreInstall r-base-core 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-base-core using aptitude by running the following command:
sudo aptitude -y install r-base-coreHow To Uninstall r-base-core on Kali Linux
To uninstall only the r-base-core package we can use the following command:
sudo apt-get remove r-base-coreUninstall r-base-core And Its Dependencies
To uninstall r-base-core and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove r-base-coreRemove r-base-core Configurations and Data
To remove r-base-core configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge r-base-coreRemove r-base-core configuration, data, and all of its dependencies
We can use the following command to remove r-base-core configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge r-base-coreDependencies
r-base-core have the following dependencies:
- zip
- unzip
- libpaper-utils
- xdg-utils
- libblas3
- libbz2-1.0
- libc6
- libcairo2
- libcurl4
- libglib2.0-0
- libgomp1
- libicu67
- libjpeg62-turbo
- liblapack3
- liblzma5
- libpango-1.0-0
- libpangocairo-1.0-0
- libpcre2-8-0
- libpng16-16
- libreadline8
- libtcl8.6
- libtiff5
- libtk8.6
- libx11-6
- libxt6
- zlib1g
References
Summary
In this tutorial we learn how to install r-base-core package on Kali Linux using different package management tools: apt, apt-get and aptitude.