How To Install nd on Ubuntu 22.04
Introduction
In this tutorial we learn how to install nd
on Ubuntu 22.04.
What is nd
nd is:
nd is a command line tool to issue queries to a WebDAV server.
WebDAV stands for “Web-based Distributed Authoring and Versioning” (RFC 2518). It is a protocol built on top of HTTP, allowing users to collaboratively edit and manage files on remote web servers.
nd can be used to retrieve, submit, remove, and lock individual files, as well as retrieving information about them. It also supports proxying, as well as the authentication methods ‘Basic’ and now ‘Digest’ for protecting against unsolicited access.
It is smaller than the alternative tool Cadaver. However, nd has neither an interactive mode, nor has it support for SSL or TLS encrypted transmissions, but it is well suited for use in scripts.
nd is dependent on libxml2 and libmhash2.
There are three methods to install nd
on Ubuntu 22.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 nd Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install nd
using apt-get
by running the following command:
sudo apt-get -y install nd
Install nd Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install nd
using apt
by running the following command:
sudo apt -y install nd
Install nd 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 nd
using aptitude
by running the following command:
sudo aptitude -y install nd
How To Uninstall nd on Ubuntu 22.04
To uninstall only the nd
package we can use the following command:
sudo apt-get remove nd
Uninstall nd And Its Dependencies
To uninstall nd
and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove nd
Remove nd Configurations and Data
To remove nd
configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge nd
Remove nd configuration, data, and all of its dependencies
We can use the following command to remove nd
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge nd
References
Summary
In this tutorial we learn how to install nd
package on Ubuntu 22.04 using different package management tools: apt
, apt-get
and aptitude
.