With food, dry goods last longer than canned, canned lasts longer than prepared foods (ready to eat but in a package). Again, temperature and moisture are the things that affect the longevity of anything. Stored properly, dry and canned should last years.