# Printed text during package installing/updates

**URL:** https://discourse.julialang.org/t/printed-text-during-package-installing-updates/59071
**Category:** Internals & Design
**Created:** [April 12, 2021, 7:21am UTC](https://discourse.julialang.org/t/printed-text-during-package-installing-updates/59071 "2021-04-12T07:21:04Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![TheLateKronos](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thelatekronos/32/12824_2.png) [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)
#### Post date: [April 12, 2021, 7:21am UTC](https://discourse.julialang.org/t/printed-text-during-package-installing-updates/59071/1 "2021-04-12T07:21:04Z")

</div>

I have noticed after updating to 1.6.0 that I sometimes get something like the following printed during package-installation/updating:

```julia
    Updating registry at `C:\Users\densb\.julia\registries\General`
    Updating git-repo `https://github.com/JuliaRegistries/General.git`
   Resolving package versions...
  No Changes to `C:\Users\densb\.julia\environments\v1.6\Project.toml`
  No Changes to `C:\Users\densb\.julia\environments\v1.6\Manifest.toml`
   Resolving package versions...
  No Changes to `C:\Users\densb\.julia\environments\v1.6\Project.toml`
  No Changes to `C:\Users\densb\.julia\environments\v1.6\Manifest.toml`
   Resolving package versions...
  No Changes to `C:\Users\densb\.julia\environments\v1.6\Project.toml`
  No Changes to `C:\Users\densb\.julia\environments\v1.6\Manifest.toml`
   Resolving package versions...
  No Changes to `C:\Users\densb\.julia\environments\v1.6\Project.toml`
  No Changes to `C:\Users\densb\.julia\environments\v1.6\Manifest.toml`
   Resolving package versions...
    Updating `C:\Users\densb\.julia\environments\v1.6\Project.toml`
  [916415d5] + Images v0.23.3
    Updating `C:\Users\densb\.julia\environments\v1.6\Manifest.toml`

```

I believe that this occurs during the little dance to figure out package compatibility, and which latest version of each package results in a compatible set. As a user, however, it does appear as if the installation process is stuck.

Are there better ways to print this?

---

<div class="post-metadata">

### Author: ![TheLateKronos](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thelatekronos/32/12824_2.png) [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)
#### Post date: [April 12, 2021, 7:34am UTC](https://discourse.julialang.org/t/printed-text-during-package-installing-updates/59071/2 "2021-04-12T07:34:44Z")

</div>

Even after having run the installation once, so that I know that all packages fresh and up to date, i got stuck in this dance for quite a few rounds when running again:

```julia
    Updating registry at `C:\Users\densb\.julia\registries\General`
    Updating git-repo `https://github.com/JuliaRegistries/General.git`
   Resolving package versions...
  No Changes to `C:\Users\densb\.julia\environments\v1.6\Project.toml`
  No Changes to `C:\Users\densb\.julia\environments\v1.6\Manifest.toml`
   Resolving package versions...
  No Changes to `C:\Users\densb\.julia\environments\v1.6\Project.toml`
  No Changes to `C:\Users\densb\.julia\environments\v1.6\Manifest.toml`
   Resolving package versions...
  No Changes to `C:\Users\densb\.julia\environments\v1.6\Project.toml`
  No Changes to `C:\Users\densb\.julia\environments\v1.6\Manifest.toml`
   Resolving package versions...
  No Changes to `C:\Users\densb\.julia\environments\v1.6\Project.toml`
  No Changes to `C:\Users\densb\.julia\environments\v1.6\Manifest.toml`
   Resolving package versions...
  No Changes to `C:\Users\densb\.julia\environments\v1.6\Project.toml`
  No Changes to `C:\Users\densb\.julia\environments\v1.6\Manifest.toml`
   Resolving package versions...
  No Changes to `C:\Users\densb\.julia\environments\v1.6\Project.toml`
  No Changes to `C:\Users\densb\.julia\environments\v1.6\Manifest.toml`
   Resolving package versions...
  No Changes to `C:\Users\densb\.julia\environments\v1.6\Project.toml`
  No Changes to `C:\Users\densb\.julia\environments\v1.6\Manifest.toml`
   Resolving package versions...
  No Changes to `C:\Users\densb\.julia\environments\v1.6\Project.toml`
  No Changes to `C:\Users\densb\.julia\environments\v1.6\Manifest.toml`

```

Not the most user-friendly output.

For completeness, the installation commands that triggered this are:

```julia
using Pkg
Pkg.add.(["Pluto", "PlutoUI", "CairoMakie", "XLSX", "Images", "FileIO", "DataFrames", "PackageCompiler"])

```

---

<div class="post-metadata">

### Author: ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)
#### Post date: [April 12, 2021, 7:52am UTC](https://discourse.julialang.org/t/printed-text-during-package-installing-updates/59071/3 "2021-04-12T07:52:56Z")

</div>

You broadcast `Pkg.add` over the vector so you call `Pkg.add` over and over again, and every call generate that output.

---

<div class="post-metadata">

### Author: ![TheLateKronos](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thelatekronos/32/12824_2.png) [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)
#### Post date: [April 12, 2021, 8:02am UTC](https://discourse.julialang.org/t/printed-text-during-package-installing-updates/59071/4 "2021-04-12T08:02:10Z")

</div>

That makes a lot of sense! So the solution is simply to not broadcast, because the function can take a vector of string directly?

---

<div class="post-metadata">

### Author: ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)
#### Post date: [April 12, 2021, 8:02am UTC](https://discourse.julialang.org/t/printed-text-during-package-installing-updates/59071/5 "2021-04-12T08:02:22Z")

</div>

Yes.

---

<div class="post-metadata">

### Author: ![TheLateKronos](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thelatekronos/32/12824_2.png) [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)
#### Post date: [April 12, 2021, 10:04am UTC](https://discourse.julialang.org/t/printed-text-during-package-installing-updates/59071/6 "2021-04-12T10:04:31Z")

</div>

It seems obvious when looking seeting a method of Pkg.add for a vector of strings. I feel like at some point I found it to be nessecary, but I must have misunderstood something back then. In any case, thanks for the quick and clear reply!
