When we lived in Hawaii we were aware that one week of missed shipping would lead to serious food shortages. Two weeks and the natives would revert to cannibalism
We keep at least six months of provisions aboard - mostly freeze dried back-packing type stuff but also a lot of cans and jars of non-perishables. We think you need to have some of both because the freeze dried stuff requires a lot of water. Even though we have a water maker, we think it is prudent not to rely on only one type of food storage.
Of course we also carry the classics: Dried beans, pasta, rice and other grains and lots of peanut butter.
It goes without saying - fishing gear.
Fresh fruits, veggies, meats, eggs etc., we buy just before departure on a trip. There have been discussions about that stuff before so I won't go into it now.
We found a very useful chart for
Canned Good Shelf LIfe but it pays to keep in mind that steel cans rust. Plastic jars are better but are illegal and irresponsible to toss overboard. Same for the mylar packages but those are easy to stow for later disposal ashore.