Rice, stored in airtight containers --- fill with dry ice first --- will last decades
Same with sugars, syrups, jams etc
Oils -- in dark bottles, in a cool place will last at least a year --- before going rancid
Canned butter lasts years
Unmilled Wheat, Rye, Corn, etc in airtight containers --- fill with dry ice first -- will last decades
Pressed Oats.
UHT milk will last at LEAST 6 months
Teas, coffees, stored in airtight containers will last at least a year.
You don't need yeast because sourdough starter can be made from the yeast in the atmosphere
Eggs is the hardest thing to store -- but, powdered eggs are fine for cooking (just kind of vile to eat plain).
The reason for the dry ice is to fill the container up with CO2 when to displace O2 in the container. Note, almost all grains contain some insect eggs that, when hatched, will grow fat on the grain with which they are stored and give you a huge surprise when you open the container.
Canned fruits and vegs, and meats last years.
Buy enough for (minimum) 3 months spare ... then continue shopping your regular schedule, rotating out storage and replacing with new.