ARTIFACTORY: How to use WebDAV to mount the Artifactory repository in a Linux server

AuthorFullName__c
Yunzong Guo
articleNumber
000005964
FirstPublishedDate
2024-01-08T12:52:47Z
lastModifiedDate
2025-08-01

ARTIFACTORY: How to use WebDAV to mount the Artifactory repository in a Linux server

Background

Artifactory supports WebDAV shares. A local or cached repository may be mounted as a secure WebDAV share and made accessible from any WebDAV-supporting file manager. There may not be more detailed usage steps in the WIKI WebDAV. The following describes the detailed steps on how to use WebDAV on Linux server.

For Windows and Mac, we can use a tool such as Cyberduck (Open Source) to share Artifactory repositories. In the Linux server, what tools/software can we use? And how to set it up?

We can use WebDAV via the davfs2 to share Artifactory repository in the Linux server, the following are the steps(For example, in Ubuntu):
 

Step 1:

Install davfs2. Using the following command:

$ sudo apt-get update
$ sudo apt-get install davfs2

 

Step 2:

Modify the configuration file “/etc/davfs2/secrets”, to add the your Repository Url, username and password, for example:

$ echo “http://<Artifactory_Url>/artifactory/generic-local/ admin password” > /etc/davfs2/secrets


Then restart Artifactory.

Step 3:

Mount the Repository URL to a system path(For example, mount it to path “/webdav/”):

$ mount.davfs http://<Artifactory_Url>/artifactory/generic-local/ /webdav/

 

Step 4:

Now, you can use it like the file system.
User-added imageUser-added image