# General registry for newbies

**URL:** <https://discourse.julialang.org/t/general-registry-for-newbies/52176>\
**Category:** New to Julia\
**Tags:** package, general-registry\
**Created:** [December 21, 2020, 2:17pm UTC](https://discourse.julialang.org/t/general-registry-for-newbies/52176 "2020-12-21T14:17:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![eridans](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/eridans/32/20430_2.png) [@eridans](https://discourse.julialang.org/u/eridans)\
**Post date:** [December 21, 2020, 2:17pm UTC](https://discourse.julialang.org/t/general-registry-for-newbies/52176/1 "2020-12-21T14:17:58Z")

</div>

I know this is utter newbie but can someone explain to me why

Pkg.activate(mktempdir())

results in my general registry being cancelled and having to wait 10 mins for all the packages to be downloaded again?

thanks and apologies for the utter baseness of this question

---

<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:** [December 21, 2020, 2:58pm UTC](https://discourse.julialang.org/t/general-registry-for-newbies/52176/2 "2020-12-21T14:58:12Z")

</div>

There must be something else going on here, `Pkg.activate` certainly does not mess with the registry for example. Can you provide some more information on what you actually did and what happened?

---

<div class="post-metadata">

**Author:** ![eridans](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/eridans/32/20430_2.png) [@eridans](https://discourse.julialang.org/u/eridans)\
**Post date:** [December 21, 2020, 3:30pm UTC](https://discourse.julialang.org/t/general-registry-for-newbies/52176/3 "2020-12-21T15:30:49Z")

</div>

The full code of the Pluto header follows at the foot of this message. When I load and automatically run the file it throws out a

```julia
ERROR: UndefVarError: Pkg not defined.

```

as output of the Pkg.add command below, even though the kernel still appears to be processing the following:

```julia
begin
	using Images
	using ImageMagick
	using Statistics
	using LinearAlgebra
	using ImageFiltering
end

```

I already tried to reinstall julia and delete the .julia directory but i still get the same error. Does this help to understand what is going on?

Thanks for your time

Header code:

```julia
### A Pluto.jl notebook ###
# v0.11.10

using Markdown
using InteractiveUtils

# This Pluto notebook uses @bind for interactivity. When running this notebook outside of Pluto, the following 'mock version' of @bind gives bound variables a default value (instead of an error).
macro bind(def, element)
    quote
        local el = $(esc(element))
        global $(esc(def)) = Core.applicable(Base.get, el) ? Base.get(el) : missing
        el
    end
end

# ╔═╡ 877df834-f078-11ea-303b-e98273ef98a4
begin
	using Pkg
	Pkg.activate(tempname())
end

# ╔═╡ 0316b94c-eef6-11ea-19bc-dbc959901bb5
begin
	using Images
	using ImageMagick
	using Statistics
	using LinearAlgebra
	using ImageFiltering
end

# ╔═╡ fe19ad0a-ef04-11ea-1e5f-1bfcbbb51302
using PlutoUI

# ╔═╡ e196fa66-eef5-11ea-2afe-c9fcb6c48937
# Poor man's Project.toml

Pkg.add(["Images",
		 "ImageMagick",
		 "PlutoUI",
		 "Hyperscript",
		 "ImageFiltering"])

# ╔═╡ cb335074-eef7-11ea-24e8-c39a325166a1

```

---

<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:** [December 21, 2020, 3:33pm UTC](https://discourse.julialang.org/t/general-registry-for-newbies/52176/4 "2020-12-21T15:33:43Z")

</div>

> [@eridans](#):
>
> Does this help to understand what is going on?

Not really , but looks like a Pluto bug, so you should probably report it to [Sign in to GitHub · GitHub](https://github.com/fonsp/Pluto.jl/issues/new)

---

<div class="post-metadata">

**Author:** ![eridans](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/eridans/32/20430_2.png) [@eridans](https://discourse.julialang.org/u/eridans)\
**Post date:** [December 21, 2020, 3:42pm UTC](https://discourse.julialang.org/t/general-registry-for-newbies/52176/5 "2020-12-21T15:42:34Z")

</div>

fab. thanks
