# Pkg.update() Pkg.clone() does not work behind corporate firewall

**URL:** <https://discourse.julialang.org/t/pkg-update-pkg-clone-does-not-work-behind-corporate-firewall/6329>\
**Category:** General Usage\
**Tags:** pkg\
**Created:** [October 8, 2017, 7:33pm UTC](https://discourse.julialang.org/t/pkg-update-pkg-clone-does-not-work-behind-corporate-firewall/6329 "2017-10-08T19:33:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xiaodai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xiaodai/32/15937_2.png) [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Post date:** [October 8, 2017, 7:33pm UTC](https://discourse.julialang.org/t/pkg-update-pkg-clone-does-not-work-behind-corporate-firewall/6329/1 "2017-10-08T19:33:45Z")

</div>

In older versions of R install.packages used to not work behind corporate firewalls unless you run setinternet2(). What the function setinternet2() does is that it tells install.packages to use the Internet Explorer proxy settings (whatever that means).

In Julia I am running into the same problem, where Pkg.add usually works but Pkg.clone and Pkg.update doesn’t. Can’t the latter two be made to follow the internet access method of Pkg.add?

---

<div class="post-metadata">

**Author:** ![Evizero](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/evizero/32/10118_2.png) [@Evizero](https://discourse.julialang.org/u/Evizero)\
**Post date:** [October 8, 2017, 8:29pm UTC](https://discourse.julialang.org/t/pkg-update-pkg-clone-does-not-work-behind-corporate-firewall/6329/2 "2017-10-08T20:29:41Z")

</div>

> [@xiaodai](#):
>
> where Pkg.add usually works but Pkg.clone

I think `Pkg.add` defaults to cloning via https. Did you try `Pkg.clone` using the https url of a repository? Might be that you used the SSH option (i.e. `git@github.com:User/Package.jl.git`)
