# How to create repositories without Internet connection

**URL:** <https://community.sonatype.com/t/how-to-create-repositories-without-internet-connection/2675>\
**Category:** Sonatype Nexus Repository\
**Created:** [October 13, 2019, 11:28am UTC](https://community.sonatype.com/t/how-to-create-repositories-without-internet-connection/2675 "2019-10-13T11:28:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![huangzhtao](https://avatars.discourse-cdn.com/v4/letter/h/c5a1d2/32.png) [@huangzhtao](https://community.sonatype.com/u/huangzhtao)\
**Post date:** [October 13, 2019, 11:28am UTC](https://community.sonatype.com/t/how-to-create-repositories-without-internet-connection/2675/1 "2019-10-13T11:28:40Z")

</div>

I am trying to setup a nexus repositoriy manager in an environment without Internet, I can only copy files into that environment.  
Do you have any solution for this situation?

---

<div class="post-metadata">

**Author:** ![jtom](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/jtom/32/68_2.png) [@jtom](https://community.sonatype.com/u/jtom)\
**Post date:** [October 16, 2019, 8:52pm UTC](https://community.sonatype.com/t/how-to-create-repositories-without-internet-connection/2675/2 "2019-10-16T20:52:29Z")

</div>

Do you mean populate rather than create?

You should not need internet to create repositories.  
Proxies will of course error if you have no internet but they also shouldn’t be needed if you have no internet unless you have a more complex setup.  
-Joe

---

<div class="post-metadata">

**Author:** ![huangzhtao](https://avatars.discourse-cdn.com/v4/letter/h/c5a1d2/32.png) [@huangzhtao](https://community.sonatype.com/u/huangzhtao)\
**Post date:** [October 19, 2019, 12:00pm UTC](https://community.sonatype.com/t/how-to-create-repositories-without-internet-connection/2675/3 "2019-10-19T12:00:47Z")

</div>

Yes, populate.  
Of course we need packages from maven central.  
I think I can create a nexus repositoriy manager in an Internet connected environment, and copy data directory into the Internet isolated environment. But I haven’t tried to do that yet.  
There’s another problem is how to update packages.

---

<div class="post-metadata">

**Author:** ![huangzhtao](https://avatars.discourse-cdn.com/v4/letter/h/c5a1d2/32.png) [@huangzhtao](https://community.sonatype.com/u/huangzhtao)\
**Post date:** [October 20, 2019, 6:31am UTC](https://community.sonatype.com/t/how-to-create-repositories-without-internet-connection/2675/4 "2019-10-20T06:31:59Z")

</div>

I tried to copy the hole data directory, and it worked, all configurations and packages can be synchronized.  
The problem is how to update packages, do I still need to copy the entire directory, or is there an incremental approach?

---

<div class="post-metadata">

**Author:** ![jtom](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/jtom/32/68_2.png) [@jtom](https://community.sonatype.com/u/jtom)\
**Post date:** [October 21, 2019, 2:46pm UTC](https://community.sonatype.com/t/how-to-create-repositories-without-internet-connection/2675/5 "2019-10-21T14:46:45Z")

</div>

In NXRM3 there isn’t an incremental approach.  
[https://issues.sonatype.org/browse/NEXUS-11468](https://issues.sonatype.org/browse/NEXUS-11468) will probably fulfill that need once it’s developed.  
-Joe
