Raspberry Pi_Eng_17.8 Upgrade of System Kernel and Firmware

17.8 Upgrade of System Kernel and Firmware

The kernel and firmware of the Raspberry Pi system are continuously being upgraded to fix errors, improve system performance, and provide additional functionality. If a certain period of time has elapsed since the installation of the Raspberry Pi system, the currently installed system may be different from the system of the latest version. Also, if a specific application is developed based on the latest version of the system, it may cause an error if the program is used on the system of the previous version. Therefore, it is sometimes necessary to upgrade the kernel and firmware.

Raspberry Pi_Eng_17.7.3 “apt-get upgrade” Command- Reflect Updated Program

17.7.3 “apt-get upgrade” Command- Reflect Updated Program

If a program already installed on the system is modified afterward, it is necessary to replace it with a new program. This is done using “upgrade” command in “apt-get” command.

Raspberry Pi_Eng_17.7.2 “apt-get update” command – Update Local Package DB

17.7.2 “apt-get update” command – Update Local Package DB

The “update” command is used to update the program package information in the local package repositoroty installed on the system to the latest version. When this command is executed, the package information stored in the local package repository is updated to the latest version, and the latest package file for the installed program is downloaded and archived.

Raspberry Pi_Eng_17.7.1 Upgarde of Program

17.7 Update and Upgrade of Program

17.7.1 Upgarde of Program

The package managed by the package repository manages software distribution and metadata in the form of archive files. When a package is installed on a specific computer, the metadata contained in the package is stored in the local package database. In this local package database, typical information such as software dependency and version is managed. The package manager uses this local package database to prevent discrepancies between software and missing essential items.

Raspberry Pi_Eng_17.6.2 Cleaning Program Package File

17.6.2 Cleaning Program Package File

During the process of installing or upgrading programs, the related program package file is downloaded and stored in the local repository “/var/cache/apt/archives/”. These files are not deleted and remain intact even if the program installation is completed or the program is removed. If these files continue to accumulate, it will take up unnecessary storage space in the system, so it’s a good idea to remove any files that is no longer needed.

Raspberry Pi_Eng_17.6.1 Uninstalling Programs

17.6 Uninstalling Programs and Cleaning Files

17.6.1 Uninstalling Programs

If you no longer need the installed programs, you should remove them. There are several ways to remove installed programs.

Raspberry Pi_Eng_17.5.1 Comparison of Installation by Source Distribution Method

17.5 Installing and Reinstalling Program

17.5.1 Comparison of Installation by Source Distribution Method

In the Raspbian operating system, it is standard to manage and distribute programs using the package repository, but you can distribute, install, and use programs without using this method.

Raspberry Pi_Eng_17.5.2 Installing Programs Distributed in Package Repository

17.5.2 Installing Programs Distributed in Package Repository

● “apt-get install” command – install program

When installing programs in the package repository, use “install” command in “apt-get” command.

Raspberry Pi_Eng_17.5.3 Installing Programs Distributed in Package Format

17.5.3 Installing Programs Distributed in Package Format

Of course, if the program is configured in a package format but is not registered in the package repository and distributed in a separate way, you can not use the APT tool “apt-get” command, and you have to use the low-level “dpkg” command.

Raspberry Pi_Eng_17.5.4 Installing Programs Distributed in the General File Format

17.5.4 Installing Programs Distributed in the General File Format

Among the developed programs, programs that are composed in the form of general source code or executable files other than the form of packages are not registered and distributed in the package repository, and those should be distributed and installed in a separate way.