上QQ阅读APP看书,第一时间看更新
How to do it...
- Before running any upgrades or installing any packages, it is worth ensuring you have the latest list of packages in the repository. The update command gets the latest list of available software and versions:
sudo apt-get update
- If you just want to obtain an upgrade of your current packages, upgrade will bring them all up to date:
sudo apt-get upgrade
- To ensure that you are running the latest release of Raspbian, you can run dist-upgrade (be warned: this can take an hour or so depending on the amount that needs to be upgraded). This will perform all the updates that upgrade will perform but will also remove redundant packages and clean up:
sudo apt-get dist-upgrade
Both methods will upgrade the software, including the firmware used at boot and startup (bootcode.bin and start.elf).
- To update the firmware, the following command can be used:
sudo rpi-update