How To Install php-sabre-dav on Debian 12

Learn how to install php-sabre-dav on Debian 12 with this tutorial. php-sabre-dav is WebDAV Framework for PHP

Introduction

In this tutorial we learn how to install php-sabre-dav on Debian 12.

What is php-sabre-dav

php-sabre-dav is:

SabreDAV is meant to cover the entire standard, and attempts to allow integration using an easy to understand API.

Feature list:

  • Fully WebDAV compliant
  • Supports Windows XP, Windows Vista, Mac OS/X, DavFSv2, Cadaver, Netdrive, Open Office, and probably more.
  • Passing all Litmus tests.
  • Supporting class 1, 2 and 3 Webdav servers.
  • Locking support.
  • Custom property support.
  • CalDAV (tested with Evolution, iCal, iPhone and Lightning).
  • CardDAV (tested with OS/X addressbook, the iOS addressbook and Evolution).
  • Over 97% unittest code coverage.

Supported RFC’s:

  • RFC2617: Basic/Digest auth.
  • RFC2518: First WebDAV spec.
  • RFC3744: ACL (some features missing).
  • RFC4709: DavMount.
  • RFC4791: CalDAV.
  • RFC4918: WebDAV revision.
  • RFC5397: current-user-principal.
  • RFC5689: Extended MKCOL.
  • RFC6352: CardDAV
  • draft-daboo-carddav-directory-gateway: CardDAV directory gateway
  • CalDAV ctag, CalDAV-proxy.

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

Install php-sabre-dav Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install php-sabre-dav

Install php-sabre-dav Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install php-sabre-dav using apt by running the following command:

sudo apt -y install php-sabre-dav

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

sudo aptitude -y install php-sabre-dav

How To Uninstall php-sabre-dav on Debian 12

To uninstall only the php-sabre-dav package we can use the following command:

sudo apt-get remove php-sabre-dav

Uninstall php-sabre-dav And Its Dependencies

To uninstall php-sabre-dav and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove php-sabre-dav

Remove php-sabre-dav Configurations and Data

To remove php-sabre-dav configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge php-sabre-dav

Remove php-sabre-dav configuration, data, and all of its dependencies

We can use the following command to remove php-sabre-dav configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge php-sabre-dav

Dependencies

php-sabre-dav have the following dependencies:

References

Summary

In this tutorial we learn how to install php-sabre-dav package on Debian 12 using different package management tools: apt, apt-get and aptitude.