How To Install surfraw on Ubuntu 18.04

In this tutorial we learn how to install surfraw on Ubuntu 18.04. surfraw is fast unix command line interface to WWW

Introduction

In this tutorial we learn how to install surfraw on Ubuntu 18.04.

What is surfraw

surfraw is:

Surfraw - Shell Users’ Revolutionary Front Rage Against the World Wide Web

Surfraw provides a fast unix command line interface to a variety of popular WWW search engines and other artifacts of power. It reclaims google, altavista, dejanews, freshmeat, research index, slashdot and many others from the false-prophet, pox-infested heathen lands of html-forms, placing these wonders where they belong, deep in unix heartland, as god loving extensions to the shell.

Surfraw abstracts the browser away from input. Doing so lets it get on with what it’s good at. Browsing. Interpretation of linguistic forms is handed back to the shell, which is what it, and human beings are good at. Combined with incremental text browsers, such as links, w3m (or even lynx), and screen(1), or netscape-remote a Surfraw liberateur is capable of research speeds that leave GUI tainted idolaters agape with fear and wonder.

There are three methods to install surfraw on Ubuntu 18.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 surfraw Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install surfraw using apt-get by running the following command:

sudo apt-get -y install surfraw

Install surfraw Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install surfraw using apt by running the following command:

sudo apt -y install surfraw

Install surfraw 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 surfraw using aptitude by running the following command:

sudo aptitude -y install surfraw

How To Uninstall surfraw on Ubuntu 18.04

To uninstall only the surfraw package we can use the following command:

sudo apt-get remove surfraw

Uninstall surfraw And Its Dependencies

To uninstall surfraw and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove surfraw

Remove surfraw Configurations and Data

To remove surfraw configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge surfraw

Remove surfraw configuration, data, and all of its dependencies

We can use the following command to remove surfraw configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge surfraw

References

Summary

In this tutorial we learn how to install surfraw package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.