Ask Different (Apple)
Q&A for power users of Apple hardware and software
Latest Questions
0
votes
1
answers
71
views
Clarifications for a controlled upgrade of a VirtualBox-ed Catalina
For some tests, I need to deploy a precise setup: `MacOS 10.15.4` with `Xcode 12.3`. My MacMini 2018/2020 is running `10.15.5` with `VirtualBox 6.1.12`. I have a running VM with `10.15.0` which I snapshot after installation. My plan was to then do a manual upgrade to `10.15.4` thanks to the correspo...
For some tests, I need to deploy a precise setup:
MacOS 10.15.4
with Xcode 12.3
. My MacMini 2018/2020 is running 10.15.5
with VirtualBox 6.1.12
. I have a running VM with 10.15.0
which I snapshot after installation. My plan was to then do a manual upgrade to 10.15.4
thanks to the corresponding combo update , as I do not want to jump to the latest Catalina version.
The process of the manual update is to mount the dmg
file, which then shows the pkg
file that starts the upgrade process when run, and asks to reboot at some point to finalize everything.
The reboot doesn't take me to the upgrade process, but back to the 10.15.0
.
There are many blog posts and guides regarding what to do when you go through the more classical path of having an update be downloaded to /Applications/Install macOS xxx.app
.
My guess is that at some point, both ways of upgrading follow the same process (eg reboot to some kind of "upgrade partition" that will overwrite the OS files, reboot to upgraded OS). I would like clarifications on the parts where these upgrade paths differ, so that I can troubleshoot what is preventing me from reaching 10.15.4
.
In the past, I did similar things with 10.14
and my notes on the topic don't show such an issue (rather issues with lack of APFS support in VirtualBox at that time). In particular, I think the partition layout has changed since then.
Essentially, what I tried so far:
- start manual upgrade process through the .pkg
, reboot
- interrupt boot by hammering Esc
, reach some kind of grey and blue boot manager (is that VBox or Apple stuff? this is not the VBox EFI shell, there is a text-based UI menu with "Device Manager"/"Boot Manager"/"Boot Maintenance Manager")
- explore partitions, looking for an EFI boot file (I spotted the recovery one, can't find the "regular" one nor the "upgrade" one)
- boot
For example, I wonder if the pkg
is partially extracted and that I am supposed to find a boot.efi
somewhere on the "System Data" partition. If so, where should I look for it? Do I have a more "sysadmin" way of deploying this upgrade, in particular without reboot?
slv
(101 rep)
May 26, 2021, 10:50 PM
• Last activity: Jun 5, 2025, 05:09 PM
6
votes
2
answers
27074
views
How to create a Package, which runs a shell script?
While searching for a good (better) solution for [this][1] Solution, I try to solve my problem with [Packages][2], but with no success. My concrete problem looks simple: 1. Copy a file to `/tmp` (it's an configuration script) 2. Execute the following command: sudo installer -allowUntrusted -pkg "ese...
While searching for a good (better) solution for this Solution, I try to solve my problem with Packages , but with no success.
My concrete problem looks simple:
1. Copy a file to
/tmp
(it's an configuration script)
2. Execute the following command:
sudo installer -allowUntrusted -pkg "esets_remote_install.pkg" -target /
So there are some (or a lot of questions):
1. To solve this problem, have I chose *Distribution* or *Raw Package*?
2. On a *Raw Package* (which also could included in distribution, I can choose Require admin password for installation
, if this is checked, do I still need sudo
before install
?
My first try was to add the pkg and the file for temp to *Distribution* Additional Resources
in Requirement & Resources
and run the script via Requirement
. Did not work.
My second try was to put it into the *Raw Package* Payload
and run the script via Pre-installation
. Again, no success.
Even adding the package and the configuration to Additional Resources
seems not solve my problem.
Thank you very much for all solutions and ideas. Even a console solution via pkgutil
is welcome.
Megachip
(332 rep)
Feb 5, 2014, 08:53 PM
• Last activity: Nov 13, 2024, 03:48 PM
163
votes
3
answers
473880
views
How can I install .pkg with a shell on macOS?
Is it possible to install a .pkg through an ssh connection to a Mac?
Is it possible to install a .pkg through an ssh connection to a Mac?
Matthieu Riegler
(21956 rep)
Nov 21, 2012, 11:23 AM
• Last activity: Jul 19, 2024, 01:06 PM
7
votes
4
answers
12024
views
Command to find out the version number of a .pkg file
Does anyone know how to retrieve the version number of a .pkg file which isn't installed yet? I'd like to use something like **pkgutil --pkg-info**, but that only works for installed packages. I've also tried **installer -pkginfo -verbose**, but that doesn't show the version number. Is there a built...
Does anyone know how to retrieve the version number of a .pkg file which isn't installed yet?
I'd like to use something like **pkgutil --pkg-info**, but that only works for installed packages.
I've also tried **installer -pkginfo -verbose**, but that doesn't show the version number.
Is there a built-in command to do this, or alternatively, could someone suggest a one-liner please?
Thanks.
d3Xt3r
(279 rep)
Apr 12, 2015, 08:54 PM
• Last activity: May 6, 2024, 04:01 PM
0
votes
1
answers
817
views
pkg Installation failed
I am trying to install via a pkg file and it keeps failing. - Ventura 13.3.1 (a) (22E772610a) - Brave Browser is the item being installed I accidently told the os to block install when it asked for permissions. I do not know where to reset the permission in order to run the installer successfully. I...
I am trying to install via a pkg file and it keeps failing.
- Ventura 13.3.1 (a) (22E772610a)
- Brave Browser is the item being installed
I accidently told the os to block install when it asked for permissions. I do not know where to reset the permission in order to run the installer successfully. It strickly tells me the installation failed.

Aly Rivera
(21 rep)
May 17, 2023, 04:35 AM
• Last activity: Feb 12, 2024, 01:17 PM
0
votes
0
answers
737
views
Help converting .pkg to .app
My question is very similar to this post: [How to convert a macOS .pkg into and .app to run it?][1] It comes very close to giving me a solution, but in my specific instance, I’m trying to install [DaVinci Resolve][2]. Instead of following the instructions on that post, I found a very informative vid...
My question is very similar to this post: How to convert a macOS .pkg into and .app to run it? It comes very close to giving me a solution, but in my specific instance, I’m trying to install DaVinci Resolve . Instead of following the instructions on that post, I found a very informative video that also *almost* works. I suggest you watch it here first: https://www.youtube.com/watch?v=dn9Mi6t3_Lc.
When I follow the steps in the video for expanding the .pkg, I’m met with multiple .pkg files, each containing a “Payload” file that can be turned into an app (according to the video).
How can I combine all of these into a single macOS Application file?

Trinitrotoluene
(1 rep)
Jan 26, 2024, 09:10 PM
1
votes
0
answers
259
views
How to run pkg installer asking for password in GUI rather than in shell
I tried to use `osascript` but no luck: ``` > osascript -e 'do shell script "installer -pkg /Users/syabro/Downloads/Crystal_Software.pkg -target /" with administrator privileges' 0:117: execution error: installer: Error - the package path specified was invalid: '/Users/syabro/Downloads/Crystal_Softw...
I tried to use
osascript
but no luck:
> osascript -e 'do shell script "installer -pkg /Users/syabro/Downloads/Crystal_Software.pkg -target /" with administrator privileges'
0:117: execution error: installer: Error - the package path specified was invalid: '/Users/syabro/Downloads/Crystal_Software.pkg'. (1)
However, this works:
> sudo installer -pkg /Users/syabro/Downloads/Crystal_Software.pkg -target /
installer: Package name is Crystal
installer: Upgrading at base path /
installer: The upgrade was successful.
I don't need installer GUI, I want it to be installed silently.
How to run pkg installer so that it prompts for a command-line password rather than in a GUI dialog/prompt?
syabro
(111 rep)
Oct 18, 2023, 04:06 PM
• Last activity: Oct 19, 2023, 06:47 PM
2
votes
1
answers
287
views
Unable to install any .pkg file after reinstalling Ventura - Installer crashes
Hoping someone can help. My Mac auto-updated to Sonoma when it released. As that caused a load of problems with the apps I use, I've wiped my hard drive, reinstalled Ventura and restored my files from a Time Machine backup. All seemed well but I've been trying to install a number of .pkg files and e...
Hoping someone can help. My Mac auto-updated to Sonoma when it released. As that caused a load of problems with the apps I use, I've wiped my hard drive, reinstalled Ventura and restored my files from a Time Machine backup. All seemed well but I've been trying to install a number of .pkg files and every single time without fail, the installer crashes and gives the following error log:
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Incident Identifier: 84CBD041-8F12-483A-BCEC-9219EC1DBE92
CrashReporter Key: 227EF547-8608-5873-6E4E-10F36A9FBE2A
Hardware Model: Mac13,1
Process: Installer
Path: /System/Library/CoreServices/Installer.app/Contents/MacOS/Installer
Identifier: com.apple.installer
Version: 6.2.0 (1131)
Code Type: X86-64 (Native)
Role: Foreground
Parent Process: launchd
Coalition: com.apple.installer
Date/Time: 2023-10-03 23:47:58.7952 +0100
Launch Time: 2023-10-03 23:47:58.2238 +0100
OS Version: macOS 13.6 (22G120)
Release Type: User
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000020
Exception Codes: 0x0000000000000001, 0x0000000000000020
VM Region Info: 0x20 is not in any region. Bytes before following region: 140703124500448
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
VM_ALLOCATE (reserved) 7ff7ffc13000-7ff7ffc16000 [ 12K] r--/r-- SM=NUL ...(unallocated)
Termination Reason: SIGNAL 11 Segmentation fault: 11
Terminating Process: exc handler
Triggered by Thread: 0
Thread 0 Crashed:
0 runtime 0x7ff7ffbd204c 0x7ff7ffbce000 + 16460
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000022 x1: 0x0000000000000020 x2: 0x00007ff7ffbf19d0 x3: 0x0000000000000002
x4: 0x0000000000000001 x5: 0x00007ff7ffbfa983 x6: 0x0000000000000020 x7: 0x00007ff7ffbfa97c
x8: 0xfa19adc40a4300d8 x9: 0xfa19adc40a4300d8 x10: 0x00007ff7ffbffb99 x11: 0x00007ff7ffbffb99
x12: 0x0000000000000078 x13: 0x000000000000001e x14: 0x00007ff7ffbf1980 x15: 0x00007ff7ffbffb11
x16: 0x00007ff7ffbffb12 x17: 0x0000000308875a67 x18: 0x000000030887602b x19: 0x00007ff7ffbffb11
x20: 0x0000000000000022 x21: 0x00007ff7ffbfff11 x22: 0x00007ff7ffbf9ddf x23: 0x0000000308875b90
x24: 0x000000010a3c82e0 x25: 0x0000000000000248 x26: 0x0000000000000009 x27: 0x00000002024b1000
x28: 0x0000000000000001 fp: 0x0000000308875a90 lr: 0x00007ff7ffbebb7c
sp: 0x0000000308875a90 pc: 0x00007ff7ffbd204c cpsr: 0x60001000
far: 0x0000000000000020 esr: 0x92000005 (Data Abort) byte read Translation fault
Binary Images:
0x202409000 - 0x2024a4fff dyld (*) /usr/lib/dyld
0x7ff7ffbce000 - 0x7ff7ffbfdfff runtime (*) /usr/libexec/rosetta/runtime
0x0 - 0xffffffffffffffff ??? (*) ???
Error Formulating Crash Report:
dyld_process_snapshot_get_shared_cache failed
EOF
-----------
Full Report
-----------
{"app_name":"Installer","timestamp":"2023-10-03 23:47:58.00 +0100","app_version":"6.2.0","slice_uuid":"1e8351c1-18eb-303b-9896-0eceb74c162e","build_version":"1131","platform":0,"bundleID":"com.apple.installer","share_with_app_devs":1,"is_first_party":1,"bug_type":"309","os_version":"macOS 13.6 (22G120)","roots_installed":0,"name":"Installer","incident_id":"84CBD041-8F12-483A-BCEC-9219EC1DBE92"}
{
"uptime" : 970,
"procRole" : "Foreground",
"version" : 2,
"userID" : 502,
"deployVersion" : 210,
"modelCode" : "Mac13,1",
"coalitionID" : 1075,
"osVersion" : {
"train" : "macOS 13.6",
"build" : "22G120",
"releaseType" : "User"
},
"captureTime" : "2023-10-03 23:47:58.7952 +0100",
"incident" : "84CBD041-8F12-483A-BCEC-9219EC1DBE92",
"pid" : 4325,
"translated" : true,
"cpuType" : "X86-64",
"roots_installed" : 0,
"bug_type" : "309",
"procLaunch" : "2023-10-03 23:47:58.2238 +0100",
"procStartAbsTime" : 23439130194,
"procExitAbsTime" : 23452676189,
"procName" : "Installer",
"procPath" : "\/System\/Library\/CoreServices\/Installer.app\/Contents\/MacOS\/Installer",
"bundleInfo" : {"CFBundleShortVersionString":"6.2.0","CFBundleVersion":"1131","CFBundleIdentifier":"com.apple.installer"},
"buildInfo" : {"ProjectName":"Installer","SourceVersion":"1131000000000000","BuildVersion":"1368"},
"storeInfo" : {"deviceIdentifierForVendor":"0C9FB9E4-CA6A-570F-B5A1-7ED200CEB22F"},
"parentProc" : "launchd",
"parentPid" : 1,
"coalitionName" : "com.apple.installer",
"crashReporterKey" : "227EF547-8608-5873-6E4E-10F36A9FBE2A",
"codeSigningID" : "com.apple.installer",
"codeSigningTeamID" : "",
"codeSigningFlags" : 570522369,
"codeSigningValidationCategory" : 1,
"codeSigningTrustLevel" : 0,
"sip" : "enabled",
"vmRegionInfo" : "0x20 is not in any region. Bytes before following region: 140703124500448\n REGION TYPE START - END [ VSIZE] PRT\/MAX SHRMOD REGION DETAIL\n UNUSED SPACE AT START\n---> \n VM_ALLOCATE (reserved) 7ff7ffc13000-7ff7ffc16000 [ 12K] r--\/r-- SM=NUL ...(unallocated)",
"exception" : {"codes":"0x0000000000000001, 0x0000000000000020","rawCodes":[1,32],"type":"EXC_BAD_ACCESS","signal":"SIGSEGV","subtype":"KERN_INVALID_ADDRESS at 0x0000000000000020"},
"termination" : {"flags":0,"code":11,"namespace":"SIGNAL","indicator":"Segmentation fault: 11","byProc":"exc handler","byPid":4325},
"vmregioninfo" : "0x20 is not in any region. Bytes before following region: 140703124500448\n REGION TYPE START - END [ VSIZE] PRT\/MAX SHRMOD REGION DETAIL\n UNUSED SPACE AT START\n---> \n VM_ALLOCATE (reserved) 7ff7ffc13000-7ff7ffc16000 [ 12K] r--\/r-- SM=NUL ...(unallocated)",
"extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
"faultingThread" : 0,
"threads" : [{"triggered":true,"id":48945,"threadState":{"x":[{"value":34},{"value":32},{"value":140703124363728},{"value":2},{"value":1},{"value":140703124400515},{"value":32},{"value":140703124400508},{"value":18021626441397108952},{"value":18021626441397108952},{"value":140703124421529},{"value":140703124421529},{"value":120},{"value":30},{"value":140703124363648},{"value":140703124421393},{"value":140703124421394},{"value":13027990119},{"value":13027991595},{"value":140703124421393},{"value":34},{"value":140703124422417},{"value":140703124397535},{"value":13027990416},{"value":4466705120},{"value":584},{"value":9},{"value":8628408320,"symbolLocation":0,"symbol":"dyld_all_image_infos"},{"value":1}],"flavor":"ARM_THREAD_STATE64","lr":{"value":140703124339580},"cpsr":{"value":1610616832},"fp":{"value":13027990160},"sp":{"value":13027990160},"esr":{"value":2449473541,"description":"(Data Abort) byte read Translation fault"},"pc":{"value":140703124234316,"matchesCrashFrame":1},"far":{"value":32}},"frames":[{"imageOffset":16460,"imageIndex":1}]}],
"usedImages" : [
{
"source" : "P",
"arch" : "x86_64",
"base" : 8627720192,
"size" : 638976,
"uuid" : "3df96f32-b9c9-3566-a6b7-4daebc6d6563",
"path" : "\/usr\/lib\/dyld",
"name" : "dyld"
},
{
"source" : "P",
"arch" : "arm64",
"base" : 140703124217856,
"size" : 196608,
"uuid" : "15ccd9bf-9a15-3540-a1ff-3abea3e2ca9d",
"path" : "\/usr\/libexec\/rosetta\/runtime",
"name" : "runtime"
},
{
"size" : 0,
"source" : "A",
"base" : 0,
"uuid" : "00000000-0000-0000-0000-000000000000"
}
],
"vmSummary" : "ReadOnly portion of Libraries: Total=1168K resident=0K(0%) swapped_out_or_unallocated=1168K(100%)\nWritable regions: Total=136.1M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=136.1M(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nRosetta Generic 8K 2 \nRosetta IndirectBranch (reserved) 32K 1 reserved VM address space (unallocated)\nRosetta JIT 128.0M 1 \nSTACK GUARD 56.0M 1 \nStack 8176K 1 \nVM_ALLOCATE (reserved) 12K 2 reserved VM address space (unallocated)\n__DATA 80K 3 \n__DATA_CONST 32K 1 \n__DATA_DIRTY 16K 1 \n__LINKEDIT 368K 4 \n__TEXT 816K 2 \nmapped file 676K 7 \n=========== ======= ======= \nTOTAL 194.0M 26 \nTOTAL, minus reserved VM space 193.9M 26 \n",
"legacyInfo" : {
"threadTriggered" : {
}
},
"logWritingSignature" : "4ea3f1ca5c2fb439a2d0e5b254b3a83431390b25",
"trialInfo" : {
"rollouts" : [
],
"experiments" : [
]
},
"reportNotes" : [
"dyld_process_snapshot_get_shared_cache failed"
]
}
Model: Mac13,1, BootROM 10151.40.132, proc 10:8:2 processors, 32 GB, SMC
Graphics: Apple M1 Max, Apple M1 Max, Built-In
Display: C27F591, 1920 x 1080 (1080p FHD - Full High Definition), Main, MirrorOff, Online
Display: HDMI, 1920 x 1080 (1080p FHD - Full High Definition), MirrorOff, Online
Memory Module: LPDDR5, Samsung
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x4387), wl0: May 27 2023 02:14:41 version 20.96.31.0.8.7.148 FWID 01-1f7d4484
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Wi-Fi, AirPort, en1
USB Device: USB31Bus
USB Device: PSSD T7
USB Device: USB31Bus
USB Device: USB31Bus
USB Device: USB31Bus
USB Device: USB3.0 Hub
USB Device: USB2.0 Hub
USB Device: iLok
USB Device: USB-C Digital AV Multiport Adapter
USB Device: USB31Bus
USB Device: USB2 Hub
USB Device: USB3 Gen2 Hub
USB Device: Elements 25A3
Thunderbolt Bus: Mac Studio, Apple Inc.
Thunderbolt Bus: Mac Studio, Apple Inc.
Thunderbolt Bus: Mac Studio, Apple Inc.
Thunderbolt Bus: Mac Studio, Apple Inc.
I can't make any sense of it at all. Does anyone know of a fix for this?
Thanks in advance!
dan2784
(51 rep)
Oct 3, 2023, 10:53 PM
• Last activity: Oct 3, 2023, 11:46 PM
1
votes
0
answers
439
views
How to create package to install font in mac OS
I just created a .pkg using the following command: pkgbuild --identifier com.vinivia.xxxxxx --version 1.0 --component /Users/xxxxxx/ViniviaPoppins-AllinOne/ViniviaPoppins-AllinOne.ttc --install-location ~/Library/Fonts --sign "MySign" /Users/xxxxxx/ViniviaPoppins/ViniviaPoppins.pkg However, when I t...
I just created a .pkg using the following command:
pkgbuild --identifier com.vinivia.xxxxxx --version 1.0 --component /Users/xxxxxx/ViniviaPoppins-AllinOne/ViniviaPoppins-AllinOne.ttc --install-location ~/Library/Fonts --sign "MySign" /Users/xxxxxx/ViniviaPoppins/ViniviaPoppins.pkg
However, when I try to install it, the font gets copied to
~/Library/Fonts
but doesn't show up in Font Book. Does anyone have any ideas on how to create a .pkg and install it in Font Book?
Sergey Mikhailov
(11 rep)
Jul 23, 2023, 07:22 PM
• Last activity: Jul 23, 2023, 07:30 PM
4
votes
1
answers
2350
views
Is there a command to remove previously installed .pkg package?
I have installed a `.pkg` package with the `installer` command. But there are problem with that installation. Now I want to remove it. Is there a standard way to do it with command line interface? Note: I have no access to the GUI interface of the machine.
I have installed a
.pkg
package with the installer
command. But there are problem with that installation. Now I want to remove it. Is there a standard way to do it with command line interface?
Note: I have no access to the GUI interface of the machine.
Koala Yeung
(143 rep)
Oct 3, 2019, 11:27 AM
• Last activity: Jun 28, 2023, 03:44 AM
0
votes
1
answers
101
views
Mac not letting me install 'Packages" by Stephan Sudre
I am trying to install "Packages", to create an installation package for an App I am developing. After I mount the disk image file, I am trying to start the installation process by launching the .pkg file. However, this only opens the encoding. [![enter image description here][1]][1] [

fibonacci_ostrich
(13 rep)
Mar 8, 2023, 01:38 PM
• Last activity: Mar 8, 2023, 03:19 PM
1
votes
0
answers
52
views
How to force a PKG installer to run a second time after i denied it to run with the necessary privileges the first time?
I have a legit non-app store app installer I downloaded from my VOIP business vendor portal to install called TELUS_Business_Connect.pkg (Canada VOIP Provider).. which is really just Ring Central rebranded. When I first tried to install the pkg accidentally clicked "NO" to the security prompts that...
I have a legit non-app store app installer I downloaded from my VOIP business vendor portal to install called TELUS_Business_Connect.pkg (Canada VOIP Provider).. which is really just Ring Central rebranded.
When I first tried to install the pkg accidentally clicked "NO" to the security prompts that macOS needed me to allow for the PKG software to install correctly. Using all defaults.
Now when I rerun the PKG installer to retry.. it always fails and never prompts me like before.
How do I make macOS **forget** that it has ever seen this PKG before?


Heston T. Holtmann
(111 rep)
Jan 18, 2023, 03:33 AM
1
votes
0
answers
1481
views
What is com.apple.installer.pagecontroller error -1?
After double-clicking on a .pkg file, the Installer gives following error: The operation couldn't be completed. (com.apple.installer.pagecontroller error -1.) Couldn't open "[filename].pkg". What does this mean? Is the problem caused by the .pkg file?
After double-clicking on a .pkg file, the Installer gives following error:
The operation couldn't be completed.
(com.apple.installer.pagecontroller error -1.)
Couldn't open "[filename].pkg".
What does this mean? Is the problem caused by the .pkg file?
Karlo
(491 rep)
Jul 25, 2022, 01:32 PM
1
votes
0
answers
4569
views
How to build a proper pkg-file that installs an app-bundle on Mac OS?
I know this question was discussed many times before, but the proposed `buildkg`-commands don't work for me on Mac OS Monterey. Here are two commands I tried: ```sh sudo pkgbuild --install-location /Applications/MyApp.app --component $HOME/Build/MyApp.app $HOME/MyApp.pkg ``` ```sh sudo pkgbuild --in...
I know this question was discussed many times before, but the proposed
buildkg
-commands don't work for me on Mac OS Monterey. Here are two commands I tried:
sudo pkgbuild --install-location /Applications/MyApp.app --component $HOME/Build/MyApp.app $HOME/MyApp.pkg
sudo pkgbuild --install-location /Applications --root $HOME/Build $HOME/MyApp.pkg
For both commands I get an empty app-bundle in /Applications
after installation and for some reason (possibly related to APFS copy-on-write feature?) the source app-bundle (used when building the package) gets empty too.
ababo
(111 rep)
Jun 13, 2022, 11:18 AM
12
votes
2
answers
12871
views
Use pkg-config with Homebrew installed software
I have installed some libraries with Homebrew but if I use pkg-config it does not find them because there are missing .pc files. For example, if you do: brew install opencv and, after it is installed: pkg-config --libs opencv I get this error: Package opencv was not found in the pkg-config search pa...
I have installed some libraries with Homebrew but if I use pkg-config it does not find them because there are missing .pc files.
For example, if you do:
brew install opencv
and, after it is installed:
pkg-config --libs opencv
I get this error:
Package opencv was not found in the pkg-config search path.
Perhaps you should add the directory containing `opencv.pc'
to the PKG_CONFIG_PATH environment variable
No package 'opencv' found
This error is caused because Homebrew does not create any
opencv.pc
.
Is there a way to configure Homebrew to create the .pc files so that all packages installed with brew can be found by pkg-config?
nkint
(571 rep)
Dec 5, 2013, 12:20 PM
• Last activity: Jun 11, 2022, 12:20 PM
11
votes
2
answers
35393
views
How do you uninstall .pkg file?
Most apps come packaged in a .dmg file, where once mounted all you have to do is copy the `.app`, special directory to you Applications folder and that's it. Nice and clean, if you ever want to uninstall the app, you just remove it. However, what about `.pkg` files? I know there are some commercial...
Most apps come packaged in a .dmg file, where once mounted all you have to do is copy the
.app
, special directory to you Applications folder and that's it. Nice and clean, if you ever want to uninstall the app, you just remove it.
However, what about .pkg
files? I know there are some commercial solutions, but really, that's not to satisfactory.
Dan
(624 rep)
Mar 6, 2020, 02:13 AM
• Last activity: Mar 31, 2022, 04:22 PM
0
votes
1
answers
79
views
removing pkg installation
Is it possible to remove all that was installed by a pkg installer? I read that "When a package is installed, it creates a “receipt” which contains details about what files and directories were created." But does this "receipt" always all details about what files were created or is this creation up...
Is it possible to remove all that was installed by a pkg installer? I read that "When a package is installed, it creates a “receipt” which contains details about what files and directories were created." But does this "receipt" always all details about what files were created or is this creation up to the pkg file (thus its developer)?
My problem is that when i install some pkg, i want to make sure that even if it contains some spying "crap" that it can be removed.
atapaka
(173 rep)
Dec 28, 2021, 10:36 AM
• Last activity: Dec 28, 2021, 10:57 AM
0
votes
2
answers
102
views
Does a Installer Package guarantee that all files are tracked?
I know about ` `, `pkgutil --files`, and `lsbom`. I know also that installer packages are really a XAR archive. What I do not know yet, is that whether running a `.pkg` installer packages guarantees that all the files produced as a result of running it will be tracked? For instance, when a `.pkg` in...
I know about
, pkgutil --files
, and lsbom
. I know also that installer packages are really a XAR archive.
What I do not know yet, is that whether running a .pkg
installer packages guarantees that all the files produced as a result of running it will be tracked?
For instance, when a .pkg
installer package ran some arbitrary scripts, will the files be tracked by macOS? I tried searching and there does not seems to be any official documentation on this.
Some unofficial guides:
https://matthew-brett.github.io/docosx/flat_packages.html
http://s.sudre.free.fr/Stuff/Ivanhoe/FLAT.html
Although not explicitly mentioned, these guides seems to be indicating that the files won't be tracked, is this correct?
Also, are there any official answer on this?
ed9w2in6
(111 rep)
Jun 16, 2021, 12:26 PM
• Last activity: Jun 17, 2021, 09:32 AM
4
votes
1
answers
18557
views
Creating an installer (.pkg file) from the command line
I've seen multiple tutorials in how to create an installer to distribute a MacOS application, but they're all very simple examples (just installing an application and placing it in /Applications). To do that, they use : sudo pkgbuild --install-location /Applications --component application-path ./De...
I've seen multiple tutorials in how to create an installer to distribute a MacOS application, but they're all very simple examples (just installing an application and placing it in /Applications).
To do that, they use :
sudo pkgbuild --install-location /Applications --component application-path ./Desktop/installer.pkg
My situation isn't that complex either, but I can't find out how to do it. I want to install an application to /Applications, but I also want my .pkg to place a .dylib in a specific folder.
I've tried doing this :
sudo pkgbuild --install-location /Applications --component myApp.app/ --install-location /destination/for/my/dylib --component myLib.dylib ./myInstaller.pkg
but it says that it doesn't accept my .dylib because it's not a "valid bundle component".
How can I do this?
Luis Angel Urena Lopez
(161 rep)
Mar 8, 2021, 10:27 PM
• Last activity: Apr 8, 2021, 10:01 PM
0
votes
1
answers
244
views
Utilize "burner" user accounts to sandbox specific "sketchy" apps
There's some apps that are sort of irreplaceable for a user, yet at the same time unwanted by them, *(due to violating privacy, controversial history etc.)* In my case that is Google's Android File Transfer**¹**, which is irreplaceable *(to me)*, yet like any Google product, behaves literally l...
There's some apps that are sort of irreplaceable for a user, yet at the same time unwanted by them, *(due to violating privacy, controversial history etc.)*
In my case that is Google's Android File Transfer**¹**, which is irreplaceable *(to me)*, yet like any Google product, behaves literally like malware when installed on your computer.
When it comes specifically to an app that is:
**(i)** simply "drag-to-Applications-folder" to install (rather than through a .PKG installer**²**),
and **(ii)** on a computer that hasn't already launched/used that "sketchy" app (now or in the past), can I:
**(a)** Make a burner Standard-type User Account → logout from my Admin acc → login with that burner one → download and use the "sketchy" app there and then, but making sure I don't use my Admin credentials at any time, if/when asked while logged in the burner one → logout and back in with my Admin acc → and just erase the burner one?
Would that leave any traces of the "sketchy" app behind, or is it as if it's never been on this computer?
**(b)** Instead of deleting that burner acc, can I just keep it for future use, so that it permanently works sort of as a *sandbox*, for when I need to use "sketchy" apps? (Since I haven't been able to find a built-in or 3rd-party macOS feature which sandboxes apps for you)
Or would it leave my computer susceptible to those apps?
__________
**¹** The reference to that specific app is purely indicative; my inquiry applies to **any** app that one might deem "sketchy".
**²** i.e., app related files will inevitably be installed in
/Library/
(and not just ~/Library/
) for the app to work properly, when installed through a .PKG installer. Examples: Adobe Photoshop, Microsoft Office, etc.
robinhoodhat
(9 rep)
Jan 2, 2021, 04:00 PM
• Last activity: Jan 2, 2021, 04:14 PM
Showing page 1 of 20 total questions