The answer to 'how to replace generator' is that you can replace a home generator yourself, but it's generally recommended to have a licensed electrician handle the process. Replacing a generator involves disconnecting the old unit, installing the new one, and properly connecting the electrical and fuel lines.
Before starting, make sure to turn off the main circuit breaker and fuel supply to the generator. Carefully disconnect all electrical and fuel connections, then remove the old generator. Position the new generator in the same location, reconnect the electrical and fuel lines, and restore power and fuel. Test the new generator to ensure it's working properly.