What exactly do you mean? Typically you go to a website, register the domain, setup payment and then setup the nameserver. No need to install anything on your end.
Same with hosting. You sign up, setup payment, order a machine (root or virtual) and then you get SSH credentials and are good to go.