If you aleady has a gas range, you can DIY replace old range with new as long as gas line already connected. But if you don't have gas ranger before, a new gas line should be installed, usually from basement to first floor. This has to be done by a licened technician. You may have insurance problem if diy.