The answer to how to install a ceiling fan is to first turn off the power to the light fixture at the circuit breaker. Then, remove the existing light fixture and install the mounting bracket for the ceiling fan according to the manufacturer's instructions. Next, connect the wires from the ceiling to the wires on the fan motor assembly, following the wiring diagram. Finally, attach the fan blades and light kit (if applicable) and turn the power back on to test the fan.
Ceiling fan installation typically takes 1-2 hours for an experienced DIYer. However, if you are not comfortable working with electrical wiring, it's best to hire a licensed electrician to handle the installation to ensure it is done safely and up to code.