Removing packages with munki

5,606 views
Skip to first unread message

mathieu xavier

unread,
Jan 24, 2011, 2:24:31 PM1/24/11
to munk...@googlegroups.com
Hi

My first test setup with Munki went well (thanks for all the great docs on the site!), but it went awry when I decided that I wanted to change the name of a package. When I used munkiimport I labelled it badly and wanted to rename it. Monkeying around with the plist didn't seem to help. :)

How do you remove packages from munki?

I noticed on the docs "that would be nice to have" pages there is a line items for "Removing packages with munki".

Thanks,

Mat X

Greg Neagle

unread,
Jan 24, 2011, 2:37:28 PM1/24/11
to munk...@googlegroups.com
On Jan 24, 2011, at 11:24 AM, mathieu xavier wrote:

Hi

My first test setup with Munki went well (thanks for all the great docs on the site!), but it went awry when I decided that I wanted to change the name of a package. When I used munkiimport I labelled it badly and wanted to rename it. Monkeying around with the plist didn't seem to help. :)

1) Change the value of the "name" key in the pkginfo file.
2) Optionally edit the value of the "display_name" key.
3) Rebuild the catalogs with `/usr/local/munki/makecatalogs /path/to/repo`

The last step is crucial as the munki client tools do not interact with the pkginfo files at all; they only interact with the catalogs.  Pkginfo files are the components used to build catalogs, but are not directly used themselves.


How do you remove packages from munki?

I noticed on the docs "that would be nice to have" pages there is a line items for "Removing packages with munki".

It's not clear if you want to remove a package from the munki server, or use munki to remove/uninstall a package from a client machine.

To remove a package from munki, just delete the pkginfo file (and optionally the pkg itself), then rebuild the catalogs with `/usr/local/munki/makecatalogs /path/to/repo`

To use munki to remove a package from a client, remove the name of the package from any managed_installs list for the client and add it to a managed_uninstalls list for the client.

-Greg

mathieu xavier

unread,
Jan 24, 2011, 2:50:24 PM1/24/11
to munk...@googlegroups.com
On 2011-01-24, at 11:37 AM, Greg Neagle wrote:

It's not clear if you want to remove a package from the munki server, or use munki to remove/uninstall a package from a client machine.


I wanted to remove the package from the munki repo.

To remove a package from munki, just delete the pkginfo file (and optionally the pkg itself), then rebuild the catalogs with `/usr/local/munki/makecatalogs /path/to/repo`

Thanks Greg.

-x



Reply all
Reply to author
Forward
0 new messages