Downloading a browser without a browser

Discussion in 'OS X and OS X Apps' started by elbert, Dec 4, 2008.

  1. elbert

    elbert Active Member

    Joined:
    Apr 8, 2004
    Messages:
    13,923
    Likes Received:
    12
    Location:
    Manila
    I got a chat last night from a friend asking how he could get back Safari if it was accidentally erased from the Applications folder. The guy didn't know he had trashed it and emptied his trash already.

    Other than using a USB storage device to copy someone else's Safari (or other browser). I offered a Terminal command.

    The trick is to find the actual url of the file to be downloaded. Weeks or months from now, the links in my examples below may be invalid since version updates are inevitable.

    The command is called cURL. The terminal instruction is simply curl <url>, but to get the output file stored in a more accessible location, curl -o (that's a letter O and not a zero) should be used.

    So, simply fire up Terminal from the Applications/Utilities folder and then type in the string

    curl -o <url>

    For Safari 3.2.1 for leopard, its:
    curl -O http://appldnld.apple.com.edgesuite.net/content.info.apple.com/Safari3/061-5805.20881124.ShIPH/Safari321Leopard.dmg

    For Firefox, it's:
    curl -O http://kyoto-mz-dl.sinet.ad.jp/pub/mozilla.org//firefox/releases/3.0.4/mac/en-US/Firefox%203.0.4.dmg

    The output file will be found in the Macintosh HD/Users folder. From there you can double click the .dmg to mount the installer of application file.

    I hope this information comes in handy for those who might find themselves in the same situation.
     
    #1 elbert, Dec 4, 2008
    Last edited: Dec 4, 2008
  2. macdrive007

    macdrive007 Well-Known Member

    Joined:
    Mar 18, 2007
    Messages:
    3,667
    Likes Received:
    29
    Gender:
    Male
    Location:
    Caleruega, near Tagaytay
    In the absence of an internet connection and another Mac to copy Safari, another option I used to get back Safari (and other OS X Mac Apps) was the Archive and Install option of the OS X install Disc. You will need the OS X Install Disc that came with your Mac, or a retail version of OS X Tiger or Leopard, whichever OS version you need. Maybe Elbert can clarify if it's possible to extract only Safari from this OS X Installer Disc to avoid the time-consuming installation.

    Warning to newbies: In the Finder window, do not erase stuff in those items under the SEARCH FOR column. These are the real files and not merely labels. This was why I had to do the Archive and Install - the owner of the Mac I was troubleshooting erased those under PAST WEEK, and also emptied the Trash. Many Mac Apps and files, including Safari, were lost.
     
    #2 macdrive007, Dec 4, 2008
    Last edited: Dec 4, 2008
  3. booblanco

    booblanco Active Member

    Joined:
    Mar 29, 2005
    Messages:
    5,485
    Likes Received:
    0
    Location:
    Paranaque
    Father, you can use an app called Pacifist to extract just the Safari package from the OS X disc but the problem with this method is if your Mac already runs on the latest OS updates. There's a good chance that the newly-installed Safari (most likely v3.0) that was extracted from the disc may not be able to run (i.e. crash) on say, OS X 10.5.5.

    Aside from Elbert's Terminal method or installing Safari from an external volume, an archive and install may be the only way to get Safari back in this situation.
     
    #3 booblanco, Dec 4, 2008
    Last edited: Dec 4, 2008
  4. bacchus_3

    bacchus_3 PhilMUG Addict Member

    Joined:
    Apr 29, 2007
    Messages:
    4,805
    Likes Received:
    310
    Gender:
    Male
    @elbert, thanks for the cURL tip. I was wondering what OS X uses as alternative to wget (a UNIX command). cURL will be a handy tool for my terminal download routines.
     
  5. blacksocks

    blacksocks Member

    Joined:
    Aug 26, 2007
    Messages:
    439
    Likes Received:
    0
    Great tip!

    Or once you get your new Mac, download Firefox! :)
     
  6. elbert

    elbert Active Member

    Joined:
    Apr 8, 2004
    Messages:
    13,923
    Likes Received:
    12
    Location:
    Manila
    Hehe, I can't bring myself to using Firefox. To me, it's just not as fast, and I've grown too accustomed to Safari. First and foremost, I have Sogudi, which is extremely useful and has become second nature to me. Next to that, and already ingrained in my DNA, are the numerous Safari keyboard shortcuts, like cmd 1, 2, etc, to jump directly to the bookmarks in my bookmarks bar, and now, with the multitouch trackpad, multitouch gestures which are not available to Firefox. (I should be posting this in the browser thread, hehe!).
     
    #6 elbert, Dec 4, 2008
    Last edited: Dec 4, 2008
  7. skinhead

    skinhead Active Member

    Joined:
    Mar 31, 2005
    Messages:
    2,321
    Likes Received:
    0
    for multi-touch function there's multi clutch for firefox.. tested safari and firefox and for me firefox is still faster (im running on 3.0.4). What i love the best about firefox is that you can set it to launch on multiple bookmarks, mine is set on 8 tabs automatic on launch.. no need to press bookmark and choose a site one by one or open a tab and type it..

    oh and don't forget the plugins, lot's and lots of them and very useful too... Sorry for the slight OT :p
     
  8. acid

    acid Member

    Joined:
    Mar 4, 2008
    Messages:
    478
    Likes Received:
    2
    Gender:
    Female
    Location:
    Quezon City
    Hahaha...That was a very helpful tip. This has been one of the common issues of Mac users. I was really blown away by this tip.
     
  9. IronMan

    IronMan Member

    Joined:
    May 22, 2008
    Messages:
    957
    Likes Received:
    0
    Thanks Elbert for the tip. ;) Where can we get the URLs for other Mac OS X-installed apps?

    Also, nothing beats the good old backup. That's what Time Machine is for. ;)
     

Share This Page

  • About PhilMUG

    Since the mid-1990s, PhilMUG (formerly the Philippine Macintosh Users Group) has grown to become not just the Philippines’ but one of the world’s foremost Apple user groups. Our online community brings together thousands of members from the Philippines and around the world for the latest news and discussions covering all Apple products and related hardware and software. Anyone can join PhilMUG, from newbies to experts, subject to our membership rules and guidelines.
  • Like us on Facebook

  • Buy us a beer!

    The staff works very hard to make sure that PhilMUG is running 24/7. Care to buy us a beer or help out with our hosting fees? We'd really appreciate it!

    Donate to us!