There are a few ways to do this. One way is to never install an app from the Play Store. Another way is to use the "Install from unknown sources" option in your device's settings.