Upgrade package versions, and replace deprecated ones.