Installing .pkg files without admin
How to install a MacOS .pkg on a Mac without root/admin privileges ☺️
First download the .dmg, then extract it:
7z x Downloaded.dmg
Alternatively, if you don't have 7zip mount dmg and copy out .pkg file.
Next, extract the .pkg file:
pkgutil --expand "App/App.pkg" pkg-unpacked
Next, extract the Payload inside the extracted .pkg:
tar xvf pkg-unpacked/*.pkg/Payload
See also: