Canned foods and dry goods like flour, rice, and beans are the best to keep in your pantry for long-term storage. They last the longest and are packed with important nutrients.