How do you hang shelves without damaging the walls?

You can use a special glue or 3D mounting hanging things that have a strong sticker thing on the back that hold shelves.