All dried pastas are non-perishable except whole-wheat pasta (for the same reason that brown rice doesn't last forever). That said, pasta can diminish in quality over time and tastes freshest within the first two years of purchase. Fresh pastas are made with eggs and moisture, so they can only be kept for about two days in the fridge and two months in the freezer.