C
C
cheremushkin2012-08-28 13:31:35
macOS
cheremushkin, 2012-08-28 13:31:35

How to get back deleted files from Mac OS X Lion?

2 weeks ago, I accidentally deleted binaries (for example, the wget command file ) and libraries (for example, from /usr/local/lib/ ) when I wanted to remove Homebrew from the computer . As a result, PHP does not work for me, add-ons are not installed, and many more problems. I would like to know how to recover all these files (preferably with formatting data from a computer).
I found one solution: Reinstall Mac OS X Lion via the Internet . I have a few questions after reading this guide:

  1. My MacBook Pro originally came with Mac OS X Lion. When I restore the system, will I be asked for any money?
  2. Will what I expect happen, i.e. Will the files be restored and will the disk be formatted?
  3. How long will the system restore take?

Thanks in advance for your answers.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
D
deleted-mifki, 2012-08-28
@deleted-mifki

/usr/local and even more so wget, which is not installed with the system at all, could not break the system php and some “add-ons”

S
SAKRIST, 2012-08-28
@SAKRIST

Is your Apple Id tied to "Mac OS X Lion"? if there was an axis at the time of purchase, then you can bind it to your account in the App Store, if I'm not mistaken, when you restore it, it will ask for an account with an axis.
system recovery about an hour, depends on the ssd/hdd screw

I
iwitaly, 2012-08-28
@iwitaly

Somehow I climbed out of ignorance in the system files and also had problems. I did an online restore.
1) Do not require, everything is free.
2) In my opinion, this can be set during the recovery itself (whether formatting is needed). As a last resort, Disk Utility is here to help.
3) Depends on the speed of the Internet. The recovery itself is fast enough.

I
iStyx, 2012-08-31
@iStyx

You have up to in PATH , swap it and you will be happy /usr/local/*. /usr/*

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question