# New Pkg: how to check if a package is installed?

**URL:** <https://discourse.julialang.org/t/new-pkg-how-to-check-if-a-package-is-installed/13141>\
**Category:** General Usage\
**Tags:** pkg\
**Created:** [August 10, 2018, 3:13am UTC](https://discourse.julialang.org/t/new-pkg-how-to-check-if-a-package-is-installed/13141 "2018-08-10T03:13:01Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Simon\_Bolland](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/simon_bolland/32/8920_2.png) [@Simon\_Bolland](https://discourse.julialang.org/u/Simon_Bolland)\
**Post date:** [August 10, 2018, 8:27am UTC](https://discourse.julialang.org/t/new-pkg-how-to-check-if-a-package-is-installed/13141/3 "2018-08-10T08:27:54Z")

</div>

I’d suggest

```julia
using Pkg
if in("OhMyREPL",keys(Pkg.installed()))
    @eval using OhMyREPL
else
    @warn("OhMyREPL not installed")
end

```

---

_[View the full topic](https://discourse.julialang.org/t/new-pkg-how-to-check-if-a-package-is-installed/13141)._
