How to get rid of pantry / cabinet bugs
If you believe you have an infestation, throw the food in the freezer for approximately three days. Always store foods in tightly-sealed containers as well.
Controlling Cupboard Pests
Cupboard pests can infest a wide variety of foodstuffs such as: flour, sugar, cereals, bread, spices, drugs, candy, nuts, dried fruit, and pet food. They are also capable of eating through paper, plastic wrappings, and aluminum foil packaging. The varied appetite of these insects coupled with their ability to eat through packages require periodic and thorough inspection of all stored food and a thorough cleaning in order to control them. After inspection, place uninfested foods in glass, tin, or plastic containers with tight fitting lids to prevent further infestation.