Beans and Rice store a decent amount of time, especially if you seal them in mylar bags with O2 absorbers. As mentioned, canned goods are pretty much indefinite including canned meats. Try to stay away from pull top cans. Pasta lasts a long time.
Store what you eat
Eat what you store
Rotate
MREs (Meals Ready to Eat) Military food, new version of C rations are good.
Freeze dried lasts forever but is costly. Mountain House is supposed to be tops.
Dehydrated; depends on what it is as far as how long it lasts.
Dehydrated and freeze dried need water, canned goods already have water in them. In a shtf scenario, you don’t pour out excess liquid from canned goods. It gets served with the solid or used in some way. That’s where a lot of the nutrients end up anyway.
How are you going to get water if the grid goes down for a lengthy amount of time? At some point, driving to get water or anything else won’t be an option.
Also, stay away from foil topped items and foil packaged as they can easily get a hole and your food would spoil.
Make sure you have a manual can opener. Or two.
Learn home canning.
PT and paper towels.
Vitamins.
Hand sanitizer. Yes, the government doesn’t want you using it but during emergency times when there’s no water it’s better to use it than not.
Drinking alcohol will last forever.
Remember, those dried beans are seeds.
Yes, water is a concern. We had a well and I think we could get it up and running again. The problem is making sure water is pure. We also have a creek. So, water is not a problem. CLEAN water is the problem. I don’t know how to make it clean.