Thought it might be helpful to have a how to store various food items thread. I know that questions often pop up in the middle of other threads.
Happy to start
Flour - freeze for 72 hours to kill off any weevil eggs and then store in an airtight container. White flour will last for a long time if stored properly (well over a year) Wholemeal flour is likely to go rancid far more quickly than white flour and typically will only be good for 4-6 months max (you might be lucky and get longer out of it but its not guaranteed unless you're vacuum packing it in mylar bags with oxygen absorbers).
Pasta - bog standard dried pasta is bomb proof as long as it doesn't get wet. Wholemeal pasta is not bombproof and will go rancid as per flour above.
Sugar - again will last for ever if stored in a container so that it doesn't get wet.
Honey - will literally last for centuries. Honey has been found in Egyptian tombs which is still edible.
Please add your knowledge everyone!