Home Common Problem What is the format of deb?

What is the format of deb?

Aug 24, 2022 am 11:02 AM
deb Format

deb is the Debian software package format. It is an installation package format exclusive to Debian systems (including Debian and Ubuntu). Together with the APT software management system, it has become a very popular installation package under Linux. The deb package consists of three parts: 1. Data package, including the actual installed program data; 2. Installation information and control script package, including deb installation instructions, logos, scripts, etc.; 3. Some binary data of the deb file, including files First class information.

What is the format of deb?

#The operating environment of this tutorial: Ubuntu 22 system, Dell G3 computer.

DEB is the Debian software package format. The Debian package is a standard Unix archive file. The package file information and package content are packaged through gzip and tar.

What is the deb format?

deb is the file extension for Debian software package format.

The deb format is an installation package format exclusive to Debian systems (including Debian and Ubuntu). Together with the APT software management system, it has become a very popular installation package under Linux. After entering the 2.x era, Cydia author JayFreeman (saurik) transplanted it to the iPhone platform, along with the APT software management system.

Debian package is a standard archive of Unixar, which packages the package file information and package contents through gzip and tar. The classic program for handling these packages is dpkg, often operated through Debian's apt-get. Through the Alien tool, you can convert deb packages into rpm and tar.gz formats.

The deb package in the Linux operating system is similar to the software package (exe) in windows. It requires almost no complicated compilation and can be installed and used with a mouse click.

The deb package itself consists of three parts: the data package, which contains the actual installed program data, and the file name is data.tar.XXX; the installation information and control script package, which contains the deb installation instructions, logos, scripts, etc. The file name is control.tar.gz; the last one is some binary data of the deb file, including file header and other information, which is generally invisible, but can be seen when opened in some software.

deb itself can use different compression methods. The tar format is not a compression format, but directly gathers scattered files and directories together and records their permissions and other data information. Data.tar.XXX mentioned before, where XXX is the compressed suffix name. The compression format used by deb by default is gzip format, so the most common one is data.tar.gz. Common compression formats include bzip2 and lzma. Among them, lzma has the highest compression rate, but compression requires relatively long CPU resources and time.

data.tar.gz contains the actual installed program data, and during the installation process, the data in the package will be directly decompressed to the root directory (i.e. /), so you need to follow the file before packaging Set the corresponding file/directory tree at the location.

The control.tar.gz contains the control information required for a deb installation. There are generally 5 files: control, used to record software identification, version number, platform, dependency information and other data; preinst, a script run before unpacking data.tar.gz; postinst, a script run after unpacking data; prerm, a script that runs before deleting files when uninstalling; postrm, a script that runs after deleting files;

In the Cydia system, Cydia author Saurik added another script, extrainst_, which has a similar function to postinst .

DEB installation package features:

  • Rich resources: There are many on Cydia itself, not to mention any format All installation packages can be converted to deb.

  • Relatively convenient online purchase mode: CydiaStore, but although there is no limit of 5 devices in the App Store, the payment method is more difficult for domestic users.

  • Cracking is difficult and the AppStore verification method is not used, so verification and anti-cracking measures must be added to the program. This makes it more difficult to crack, which is a good thing for software developers. .

  • Complete Unix file system support: no need to set file permissions, owners and user groups with commands (of course it can also be set with scripts)

  • Perfect script support: 5 scripts are executed in the order of installation and uninstallation, which can provide more choices. For example, for backup and restore operations, you can back up files in preinst and restore files in postrm

  • Strict dependencies: deb follows strict dependencies (specified in Depends and Pre-Depends) , which ensures the components necessary for the software to run. Dependent software packages will be automatically installed during online installation. It is also important to uninstall. For example, software package A depends on B. When uninstalling B, it will prompt that A depends on B. Uninstalling B will cause A to become unusable. This can ensure the integrity and stability of the system.

  • The existence of key values ​​such as Conflicts, Replaces, and Provides can implement conflict prompts or replace other software packages.

  • Full permissions: Since deb must run as root with the highest authority, deb can operate anywhere in the system. In other words, deb has full control over the entire system, so deb The installation package software can realize many functions that cannot be realized by ipa.

  • Relatively simple acquisition method (online or offline) and installation method, and there is no need to worry about deleting the program when synchronizing on different machines.

  • The installation is relatively simple: In fact, no matter what kind of installation package it is, the installation method is not very complicated, but deb is a little more complicated.

For more related knowledge, please visit the FAQ column!

The above is the detailed content of What is the format of deb?. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to use block quotes in Apple Notes How to use block quotes in Apple Notes Oct 12, 2023 pm 11:49 PM

In iOS 17 and macOS Sonoma, Apple has added new formatting options for Apple Notes, including block quotes and a new Monostyle style. Here's how to use them. With additional formatting options in Apple Notes, you can now add block quotes to your notes. The block quote format makes it easy to visually offset sections of writing using the quote bar to the left of the text. Just tap/click the "Aa" format button and select the block quote option before typing or when you are on the line you want to convert to a block quote. This option applies to all text types, style options, and lists, including checklists. In the same Format menu you can find the new Single Style option. This is a revision of the previous "equal-width"

What is the format of pptm? What is the format of pptm? Jan 11, 2021 pm 02:46 PM

pptm is a file format of PowerPoint in the office office suite. Its full name is "macro-enabled PowerPoint presentation". pptm files can only be opened with office software of version 2007 and above. If opened with other versions of software, problems such as inability to edit and incomplete images will occur.

What format is m3u8? What format is m3u8? Feb 20, 2023 pm 01:38 PM

m3u8 is UTF-8 encoding format. M3U8 refers to the UTF-8 encoded M3U file, and the M3U file records an index plain text file. When you open it, the playback software does not play it, but finds the network address of the corresponding audio and video file based on its index for online processing. Play. M3U8 is a common streaming media format that mainly exists in the form of a file list. It supports both live broadcast and on-demand playback. It is especially commonly used on platforms such as Android and iOS.

What is the file format of ink? What is the file format of ink? Feb 03, 2023 pm 02:32 PM

ink is the file format of a shortcut; a shortcut is a file object that is similar in function to a symbolic link, but is essentially different from a symbolic link; a shortcut is an ordinary file, not a symbol, and its extension is ".lnk" , so the shortcut can be copied, moved, changed or deleted; the shortcut can point to a file, folder or any other legal location in the system.

How to write the qq mailbox format? What is the qq mailbox format? How to write the qq mailbox format? What is the qq mailbox format? Feb 22, 2024 pm 03:40 PM

QQ email: QQ number@qq.com, English QQ email: English or numbers@qq.com, foxmail email account: set up your own account@foxmail.com, mobile phone email account: mobile phone number@qq.com. Tutorial Applicable Model: iPhone13 System: IOS15.3 Version: QQ Mailbox 6.3.3 Analysis 1QQ mailbox has four formats, commonly used QQ mailbox: QQ number@qq.com, English QQ mailbox: English or numbers@qq.com, foxmail Email account: set up your own account@foxmail.com, mobile phone email account: mobile phone number@qq.com. Supplement: What is qq mailbox? 1 The earliest QQ mailbox was only between QQ users

What format file is cr3? What format file is cr3? Jun 23, 2021 pm 03:22 PM

CR3 files are original raw files recorded by Canon's new cameras using the Digic8 image processor. cr3 files can be opened through Canon ddp, which is software for performing image adjustments such as "RAW development" on RAW images.

Learn how to install deb files in Ubuntu Learn how to install deb files in Ubuntu Dec 29, 2023 pm 11:50 PM

How to install a .deb format file on the system? Let's take a look at how to install the .deb file. Please see the detailed tutorial below. 1. Log in to the system and put the deb file on the desktop. 2. Then click on the lower left corner of the display program, as shown below. 3. Click [Terminal], as shown in the figure. 4. Then enter the installation command: [sudodpkg-i]. 5. Drag deb behind [sudodpkg-i], as shown in the figure. 6. After entering the password, as shown in the picture, the software can be installed. 7. After installation, click Start in the lower left corner, and you will see the installed software.

What format file is exb What format file is exb Mar 10, 2021 pm 03:02 PM

The exb file is a special format generated by CAXA drawing software. CAXA is China's largest manufacturing software provider. The exb file is the data file of the electronic drawing board of CAXA two-dimensional drawing software.