One of the security measures imposed by Apple limits applications installation from all sources on macos. It is a useful security measure that prevents the installation of applications that are not downloaded from the App Store or downloaded applications from the Internet but do not belong to Apple identified developers. Applications without digital signature.
Up to the operating system MacOS Sierra It was allowed to install from all sources by simply checking the option ”Anywhere"in System Settings > Security & Privacy > Allow apps downloaded from: Anywhere.
New Security measures were introduced on the new Macos, and the "Anywhere" option was eliminated from settings. In that case, only applications discharged from App Store or from apple recognized developers. Identify.

Fortunately, by a simple command line executed in the utility Terminal, it is possible to reactivate the "ANYWHERE" option that allows the installation of applications from all sources, not only DN App Store or from developed developers.
Table of Contents
Allows installation apps from all sources on macos
1. Open the utility Terminal then execute command lineă:
sudo spctl --master-disable
2. Introduci parola user-ului de sistem pentru a executa comanda.

This method is also called "disabling gatekeeper“.
3. ReopenSystem Settings > Privacy & Security > “Allow apps downloaded from” > Anywhere.

If the three options do not appear as available, click on the lock-in-law icon and enter the user password.
After selecting "Anywhere" you can install on MacOS operating systems downloaded from the Internet, which are not a developer checked by Apple.
Gatekeeper reactivation
If you want to disable Gatekeeper Temporary to install a particular application that is not signed or to run applications from unknown sources, it is advisable to activate again Gatekeeper After you have finished using those applications.
To reactivate in place Gatekeeper Execute the command line:
sudo spctl --master-enable
After executing the command line, the option ”Anywhere"He will disappear again.
Hello, thank you very much, I'm at times trying to install a unsuccessful DMG, now I think it will work.
Sudo SPCTL -Master-Disable also works on Mojave !!! Thanks
When you ask for the password for the Terminal application, how can I add it?
Thanks
Just type your macOS password in terminal (in clear – no password or starts) or in the dialog box.
Maybe even if my machine is not English, I still have this cod?
All Terminal command lines are in English, regardless of operating system language.
Hello, thank you for your position. I have no computer knowledge ... How to open the terminal application?
Hello.
In my case I can't do it. The following appears:
Last login: Wed Mar 20 18:54:24 on ttys000
MacBook-de-Fabio: ~ Fabiomac $ Sudo Spctl –Master-Disable
sudo: /etc/sudoers is world writable
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
MacBook-de-Fabio: ~ Fabiomac $
The system is MacOS Mojave 10.14.3
What do you advise, please?