When I first started stockpiling, I was very confused about how to best store my flour. Heaps of other stockpiled items already came in an item like tin that made it suitable for long term storage. Then I came across this article on All About Bread.
While brief, it has many practical tips on storing flour and protecting it from pests. It is well worth the read.
Read also