The storage life depends on the ingredient. Some, like brown rice or whole wheat flour, just don't last long. Baking mixes generally last 5 years or so. Other foods like powdered milk and eggs, grains and beans, can last for decades.
I've seen some lists of estimated times. Maybe someone will be kind enough to post one. The estimated times are proving to be very conservative, as some of the foods, when stored properly, are lasting much longer than expected.
As for batteries, you might look into rechargeable and inexpensive solar battery chargers. They pay themselves off after a few uses and are really the only long term solution. Even my old school nicads have lasted from the mid '90s until now. The new Eneloops are a better technology yet.
I don't know that I'd vacuum pack batteries. That creates a pressure differential between the inside and the outside. It could possibly cause leakage or damage.