Store flour in an airtight container or sealable bags and keep it in a cool place or your refrigerator’s vegetable compartment. Once opened, white flour stays fresh for 6 months while wholewheat, rye, buckwheat, and barley can be kept for 5 months. Throw away flour if it smells bad, changes color, or is invested with weevils.