Fresh pasta will last one day in the fridge. No longer, as bacteria will start forming with the humidity in the fridge and the texture will start changing. The reason fresh store-bought pasta will last longer is because it's been semi-cooked to extend its shelf life.