Pesto freezes so well. To freeze it, divide the whole amount into half cups, then put them into freezer bags and freeze for 2-3 months. Or you can line an ice cube tray with plastic wrap, then fill the pesto in the ice pockets and freeze. After that, you can take frozen cubes out of the ice tray and put them in a freezer bag and keep them in the freezer.