Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Nexus/Artifactory cache RPM and NPM?

We are evaluating Nexus vs Artifactory as the artifact store solution. They can cache remote Maven repositories pretty well. Can either of them cache RPM packages and NPM modules?

like image 981
zihaoyu Avatar asked Sep 10 '13 19:09

zihaoyu


4 Answers

Support for private on-premise NPM registry was just added to Artifactory in version 3.2.0 http://www.jfrog.com/confluence/display/RTF/Npm+Repositories

like image 55
elig Avatar answered Oct 26 '22 19:10

elig


While both of them have support for hosted yum repositories for rpm packages I think neither of them supports proxying other repositories.

It is however a feature request that I have seen before for Nexus. Yum repositories on Nexus can be wrapped around a Maven repo though so you can have a Maven repo with rpm packages proxied and then exposed as a yum repo.

NPM is very different package format (using an internal database) and has been requested by users of Nexus. You could even implement support for it yourself in the shape of a Nexus plugin. The YUM support for Nexus was originally created as a community contribution.

Update: NPM support is available as part of Nexus Open Source and Professional since the release of 2.10. More details are in the blog post about it and the documentation is available as well.

like image 33
Manfred Moser Avatar answered Oct 26 '22 21:10

Manfred Moser


Nexus (2.10 and later) can proxy NPM:

http://books.sonatype.com/nexus-book/2.10/reference/npm.html

However, there is a problem in that 2nd, 3rd level dependencies ignore the "registry" config setting, and proceed to download from the default registry at https://registry.npmjs.org. this is a problem with NPM, rather than Nexus.

like image 6
RCross Avatar answered Oct 26 '22 19:10

RCross


Artifactory has a superb RPM support. NPM is in the pipe.

like image 3
JBaruch Avatar answered Oct 26 '22 20:10

JBaruch