Since COVID, I always have in my house food sufficient for many months, because storing dry and frozen food ingredients does not need much space, even for a quantity sufficient for a half of year.
I normally also buy fresh fruits and vegetables, but they are optional, I could eat only food cooked from the dry and frozen ingredients (even for bread, I prefer to bake it myself, instead of buying it, so storing flour needs little space).
On the other hand, I do not have space to store water for more than a few days, so that is a more important external dependence than food.
how do you store frozen food for many months? (how do you intend to power it in emergency?)
How to keep frozen when power is out?