Google Chrome is a cross-platform web browser developed by Google. It was first released in 2008 for Microsoft Windows, and was later ported to Linux, macOS, iOS, and Android where it is the default browser built into the OS. The browser is also the main component of Chrome OS, where it serves as the platform for web applications. Google Chrome is a fast, free web browser. Before you download, you can check if Chrome supports your operating system and you have all the other system requirements. How to Repair Google Chrome. This wikiHow teaches you how to fix common errors in the Google Chrome desktop browser, as well as how to uninstall and reinstall the Chrome browser on both desktop and iPhone. I installed Google Chrome on my computer, but then deleted it when I found that Safari is better anyway. Now I can't get rid of the googlechrome.dmg (I don't even know what a dmg is). It is sitting in my trash, but I can't empty my trash because 'googlechrome.dmg' is in use.
#!/bin/sh |
dmgfile='googlechrome.dmg' |
volname='Google Chrome' |
logfile='/Library/Logs/GoogleChromeInstallScript.log' |
url='https://dl.google.com/chrome/mac/stable/GGRO/googlechrome.dmg' |
/bin/echo '--'>>${logfile} |
/bin/echo '`date`: Downloading latest version.'>>${logfile} |
/usr/bin/curl -s -o /tmp/${dmgfile}${url} |
/bin/echo '`date`: Mounting installer disk image.'>>${logfile} |
/usr/bin/hdiutil attach /tmp/${dmgfile} -nobrowse -quiet |
/bin/echo '`date`: Installing...'>>${logfile} |
ditto -rsrc '/Volumes/${volname}/Google Chrome.app''/Applications/Google Chrome.app' |
/bin/sleep 10 |
/bin/echo '`date`: Unmounting installer disk image.'>>${logfile} |
/usr/bin/hdiutil detach $(/bin/df | /usr/bin/grep '${volname}'| awk '{print $1}') -quiet |
/bin/sleep 10 |
/bin/echo '`date`: Deleting disk image.'>>${logfile} |
/bin/rm /tmp/'${dmgfile}' |
exit 0 |