While I often leave my sofrito recipe in the refrigerator for up to 2 weeks, it can also last you up to 2 months in the freezer.