Dried and salted staples dominated, because anything fresh spoiled on the journey. Beans and salt pork were the backbone of the diet, joined by apples, hard biscuits and molasses as the affordable extras.
Sourdough deserves a special mention: a starter could be kept alive indefinitely and became so central to camps in the American West that veteran prospectors were nicknamed "sourdoughs." When a miner struck it rich, the first luxury was usually something canned or fresh rather than more flour.
The result was a diet heavy in salt and starch and desperately short on vitamins, which is why scurvy was a persistent problem in the camps despite the general abundance of provisions.