You would of course run rpi-update once in a while, it is optional. So to completely upgrade everything (assuming rpi-update is already installed), just type the following: sudo apt-get update It will remove any and all dependencies no longer in use by anything on the system. Removing any application, the dependencies will stay on the system. Over time and several updates, applications and packages installed will also install and share many libraries. To check the current firmware version without running rpi-update, just type uname -a If the rpi-update did find and upgrade you to a new version of the firmware, a reboot is required. If not found, you can easily download: sudo apt-get install rpi-update In some Raspberry Pi distributions the rpi-update is bundled, in some not. To invoke, type the following (notice this is not a feature of apt-get, you are running a separate utility): sudo rpi-update Obviously please make sure your system is well updated before running the rpi-update. It allows updating the firware in an easy and fully automated way. This is a special feature for Raspberry Pi. If needed, it will try to upgrade the most important packages at the expense of less important ones. In addition to performing the described upgrade, this option also intelligently handles changing dependencies in new package versions. In the apt world, the partial equivalent of this is full-upgrade, see above. This means it can remove obsolete packages or add new ones. The dist-upgrade will do the same job as upgrade, but on top will intelligently handle dependencies. You might still want to check Rasperry Pi specific updates below though. In fact, you don't need anything else for updating the system. This is a typical usage of your update cycle. Comes only with apt, and replaces all the hard work of using dist-upgrade (below) and autoremove. This is a new member of the update commands. New versions of currently installed packages that cannot be upgraded without changing the install status of another package will be left at their current version. Packages currently installed with new versions available are retrieved and upgraded under no circumstances are currently installed packages removed, nor are packages that are not already installed retrieved and installed. Note that sources are listed in /etc/apt/sources.list. An update should always be performed before an upgrade or dist-upgrade.Īpt update does not actually install any new version of software upgradeĪfter update we are actually ready to install the latest versions of all packages currently installed on the system. It will do this for all available repositories. This downloads the package lists from available repositories and updates your system with the latest information on newest versions of packages and their dependancies. Apart from some simplifications, apt also brings you a better 'graphical experience' updateįirst thing to run on your device is an update sudo apt update In a nutshell - apt is new and recommended, apt-get works, but is 'old style'. Below, we show both approaches (marking the older alternatives as 'old style'). You might want to check an easier way of upgrading your system using apt. Note: Recently, the Debian ecosystem has received a significant boost in the update mechanisms. However, equipped with this knowledge, you are becoming a Linux updat pro as well :) This recipe summarizes the approach for your device and the extras available specifically for Raspberry Pi. As with any other Linux system, the update / upgrade path for the Raspberry Pi is rather straightforward.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |