Should last 4-6 months in the fridge unopened. Once opened, keep covered or in a container (like a ziplock bag, wrapped in parchment paper, or a glass Pyrex).
You can freeze cheese for up to a year. But it may have a more crumbly texture when thawed.