How To Install socks4-server on Debian 9

In this tutorial we learn how to install socks4-server on Debian 9. socks4-server is SOCKS4 server for proxying IP-based services over a firewall

Introduction

In this tutorial we learn how to install socks4-server on Debian 9.

What is socks4-server

socks4-server is:

This is version 4.3 of SOCKS, a package that allows Unix hosts behind a firewall to gain full access to the internet without requiring direct IP reachability. It does require a SOCKS server program being run on a hosts that can communicate directly to hosts behind the firewall as well as hosts on the Internet at large. It is based on the original SOCKS written by David Koblas [email protected].

This package includes the SOCKS server.

There are three methods to install socks4-server on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install socks4-server Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install socks4-server

Install socks4-server Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install socks4-server

Install socks4-server 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install socks4-server using aptitude by running the following command:

sudo aptitude -y install socks4-server

How To Uninstall socks4-server on Debian 9

To uninstall only the socks4-server package we can use the following command:

sudo apt-get remove socks4-server

Uninstall socks4-server And Its Dependencies

To uninstall socks4-server and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove socks4-server

Remove socks4-server Configurations and Data

To remove socks4-server configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge socks4-server

Remove socks4-server configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge socks4-server

Dependencies

socks4-server have the following dependencies:

References

Summary

In this tutorial we learn how to install socks4-server package on Debian 9 using different package management tools: apt, apt-get and aptitude.