I keep all my packages for those I bought from Apple directly. Some still have the original brown outer box Apple used.
As for non-Apple gadgets, I keep as many as possible, usually until I throw away the device itself.
(My partner is a bit unhappy about this, I know.)