What is the difference between rpm format and deb format?
The difference is: RPM is the package management system of Linux Distribution, and also refers to the rpm package itself. RPM is used for the management of rpm packages; for Debian-based systems that use deb format packages, there are package conversion tools that enable rpm Convert to and from deb and other files.
The operating environment of this tutorial: Windows 7 system, Dell G3 computer.
1. About rpm and deb
RPM (Red Hat Package Manager) is a package management system based on Red Hat's Linux Distribution. It also refers to the rpm package itself. RPM is used for rpm packages. Management (such as installation, uninstallation, upgrade, etc.). RPM-based distributions such as Mandrake and SuSE usually have their own specific rpm packages. If mixed installations may not work properly, rpm packages issued by third parties generally can Install normally on RPM based systems.
For Debian-based systems that use deb format packages, there is a package conversion tool to convert rpm to deb and other files (Alien Package Converter). dpkg can be used for installation and upgrade, but it is not very convenient. To handle package dependencies efficiently, dselect and apt-get are more trouble-free. Ubunut is a variant of debian, and its software appears in the form of deb packages or source files.
2. The format and use of deb software packages
(1).deb software package command follows the following convention:
soft_ver-rev_arch.deb, such as: pptview_8.0-5_i386.deb, the name is pptview, the version number is 8.0, and the architecture is i386 platform.
(2)dpkg command
root@huxiping:~# dpkg --help Usage: dpkg -i|--install <.deb file name> ... | -R|--recursive ... dpkg --unpack <.deb file name> ... | -R|--recursive ... dpkg -A|--record-avail <.deb file name> ... | -R|--recursive ... dpkg --configure ... | -a|--pending dpkg -r|--remove | -P|--purge ... | -a|--pending dpkg --get-selections [ ...] get list of selections to stdout dpkg --set-selections set package selections from stdin dpkg --update-avail replace available packages info dpkg --merge-avail merge with info from file dpkg --clear-avail erase existing available info dpkg --forget-old-unavail forget uninstalled unavailable pkgs dpkg -s|--status ... display package status details dpkg -p|--print-avail ... display available version details dpkg -L|--listfiles ... list files `owned' by package(s) dpkg -l|--list [ ...] list packages concisely dpkg -S|--search ... find package(s) owning file(s) dpkg -C|--audit check for broken package(s) dpkg --print-architecture print dpkg architecture dpkg --compare-versions compare version numbers - see below dpkg --help | --version show this help / version number dpkg --force-help | -Dh|--debug=help help on forcing resp. debugging dpkg --licence print copyright licensing terms Use dpkg -b|--build|-c|--contents|-e|--control|-I|--info|-f|--field| -x|--extract|-X|--vextract|--fsys-tarfile on archives (type dpkg-deb --help.) For internal use: dpkg --assert-support-predepends | --predep-package | --assert-working-epoch | --assert-long-filenames | --assert-multi-conrep Options: --admindir= Use instead of /var/lib/dpkg --root= Install on alternative system rooted elsewhere --instdir= Change inst'n root without changing admin dir -O|--selected-only Skip packages not selected for install/upgrade -E|--skip-same-version Skip packages whose same version is installed -G|--refuse-downgrade Skip packages with earlier version than installed -B|--auto-deconfigure Install even if it would break some other package --no-debsig Do no try to verify package signatures --no-act|--dry-run|--simulate Just say what we would do - don't do it -D|--debug= Enable debugging - see -Dhelp or --debug=help --status-fd Send status change updates to file descriptor --log= Log status changes and actions to --ignore-depends=,... Ignore dependencies involving --force-... Override problems - see --force-help --no-force-...|--refuse-... Stop when problems encountered --abort-after Abort after encountering errors Comparison operators for --compare-versions are: lt le eq ne ge gt (treat empty version as earlier than any version); lt-nl le-nl ge-nl gt-nl (treat empty version as later than any version); < << <= = >= >> > (only for compatibility with control file syntax). Use `dselect' or `aptitude' for user-friendly package management. root@huxiping:~# dpkg -i | --install xxx.deb 安装deb软件包 dpkg -r | --remove xxx.deb 删除软件包 dpkg -r -P | --purge xxx.deb 连同配置文件一起删除 dpkg -I | -info xxx.deb 查看软件包信息 dpkg -L xxx.deb 查看文件拷贝详情 dpkg -l 查看系统中已安装软件包信息 dpkg-reconfigure xxx 重新配置软件包
Sometimes, when you use "dpkg" to install a software package, the system will prompt you that the software package depends on other software packages. In this case, you install other packages until the dependencies are met. Or install multiple software packages at the same time
dpkg -i aaa.deb bbb.deb ccc.deb
3. Ubuntu’s apt-command can automatically complete software dependencies, and the most commonly used one is apt-get, in fact, there are other usages that you can explore, such as the following
root@huxiping:~# apt-
apt-cache apt-config apt-ftparchive apt-key
apt-cdrom apt-extracttemplates apt-get apt-sortpkgs
root@huxiping:~# apt-
If a software dependency is too complex, use "dpkg" to install it, It is not a wise choice. At this time, you need to use the APT package management system. APT can automatically check dependencies, obtain relevant software packages through preset methods, and automatically install and configure it. In fact, in most cases, we recommend you use the APT package management system.
The APT system requires a software information database and at least one software warehouse that stores a large number of deb packages, which we call "source". The "source" can be a network server, an installation CD, or a local software repository. You need to modify the
"/etc/apt/sources.list" file to enable the APT system to connect to the "source".
For more computer-related knowledge, please visit the FAQ column!
The above is the detailed content of What is the difference between rpm format and deb format?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



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.

The RPM (RedHatPackageManager) tool in Linux systems is a powerful tool for installing, upgrading, uninstalling and managing system software packages. It is a commonly used software package management tool in RedHatLinux systems and is also used by many other Linux distributions. The role of the RPM tool is very important. It allows system administrators and users to easily manage software packages on the system. Through RPM, users can easily install new software packages and upgrade existing software

Linux rpm is generally stored in the "/usr/local" or "/usr/bin" directory by default; the "/usr/local" directory is the "/usr" directory provided to general users, where general application software is installed, and The "/usr/bin" directory also houses many applications.

In Linux systems, RPM (RedHatPackageManager) is a common software package management tool used to install, upgrade and delete software packages. Sometimes we need to find the storage path of an installed RPM file for search or other operations. The following will introduce how to find the storage path of the RPM file in the Linux system, and provide specific code examples. First, we can use the rpm command to find the installed RPM package and its storage path. Open

A Deb file is an archive file used to distribute and install LinuxDebian and its derivative distribution programs, and usually contains application data. They come in handy for handling dependencies, desktop integration, and running pre- and post-installation scripts. Another package format similar to the Deb format is the rpm file commonly used in Fedora series distributions. This article uses examples to demonstrate how to create a simple deb package, explains the role of each file in the deb package, and how to take effect and maintain it after installation. Deb package analysis deb is a common Unixar archive format that contains application and other utility files. The key component is the control file (control), which contains information about the deb package and the installation program.

Title: Deb installation package installation commands and specific code examples 1. What is a deb installation package? The deb installation package is a format used by the apt installer, the package management tool of the Debian operating system and its derivative distributions (such as Ubuntu). deb installation package is a binary software package that contains the program's executable file, configuration files, dependencies, etc. 2. Installation commands and code examples of deb installation packages. To install a .deb installation package, you need to use the apt or dpkg command. The following are these two

1. Download 4 rpm packages mysql-community-client-5.7.26-1.el7.x86_64.rpmmysql-community-common-5.7.26-1.el7.x86_64.rpmmysql-community-libs-5.7.26-1 .el7.x86_64.rpmmysql-community-server-5.7.26-1.el7.x86_64.rpm If you want to use Thunder to download, you must first find the corresponding rpm download path. First, open the mysql official website in the browser: In the opened interface, press the keyboard f12 to open developer tools

Rpm package management function fully understands the function of software package management: packaging the components of the compiled program into one or several package files, in order to facilitate the installation, upgrade, uninstallation, query, verification, and database of the program package maintain. Let's take a look at the analysis of RPM package management. Rpm packages have great applications in redhat and S.U.S.E. Next, we will do some detailed functional analysis on the management of rpm packages in the centos system. Using yum (rhel series), it can be automatically installed during installation. Resolve dependencies drpm package naming format: name-VERSION-release.arch.rpmVERSION: major.minor.releaseMajor