How To Install r-cran-rodbc on Kali Linux
Introduction
In this tutorial we learn how to install r-cran-rodbc on Kali Linux.
What is r-cran-rodbc
r-cran-rodbc is:
This CRAN package provides access to any Open DataBase Connectivity (ODBC) accessible database.
The package should be platform independent and provide access to any database for which a driver exists. It has been tested with MySQL and PostgreSQL on both Linux and Windows (and to those DBMSs on Linux hosts from R under Windows), Microsoft Access, SQL Server and Excel spreadsheets (read-only), and users have reported success with connections to Oracle and DBase.
Usage is covered in the R Data Import/Export manual (available via the r-doc-pdf, r-doc-html and r-doc-info packages).
There are three methods to install r-cran-rodbc 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-rodbc 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-rodbc using apt-get by running the following command:
sudo apt-get -y install r-cran-rodbcInstall r-cran-rodbc Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install r-cran-rodbc using apt by running the following command:
sudo apt -y install r-cran-rodbcInstall r-cran-rodbc 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-rodbc using aptitude by running the following command:
sudo aptitude -y install r-cran-rodbcHow To Uninstall r-cran-rodbc on Kali Linux
To uninstall only the r-cran-rodbc package we can use the following command:
sudo apt-get remove r-cran-rodbcUninstall r-cran-rodbc And Its Dependencies
To uninstall r-cran-rodbc and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove r-cran-rodbcRemove r-cran-rodbc Configurations and Data
To remove r-cran-rodbc configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge r-cran-rodbcRemove r-cran-rodbc configuration, data, and all of its dependencies
We can use the following command to remove r-cran-rodbc configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge r-cran-rodbcDependencies
r-cran-rodbc have the following dependencies:
References
Summary
In this tutorial we learn how to install r-cran-rodbc package on Kali Linux using different package management tools: apt, apt-get and aptitude.