How can you take a public company private?

Do you have to actually buy back all the stocks sold?