Open the original DMG file, select the installation file, press the right mouse button, select Show Package Contents
<ignore_js_op>
Follow the path, always find INSTALLESD.DMG, double-click to open it
<ignore_js_op>
After mounting into the INSTALLESD packages directory, you will see all the installation packages, take the system basic package as an example, to extract the kernel, driver files
Choose to use the Unarchiver to open and need to install the software beforehand.
<ignore_js_op>
Unzip to a directory, open the terminal program, in my environment, for example, the path of decompression is/volumes/raid/pkg,
The resulting directory is/volumes/raid/pkg/basesystembinaries/
In the terminal:
$ sudo-s
# cd/volumes/raid/pkg/basesystembinaries/
# ls
Bom PackageInfo Payload
Where payload is the compressed package of the installation file, it is a cpio+bz2 packaging format
To unzip it, use the following command:
# mkdir Dest
# CD Dest
# Bzcat. /payload | Cpio-idm
If you want to see a list of its files
# Bzcat. /payload | Cpio-it
To extract the kernel files separately:
DMG Extract installation files