You can store homemade lard for a year at normal room temperature, or longer in a fridge. If you're not using a refrigerator, don't store lard in sunlight or near a stove. For much longer than a year, bung it into a freezer. However, do not thaw lard with the intention to refreeze it because that could be dangerous. You'll know when lard has gone off because it will smell extremely funny, but not in an amusing way.