Curl or wget to download one repository

2,257 views
Skip to first unread message

Francisco Vieira

unread,
Oct 19, 2018, 10:03:59 AM10/19/18
to Nexus Users
Hello guys,

I want to download a whole repository on Nexus3 using wget or curl. Do you guys have any idea how can I do this? I'm not being able to understand how I can download the entire repository.

Thanks,

Cheers. 

Rich Seddon

unread,
Oct 19, 2018, 10:34:59 AM10/19/18
to Nexus Users
I haven't tried it, but I think it should be possible using the HTML directory listing URL if you are on version 3.14.0.  Versions prior to that definitely won't work due to this:

Francisco Vieira

unread,
Oct 19, 2018, 10:46:42 AM10/19/18
to Nexus Users
And how would you do it?

Rich Seddon

unread,
Oct 19, 2018, 11:05:48 AM10/19/18
to Nexus Users
If it works "wget --recursive" would do it.  I don't have details, but you can find documentation for wget on the web.

Francisco Vieira

unread,
Oct 19, 2018, 1:38:44 PM10/19/18
to Nexus Users
It doesn't work. It returns me the HTML elements instead of the repositories content.

Peter Lynch

unread,
Oct 22, 2018, 8:49:02 AM10/22/18
to Francisco Vieira, nexus...@glists.sonatype.com
On Fri, Oct 19, 2018 at 2:38 PM Francisco Vieira <titovi...@gmail.com> wrote:
It doesn't work. It returns me the HTML elements instead of the repositories content.

You didn't say specifically what doesn't work. Please read this as a starter: https://www.gnu.org/software/wget/manual/html_node/Recursive-Download.html 

Yes Nexus returns HTML, to be hopefully parsed by wget recursive download options, which extract the actual download URL of the assets and saves these to disk.

--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users...@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/79b7b802-eabc-4281-9e5b-9c455543bea7%40glists.sonatype.com.
For more options, visit https://groups.google.com/a/glists.sonatype.com/d/optout.
Reply all
Reply to author
Forward
0 new messages