# OS X 'pkg' module?

**URL:** <https://forum.ansible.com/t/os-x-pkg-module/16868>\
**Category:** Ansible Project\
**Created:** [November 25, 2014, 12:54am UTC](https://forum.ansible.com/t/os-x-pkg-module/16868 "2014-11-25T00:54:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Oliver](https://avatars.discourse-cdn.com/v4/letter/j/97f17d/32.png) [@John\_Oliver](https://forum.ansible.com/u/John_Oliver)\
**Post date:** [November 25, 2014, 12:54am UTC](https://forum.ansible.com/t/os-x-pkg-module/16868/1 "2014-11-25T00:54:54Z")

</div>

Is there any kind of effort underway to produce a ‘pkg’ module for Mac OS X installers like ‘yum’ or ‘apt’?

I’m not sure if that would count as ‘extra’ or ‘core’. If nobody else has started anything like that, I may just give it a whirl 🙂

---

<div class="post-metadata">

**Author:** ![Igor\_Homyakov](https://avatars.discourse-cdn.com/v4/letter/i/f4b2a3/32.png) [@Igor\_Homyakov](https://forum.ansible.com/u/Igor_Homyakov)\
**Post date:** [November 25, 2014, 9:38am UTC](https://forum.ansible.com/t/os-x-pkg-module/16868/2 "2014-11-25T09:38:06Z")

</div>

Hi John,

There are homebrew and macport modules in extra.

As far as I know [Nix]([https://nixos.org/nix/](https://nixos.org/nix/)) package manager runs on  
Mac OS X as well but there is no module for Nix in ansible yet.

-- Best, Igor

---

<div class="post-metadata">

**Author:** ![John\_Oliver](https://avatars.discourse-cdn.com/v4/letter/j/97f17d/32.png) [@John\_Oliver](https://forum.ansible.com/u/John_Oliver)\
**Post date:** [November 25, 2014, 4:40pm UTC](https://forum.ansible.com/t/os-x-pkg-module/16868/3 "2014-11-25T16:40:02Z")

</div>

Hi Igor. I didn’t mean to retrieve packages, but to install them. If I have an RPM file, I can ‘yum: name=/path/to/file.rpm state=present’ I’d like to do the same thing with an Apple .pkg file… ‘pkg: name=/path/to/file.pkg state=present’ and have that file actually installed. I see there’s a ‘pkgin’ for “SmartOS”, whatever that is; and a ‘pkgng’ for FreeBSD and ‘pkgutil’ for Solaris, but nothing for Apple OS X.

---

<div class="post-metadata">

**Author:** ![Igor\_Homyakov](https://avatars.discourse-cdn.com/v4/letter/i/f4b2a3/32.png) [@Igor\_Homyakov](https://forum.ansible.com/u/Igor_Homyakov)\
**Post date:** [November 26, 2014, 9:49am UTC](https://forum.ansible.com/t/os-x-pkg-module/16868/4 "2014-11-26T09:49:27Z")

</div>

Hi John,

Apparently you are talking about a tool like `rpm` or `dpkg`, I think  
a Mac equivalent would be [installer](  
[https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man8/installer.8.html](https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man8/installer.8.html)).  
and I haven't saw such modules so far.

-- Best, Igor
