Packaged beans (like in the 1, 5, 20, 40 lb) in plastic bags need to be packed in either glass (mason jars), tins, vacuum sealed or mylar/vac sealed (w/oxygen absorbers, if not vac sealed), to last past a year (or, so).
This keeps them from turning dark and getting bugs in them.
I don’t even know how to vacuum seal.