Preheat the oven to 400 degrees. Cut the garlic in half across the head of garlic. Place the garlic on a piece of aluminum foil. Drizzle the cut side of the garlic with olive oil and sprinkle with salt. Enclose the garlic in the aluminum foil and roast for 45 minutes.