Published Book on Amazon
|All of IOT Starting with the Latest Raspberry Pi from Beginner to Advanced – Volume 1|
|All of IOT Starting with the Latest Raspberry Pi from Beginner to Advanced – Volume 2|
출판된 한글판 도서
|최신 라즈베리파이(Raspberry Pi)로 시작하는 사물인터넷(IOT)의 모든 것 – 초보에서 고급까지 (상)|
|최신 라즈베리파이(Raspberry Pi)로 시작하는 사물인터넷(IOT)의 모든 것 – 초보에서 고급까지 (하)|
Original Book Contents
17.7 Update and Upgrade 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.
When time has passed after the program is installed, the program may be modified or improved in order to add a new function to the installed program or to correct an error in the process of executing the program. If the program is modified afterwards for these reasons, it is necessary to replace the program installed in the system with a new program.
If there is a change in the program function and the management method for various reasons, the program manager will reflect the necessary changes in the package repository. However, the contents reflected in the package repository are not automatically reflected in the local package database of the individual computer where the program is installed, and are not automatically reflected in the execution function of the installed program.
Therefore, a separate procedure is needed to reflect the changes/improvements that are reflected in the package repository for the program packages installed on individual computers. In Raspbian, this process is performed in two steps:
■ Updating information in the local package database
To upgrade the programs installed in the system, update the package information to the latest version so that the program package information in the local package repository will reflect the latest revision/improvement.
■ Modification of programs installed on the system
The program that is already installed in the system is actually replaced with a new program by using the program package correction/improvement information reflected in the local package database.