返回 首页

Install .dmg Application use command line


Because I used to be a Linux user, I'm not very suitable for the way of dragging and installing the application on the MAC system. Here is a demonstration of using the command line installer to install Baidu online disk:

hdiutil attach BaiduNetdisk_mac_3.0.5.4.dmg

Then

cp -r /Volumes/百度网盘/BaiduNetdisk_mac.app  /Applications

Then have the application in /Applications folder Don't forget to unmount:

hdiutil unmount /Volumes/百度网盘


Full log:

  tools hdiutil attach BaiduNetdisk_mac_3.0.5.4.dmg 
Checksumming Protective Master Boot Record (MBR : 0)
Protective Master Boot Record (MBR :: verified   CRC32 $59FE27A2
Checksumming GPT Header (Primary GPT Header : 1)
 GPT Header (Primary GPT Header : 1): verified   CRC32 $233AC4FB
Checksumming GPT Partition Data (Primary GPT Table : 2)
GPT Partition Data (Primary GPT Tabl: verified   CRC32 $6B594661
Checksumming  (Apple_Free : 3)
                    (Apple_Free : 3): verified   CRC32 $00000000
#......
disk image (Apple_HFS : 4): verified   CRC32 $1596394B
Checksumming GPT Partition Data (Backup GPT Table : 5)
GPT Partition Data (Backup GPT Table: verified   CRC32 $6B594661
Checksumming GPT Header (Backup GPT Header : 6)
  GPT Header (Backup GPT Header : 6): verified   CRC32 $637DD144
verified   CRC32 $3F4FAA8A
/dev/disk2              GUID_partition_scheme          
/dev/disk2s1            Apple_HFS                       /Volumes/百度网盘
  tools cp -r /Volumes/百度网盘/BaiduNetdisk_mac.app  /Applications 
  tools hdiutil unmount /Volumes/百度网盘 
"/Volumes/百度网盘" unmounted successfully.


评论(0)

登录