Let me elaborate on the comments a bit.
If you were to show me this picture and quickly ask me what that is called, certainly the first thing I would say would be, "package of spaghetti."
There are other options, as you'll see from the numerous words used in the comments, but they do have slightly different connotations.
Packet is the next closest possible option (for the image you showed). In my opinion, however, when I think of a packet of food, I think of a small package of something small or granular. For example, a packet of sugar:
You could also have a box of spaghetti, but not with the image that you gave. This would be a box of spaghetti:
Container can really be applied to almost anything, but it's a broader term. I don't think that'd be the first word used here.
Pack is also possible, but I find myself using that more for processed things. In other words, I would say "a pack of pencils" or "a pack of cigarettes," but NOT "a pack of flour."
In all honesty, this really goes case by case, depending on the packaging, the item in the packaging, and sometimes even the part of the country that you're in.