How To Install netrw on Ubuntu 20.04
Introduction
In this tutorial we learn how to install netrw
on Ubuntu 20.04.
What is netrw
netrw is:
Netrw is a simple (but powerful) tool for transporting data over the internet. Its main purpose is to simplify and speed up file transfers to hosts without an FTP server. It can also be used for uploading data to some other user. It is something like one-way netcat (nc) with some nice features concerning data transfers. Netrw can compute and check message digest (MD5, SHA-1, and some others) of all the data being transferred, it can also print information on progress and average speed. At the end it sums up the transfer.
There are three methods to install netrw
on Ubuntu 20.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 netrw Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install netrw
using apt-get
by running the following command:
sudo apt-get -y install netrw
Install netrw Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install netrw
using apt
by running the following command:
sudo apt -y install netrw
Install netrw 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 netrw
using aptitude
by running the following command:
sudo aptitude -y install netrw
How To Uninstall netrw on Ubuntu 20.04
To uninstall only the netrw
package we can use the following command:
sudo apt-get remove netrw
Uninstall netrw And Its Dependencies
To uninstall netrw
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove netrw
Remove netrw Configurations and Data
To remove netrw
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge netrw
Remove netrw configuration, data, and all of its dependencies
We can use the following command to remove netrw
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge netrw
References
Summary
In this tutorial we learn how to install netrw
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.