Raspberry Pi_Eng_17.4.1 Obtaining Installer Program Source

17.4 Obtaining Installer Program Source

The programs that can be installed on the Raspberry Pi system are provided in several types. It can be distributed officially through the package repository on the Raspbian operating system, individually downloaded from the Internet, or downloaded from a repository like the open source sharing homepage Git Hub. In the next, we will look at how to handle each of these sources.

17.4.1 How to Use Program Registered in Package Repository

The Raspbian distribution has a package manager system that systematically manages packages on the the system as a whole, which includes a package repository that has the informations about the installable programs list.

Raspberry Pi_Eng_17.3 Checking Program Package List and Status

17.3 Checking Program Package List and Status

There is a way to check the program package list available in Raspberry Pi and check if the package is installed.

Among various methods, here are some examples of using the “dpkg” command. You can use the “dpkg –l” command to look up a packages list with a certain pattern.

Raspberry Pi_Eng_17.2.4 Package Management Tool – aptitude

17.2.4 Package Management Tool – aptitude

The “aptitude” is the highest-level frontend interface in the APT package management system, and is a package management tool with many features:

■ The “aptitude” command comes with a fullscreen interactive text user interface and a command line user interface.

■ The aptitude” command is suitable for package management tasks that require daily routine interaction, such as checking installed packages or checking available packages.

■ The “aptitude” command uses hardware resources heavily.

Raspberry Pi_Eng_17.2.3 Package Management Tool – APT

17.2.3 Package Management Tool – APT

17.2.3.1 Overview of APT Tool

The APT (Advanced Package Tool) is an advanced interface to the Debian packaging system, which provides “apt-get” program. The tool supports a sequential installation task completely, can process data from multiple sources, and in addition, provides many other distinguishing features. In Debian, you can use this APT-based package management tool to handle package management tasks using the repository.

Raspberry Pi_Eng_17.2.2 Package Management Tool – dpkg

17.2.2 Package Management Tool – dpkg

The “dpkg” tool is the software based on Debian’s package management system, which is used to install or remove “.deb” packages and provide information about packages.

The “dpkg” package includes the various programs together needed to actually run the packaging system, such as “dpkg-deb”, “dpkg-split”, “dpkg-query”, “dpkg-statoverride”, “dpkg-divert” and “dpkg-trigger” as well as the “dpkg” program.

Raspberry Pi_Eng_17.2.1 Overview of the Package Management Tool

17.2 Package Management Tool

17.2.1 Overview of the Package Management Tool

There are several tools for managing packages in Debian. All of these management tools have features, so you can choose the one that suits your needs.

These management tools can be classified into various types according to their characteristics. First, it can be divided into several layers according to the processing function and complexity level of the package management tool:

Raspberry Pi_Eng_17.1.2 Package Repository

17.1.2 Package Repository

The Debian-based distribution manages the basic program list information that can be installed and used on the system where the operating system is installed. This is called the package repository. The Debian-based distribution runs the package repository server on Internet and provides a package management system called Advanced Packaging Tool (APT), a tool for searching, installing, and manipulating packages in the package repository.

Raspberry Pi_Eng_17.1.3 Package Manager System

17.1.3 Package Manager System

A package manager or package management system means a set of software tools that consistently automate the process of installing programs, upgrading programs, adjusting setting item, and deleting programs on a particular computer operating system. Debian uses a package manager system to unify all the software packages installed on the system into one and manage them integrally.

Raspberry Pi_Eng_17.1.4 Source List of Package Repository

17.1.4 Source List of Package Repository

The place to specify where the package manager should download information about the package is called the source list. The APT tool in Debian determines the source list to download the package from “/etc/apt/sources.list” file. CD-ROM, HTTP server, FTP server, and hard disk can all be sources.

Raspberry Pi_Eng_17.1.5 Naming Rules for Package

17.1.5 Naming Rules for Package

The package usually has a filename in the form of a “deb” extension. “deb” is an extension to the Debian software package format, which is used for binary packages. The basic format of package file name is as follows.

_–< Revision number>_.deb