How To Install gnuserv on Debian 10

Learn how to install gnuserv on Debian 10 with this tutorial. gnuserv is Allows you to attach to an already running Emacs

Introduction

In this tutorial we learn how to install gnuserv on Debian 10.

What is gnuserv

gnuserv is:

gnuserv allows you to attach to an already running Emacs. This allows external programs to make use of Emacs’ editing capabilities. It is similar to GNU Emacs’ emacsclient, but has a slightly different feature set.

You do not need this package if you use XEmacs; it already includes gnuserv and gnuclient. If you want to use gnuserv with both GNU Emacs and XEmacs, you will only be able to use the alternative /usr/bin/gnuclient with one flavor of emacs; you will have to use either gnuclient.xemacs or gnuclient.emacs for the other flavor.

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

Install gnuserv Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install gnuserv

Install gnuserv Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install gnuserv

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

sudo aptitude -y install gnuserv

How To Uninstall gnuserv on Debian 10

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

sudo apt-get remove gnuserv

Uninstall gnuserv And Its Dependencies

To uninstall gnuserv and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove gnuserv

Remove gnuserv Configurations and Data

To remove gnuserv configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge gnuserv

Remove gnuserv configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge gnuserv

Dependencies

gnuserv have the following dependencies:

References

Summary

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