How to install an exterior gate?

When the exterior gate seriously begins to lose aesthetics, but above all in safety, it must…