To preserve nuts at room temperature, sterilize the nuts by freezing them for two days at 0 degrees Fahrenheit to kill pests and their eggs. If you bought the nuts from a store, you don't need to freeze them. Put the nuts in a clean and dry glass or plastic airtight container, and store it in a dark, cool location for two to four months. Store chestnuts for no longer than two weeks, as they develop mold quickly.
To preserve nuts in a refrigerator, put the nuts in clean and dry glass or plastic container. Make sure that the lid of the container snaps or screws on with an airtight seal. It is better to use glass and plastic jars rather than plastic bags because nuts absorb odors well. Place the container in the refrigerator, and store it at 40 degrees Fahrenheit or below for two months to a year.
To store nuts in a freezer, put the nuts in the same container as for refrigerator preservation. Set the freezer temperature at 0 degrees Fahrenheit or below, and store the nuts for one to three years.
You can preserve almonds and chestnuts this way for at least one year, pecans and walnuts for two years and pistachios for three years. You can store the nuts in their shells or remove the shells.