# How to test if package is installed

**URL:** <https://discourse.julialang.org/t/how-to-test-if-package-is-installed/3508>\
**Category:** General Usage\
**Tags:** question\
**Created:** [May 4, 2017, 6:18am UTC](https://discourse.julialang.org/t/how-to-test-if-package-is-installed/3508 "2017-05-04T06:18:47Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![00vareladavid](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/00vareladavid/32/23521_2.png) [@00vareladavid](https://discourse.julialang.org/u/00vareladavid)\
**Post date:** [November 9, 2018, 4:02am UTC](https://discourse.julialang.org/t/how-to-test-if-package-is-installed/3508/14 "2018-11-09T04:02:30Z")

</div>

`Pkg.installed()` returns a `Dict`, it does not take arguments. So if you want to check for a specific package, use `haskey`. For example: `haskey(Pkg.installed(), "Colors")`

---

_[View the full topic](https://discourse.julialang.org/t/how-to-test-if-package-is-installed/3508)._
