You can roast it and freeze it.
Or you can blanch the cloves for 1 minute, cool them, peel them, chop and store in butter/oil in the freezer.
Methods To Store Garlic
Freezing. Peeled and chopped or sliced garlic can be mixed with oil or water and frozen in ice cube trays, then stored in zip lock bags. Or it may be chopped, mixed with oil, stored flat in zip lock bags in the freezer. (this is one method I use)
Dehydrating. Whole or sliced or chopped, dehydrated, it can be stored this way in sealed jars or bags, or ground into a powder. (this is another method I use)
Canning or canning in oil. Although garlic canned or jarred in oil is available in the supermarkets, there are no approved home canning methods of canning garlic. Please consult the Ball Blue Book and University Extension offices methods and for more information.
Storing in oil. It should only be kept in oil less than a week and refrigerated. There is a botulism risk with storing herbs and garlic in oil and I don't recommend this method.