hdiutil is deprecated in macOS 27 Golden Gate
In macOS 27.0, Apple has deprecated the command-line tool hdiutil, which is used for manipulating disk images. Users are now encouraged to use diskutil image instead for all disk image operations. While diskutil image provides subcommands for attach, create, resize, info, and chpass, it does not support ASIF (Apple Sparse Image Format) images, which hdiutil does.
Some options from hdiutil are preserved in diskutil, but with different names. However, certain hdiutil options, such as -puppetstrings for progress output and -srcfolder for specific create operations, are missing in diskutil. Also, hdiutil triggers an authentication prompt for certain files, whereas diskutil does not, requiring manual intervention in the latter case.
In a comparison of hdiutil and diskutil on macOS 27 Golden Gate, diskutil proved to be faster and produced a smaller disk image file. However, diskutil lacks some verbosity and the progress percentage updates in place during the image creation process. Despite these issues, diskutil's overall performance is an improvement over hdiutil.
Written by urgent.news from Hacker News's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.