# Import the Pkgs already installed on another PC

**URL:** <https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158>\
**Category:** General Usage\
**Created:** [November 5, 2018, 8:43am UTC](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158 "2018-11-05T08:43:04Z")\
**Posts on this page:** 17\
**Page:** 2

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [November 7, 2018, 10:59am UTC](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158/21 "2018-11-07T10:59:05Z")

</div>

Hmm… interestingly when trying to simply `wget` the `General.git` from GitHub I get `Access Denied ... blocked by SurfProtection`, which is a bit odd given that `pkg` seems to interact with GitHub just fine for simply adding packages which don’t attempt to install further dependencies.

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [November 7, 2018, 1:43pm UTC](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158/22 "2018-11-07T13:43:20Z")

</div>

> [@johnh](#):
>
> git config --global https.proxy [https://hemes:password@proxy05.ecp.elc:8080](https://hemes:password@proxy05.ecp.elc:8080)

The .gitconfig file mentioned in:  
[Troubleshooting libgit2](https://discourse.julialang.org/t/troubleshooting-libgit2/1542/2)  
I can not find it in my system.

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [November 7, 2018, 2:31pm UTC](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158/23 "2018-11-07T14:31:29Z")

</div>

I have only updated and made:

> git config --global http.proxy [http://hemes:password@proxy05.ecp.elc:8080](http://hemes:password@proxy05.ecp.elc:8080)
> 
> git config --global https.proxy [https://hemes:password@proxy05.ecp.elc:8080](https://hemes:password@proxy05.ecp.elc:8080)

And I get the following alerts:

```julia
               _
   _ _ _(_)_ | Documentation: https://docs.julialang.org
  (_) | (_) (_) |
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 1.0.1 (2018-09-29)
 _/ |\ __'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |

julia> using Pkg

julia> Pkg.add("IJulia")
   Cloning default registries into C:\Users\hermesr\.julia\registries
   Cloning registry General from "https://github.com/JuliaRegistries/General.git
"
**ERROR: failed to clone from https://github.com/JuliaRegistries/General.git, erro**
**r: GitError(Code:ERROR, Class:OS, failed to connect to github.com: )**
Stacktrace:
 [1] pkgerror(::String) at C:\cygwin\home\Administrator\buildbot\worker\package_
win32\build\usr\share\julia\stdlib\v1.0\Pkg\src\Types.jl:120
 [2] #clone#2(::String, ::Base.Iterators.Pairs{Symbol,LibGit2.CachedCredentials,
Tuple{Symbol},NamedTuple{(:credentials,),Tuple{LibGit2.CachedCredentials}}}, ::F
unction, ::String, ::String) at C:\cygwin\home\Administrator\buildbot\worker\pac
kage_win32\build\usr\share\julia\stdlib\v1.0\Pkg\src\GitTools.jl:107
 [3] (::getfield(Pkg.Types, Symbol("##51#55")))(::LibGit2.CachedCredentials) at
.\none:0
 [4] shred!(::getfield(Pkg.Types, Symbol("##51#55")), ::LibGit2.CachedCredential
s) at .\secretbuffer.jl:184
 [5] #registries#50(::Bool, ::Function) at C:\cygwin\home\Administrator\buildbot
\worker\package_win32\build\usr\share\julia\stdlib\v1.0\Pkg\src\Types.jl:929
 [6] registries at C:\cygwin\home\Administrator\buildbot\worker\package_win32\bu
ild\usr\share\julia\stdlib\v1.0\Pkg\src\Types.jl:913 [inlined]
 [7] macro expansion at .\logging.jl:307 [inlined]
 [8] update_registry(::Pkg.Types.Context) at C:\cygwin\home\Administrator\buildb
ot\worker\package_win32\build\usr\share\julia\stdlib\v1.0\Pkg\src\API.jl:97
 [9] #handle_repos_add!#32(::Bool, ::Nothing, ::Function, ::Pkg.Types.Context, :
:Array{Pkg.Types.PackageSpec,1}) at C:\cygwin\home\Administrator\buildbot\worker
\package_win32\build\usr\share\julia\stdlib\v1.0\Pkg\src\Types.jl:607
 [10] #handle_repos_add! at .\none:0 [inlined]
 [11] #add_or_develop#13(::Symbol, ::Bool, ::Base.Iterators.Pairs{Union{},Union{
},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Pkg.Types.Context, ::Array{Pkg.
Types.PackageSpec,1}) at C:\cygwin\home\Administrator\buildbot\worker\package_wi
n32\build\usr\share\julia\stdlib\v1.0\Pkg\src\API.jl:54
 [12] #add_or_develop at .\none:0 [inlined]
 [13] #add_or_develop#12 at C:\cygwin\home\Administrator\buildbot\worker\package
_win32\build\usr\share\julia\stdlib\v1.0\Pkg\src\API.jl:29 [inlined]
 [14] #add_or_develop at .\none:0 [inlined]
 [15] #add_or_develop#11 at C:\cygwin\home\Administrator\buildbot\worker\package
_win32\build\usr\share\julia\stdlib\v1.0\Pkg\src\API.jl:28 [inlined]
 [16] #add_or_develop at .\none:0 [inlined]
 [17] #add_or_develop#10 at C:\cygwin\home\Administrator\buildbot\worker\package
_win32\build\usr\share\julia\stdlib\v1.0\Pkg\src\API.jl:27 [inlined]
 [18] #add_or_develop at .\none:0 [inlined]
 [19] #add#18 at C:\cygwin\home\Administrator\buildbot\worker\package_win32\buil
d\usr\share\julia\stdlib\v1.0\Pkg\src\API.jl:69 [inlined]
 [20] add(::String) at C:\cygwin\home\Administrator\buildbot\worker\package_win3
2\build\usr\share\julia\stdlib\v1.0\Pkg\src\API.jl:69
 [21] top-level scope at none:0

julia>

```

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [November 14, 2018, 6:04am UTC](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158/24 "2018-11-14T06:04:49Z")

</div>

Which of the following lines is correct:

```julia
git config --global url."https://".insteadOf git://       
git config --global url."https://github.com/".insteadOf git://github.com/  
git config --global url."git@github.com:".insteadOf "https://github.com/"

```

Gracias

---

<div class="post-metadata">

**Author:** ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)\
**Post date:** [November 14, 2018, 7:10am UTC](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158/25 "2018-11-14T07:10:46Z")

</div>

This is a Windows system. I Also use Windows with Julia.  
I may have got this wrong, but when I open Powershell and type which git I get  
PS C:\Users\hearn\> which git  
/cmd/git

I have installed Git for Windows [https://gitforwindows.org/](https://gitforwindows.org/)

ALso what happensw in Powershell when you run the command ping [github.com](http://github.com)  
I think we need to stop looking at Julia and get a git clone working on the command line or in Git Bash for Windows. Then we will get Julia working.

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [November 14, 2018, 7:25am UTC](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158/26 "2018-11-14T07:25:18Z")

</div>

Okay, I’ll focus on Git. Is already installed.  
The first step would be to run the following line of code: `ping github.com`?  
I will need your guidance.

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [November 14, 2018, 8:51am UTC](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158/27 "2018-11-14T08:51:12Z")

</div>

> [@johnh](#):
>
> ping [github.com](http://github.com)

this is the result:

```julia
hermesr@hermes MINGW32 ~
$ ping github.com

Pinging github.com [192.30.253.113] with 32 bytes of data:
Reply from 192.30.253.113: bytes=32 time=138ms TTL=49
Reply from 192.30.253.113: bytes=32 time=137ms TTL=49
Reply from 192.30.253.113: bytes=32 time=145ms TTL=49
Reply from 192.30.253.113: bytes=32 time=137ms TTL=49

Ping statistics for 192.30.253.113:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 137ms, Maximum = 145ms, Average = 139ms

hermesr@hermes MINGW32 ~
$

```

---

<div class="post-metadata">

**Author:** ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)\
**Post date:** [November 14, 2018, 9:07am UTC](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158/28 "2018-11-14T09:07:57Z")

</div>

Please now try

git clone [GitHub - JuliaRegistries/General: The official registry of general Julia packages](https://github.com/JuliaRegistries/General.git)

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [November 14, 2018, 9:41am UTC](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158/29 "2018-11-14T09:41:53Z")

</div>

> [@johnh](#):
>
> git clone [GitHub - JuliaRegistries/General: The official registry of general Julia packages](https://github.com/JuliaRegistries/General.git)

Not good result:

```julia
hermesr@hermes MINGW32 ~
$ git clone https://github.com/JuliaRegistries/General.git
Cloning into 'General'...
ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

hermesr@hermes MINGW32 ~
$

```

---

<div class="post-metadata">

**Author:** ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)\
**Post date:** [November 14, 2018, 11:22am UTC](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158/30 "2018-11-14T11:22:44Z")

</div>

Does this setting help  
git config --global url.“[https://github.com/](https://github.com/)”

Also please sent the result of git config --list  
But please, please edit your password to read password or something.

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [November 14, 2018, 12:02pm UTC](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158/31 "2018-11-14T12:02:34Z")

</div>

git config --list

```julia

hermesr@hermes MINGW32 ~
$ git config --list
core.symlinks=false
core.autocrlf=true
core.fscache=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
help.format=html
rebase.autosquash=true
http.sslbackend=schannel
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
pack.packsizelimit=2g
credential.helper=manager
rebase.usebuiltin=true
stash.usebuiltin=true
core.editor=nano.exe
url.https://github.com/.insteadof=git://github.com/
http.sslcainfo=C:/Users/ngudat/ca-bundle.crt
http.proxy=http://hermesr:hrY424854@10.200.1.32:8080
url.https://.insteadof=git://
https.proxy=http://hermesr:hrY424854@10.200.1.32:8080
url.git@github.com:.insteadof=https://github.com/
push.default=current

hermesr@hermes MINGW32 ~
$

```

```julia

hermesr@hermes MINGW32 ~
$ git config --global url.“https://github.com/”
error: invalid key: url.“https://github.com/”

```

---

<div class="post-metadata">

**Author:** ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)\
**Post date:** [November 14, 2018, 1:19pm UTC](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158/32 "2018-11-14T13:19:37Z")

</div>

> [@HerAdri](#):
>
> git config --global url.“[https://github.com/”](https://github.com/%E2%80%9D)

Absolutely my fault. Try  
git config --global url.“[https://github.com](https://github.com)”.insteadOf git://github.com

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [November 14, 2018, 1:22pm UTC](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158/33 "2018-11-14T13:22:06Z")

</div>

```julia
hermesr@hermes MINGW32 ~
$ git config --global url.“https://github.com”
error: invalid key: url.“https://github.com”

```

Without quotes in the address I do not get answers. Only the sign of the system!

```julia
hermesr@hermes MINGW32 ~
$ git config --global url.https://github.com

hermesr@hermes MINGW32 ~
$

```

Ok?

---

<div class="post-metadata">

**Author:** ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)\
**Post date:** [November 14, 2018, 2:59pm UTC](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158/34 "2018-11-14T14:59:50Z")

</div>

@heradri This s my fault. I am not quoting the code line correctly.  
I am simply cutting and pasting from this article:

> **[Force git to clone with "https://" instead of "git://" urls (Example)](https://coderwall.com/p/sitezg/force-git-to-clone-with-https-instead-of-git-urls)**
>
> A protip by jbleuzen about git.

Please do not get frustrated. We will get this issue fixed.

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [November 15, 2018, 9:05am UTC](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158/35 "2018-11-15T09:05:34Z")

</div>

> [@johnh](#):
>
> Please do not get frustrated. We will get this issue fixed.

It is very nice of you to give help with this, but as I suggested above, the organization imposing these (network) restrictions presumably has some form of IT support, which should be capable of resolving these issues very quickly. Debugging this by copy-pasting input and output from a terminal is perhaps the least efficient method. I suppose that @heradri would probably be better served by calling IT, and either resolving this or narrowing it down to a bug.

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [November 21, 2018, 2:40pm UTC](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158/36 "2018-11-21T14:40:07Z")

</div>

😀  
Solved the problem:  
I acquired a TP-LINK-TL-WN725N-Nano-USB-Wireless-Adapter-V2-2-Wi-Fi-150Mbps.  
I connect to an external wifi, charge the packages that are necessary and return to the abitual network.  
I would just like to know how to connect to the portable hostpot of my cell phone.  
Thank you

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [November 21, 2018, 5:49pm UTC](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158/37 "2018-11-21T17:49:55Z")

</div>

> [@HerAdri](#):
>
> I would just like to know how to connect to the portable hostpot of my cell phone.

I am not sure this is a Julia-specific question.

[Previous page](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158.md?page=1)
