Raspberry Pi_Kor_17.4.2 “wget” 명령으로 인터넷에서 download하는 방법

17.4.2 “wget” 명령으로 인터넷에서 download하는 방법

우리는 때때로 인터넷에서 프로그램을 직접 download하여 설치하는 경우가 있다. 이때 물론 web browser에서 해당 프로그램을 download할 수도 있지만, Raspberry Pi의 Shell Terminal에 직접 URL을 지정하여 필요한 프로그램을 download할 수도 있다. 이때 사용하는 명령이 “wget” 명령이다.

Raspberry Pi_Kor_17.4.1 package repository에 등록된 프로그램 이용 방법

17.4 설치 프로그램 source 확보

Raspberry Pi 시스템에 설치할 수 있는 프로그램은 여러 가지 형태로 제공된다. Raspbian 운영체제에서 package repository를 통하여 공식적으로 배포될 수도 있고, 인터넷에서 개별적으로 download하여 사용할 수도 있으며, open source 공유 홈페이지인 Git Hub와 같은 repository에서 프로그램을 download할 수도 있다. 다음에는 이러한 각각의 source을 처리하는 방법에 대해서 알아 보기로 한다.

17.4.1 package repository에 등록된 프로그램 이용 방법

Raspbian 배포판에는 시스템 전반적으로 package를 체계적으로 관리해 주는 package manager system이 있고, 이 속에는 설치 가능 프로그램 목록 정보를 가지고 있는 package repository가 포함되어 있다.

Raspberry Pi_Kor_17.3 프로그램 package 목록 및 상태 확인

17.3 프로그램 package 목록 및 상태 확인

Raspberry Pi에서 사용할 수 있는 프로그램 package 목록을 확인하고 해당 package가 설치되어 있는지를 확인해 보는 방법이 있다.

여러 가지 방법 중에서 “dpkg” 명령을 사용하는 사례를 설명하겠다. 아래와 같이 “dpkg –l” 명령을 사용하면 일정한 pattern을 가진 package 목록을 조회해 볼 수 있다.

Raspberry Pi_Kor_17.2.4 package 관리도구 – aptitude

17.2.4 package 관리도구 – aptitude

“aptitude”는 APT package 관리체계에서 가장 상위에 있는 frontend interface로서, 다양한 기능을 가지고 있는 package 관리도구이다.

■ “aptitude”는 fullscreen interactive text user interface와 command line user interface를 함께 제공한다.

■ “aptitude”는 설치되어 있는 package를 검사하거나 사용가능 package를 검사하는 것처럼 일상적인 상호작용이 필요한 package 관리 작업에 적합하다.

■ “aptitude”는 hardware resources를 상대적으로 많이 사용한다.

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.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.