The answer to 'how to install recessed lighting' is to first turn off the power to the area where you will be installing the lights. Then, use a stud finder to locate the ceiling joists and mark where you will cut the holes for the recessed light fixtures. Next, cut the holes using a drywall saw or jigsaw, being careful not to damage any wiring or pipes. Install the recessed light housings and secure them to the ceiling joists. Finally, connect the wiring according to the manufacturer's instructions and install the trim rings and light bulbs.
Recessed lighting is a great way to add task lighting or ambiance to a room, but it does require some electrical work. If you are not comfortable working with electrical systems, it is recommended to hire a licensed electrician to handle the installation for you.