How to convert DMG to PKG in MacOS

If you are trying to push some applications in the network where you have macOS, you might need .pkg file rather than .dmg.

In this blog, I have taken the reference for Skype. You can follow the same command line for other applications.

First, start by mounting the application’s .dmg file. Don’t drag the file to the application folder.

Application

Note the name of the mounted volume and the app itself.

sudo pkgbuild --install-location /Applications --component /Volumes/Skype/Skype.app ./Desktop/Skype/Skype.pkg

It is done and you will get your pkg file in Desktop. Quite straight and easy, isn’t it?

Final_Command

Cheers,

Udhy

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s