In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the differences between rpm format and deb format, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand it.
The difference is: RPM is the package management system of Linux Distribution, but also refers to the rpm package itself, RPM is used for the management of rpm packages; for Debian-based systems using deb format packages, there are package conversion tools to convert rpm to deb and other files.
The operating environment of this tutorial: windows7 system, Dell G3 computer.
1. About rpm and deb
RPM (Red Hat Package Manager) is a Red hat-based Linux Distribution package management system, which also refers to the rpm package itself. RPM is used for the management of rpm packages (such as installation, uninstallation, upgrade, etc.). RPM-based distributions like Mandrake and SuSE usually have their own specific rpm packages, which may not work properly if mixed installation, while rpm packages issued by third parties can generally be installed on RPM-based systems.
For packages based on Debian using deb format, there are package conversion tools to convert rpm to deb and other files (Alien Package Converter). Dpkg can be used for installation and upgrade, but it can not easily deal with package dependencies. Dselect and apt-get are more convenient. Ubunut is a variant of debian, and its software appears in the form of deb packages or source files.
Format and use of 2.deb software package
(1) the .deb package command follows the following convention:
Soft_ver-rev_arch.deb, such as: pptview_8.0-5_i386.deb in the name is pptview, version number 8.0, the architecture is i386 platform.
(2) dpkg command
Root@huxiping:~# dpkg-- helpUsage:dpkg-I |-- install... |-R |-- recursive...dpkg-- unpack. |-R |-- recursive...dpkg-A |-- record-avail. |-R |-- recursive...dpkg-- configure. |-a |-- pendingdpkg-r |-- remove |-- purge. |-a |-- pendingdpkg-- get-selections [...] Get list of selections to stdoutdpkg-- set-selections set package selections from stdindpkg-- update-avail replace available packages infodpkg-- merge-avail merge with info from filedpkg-- clear-avail erase existing available infodpkg-- forget-old-unavail forget uninstalled unavailable pkgsdpkg-s |-- status. Display package status detailsdpkg-p |-- print-avail. Display available version detailsdpkg-L |-- listfiles. List files `owned' by package (s) dpkg-l |-- list [...] List packages conciselydpkg-S |-- search. Find package (s) owning file (s) dpkg-C |-- audit check for broken package (s) dpkg-- print-architecture print dpkg architecturedpkg-- compare-versions compare version numbers-see belowdpkg-- help |-- version show this help / version numberdpkg-- force-help |-Dh |-- debug=help help on forcing resp. Debuggingdpkg-- licence print copyright licensing termsUse dpkg- b |-- build |-- contents |-e |-- control |-I |-- info |-f |-- field |-x |-- extract |-- 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-conrepOptions:--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 | simulateJust 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 errorsComparison 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 install deb package dpkg-r |-- remove xxx.deb delete package dpkg-r-P |-- purge xxx.deb delete dpkg-I together with configuration file |-info xxx.deb view package information dpkg-L xxx.deb View file copy details dpkg-l View system Installed package information in dpkg-reconfigure xxx reconfigure the package
Sometimes, when you install a package using "dpkg", you will be prompted that the package depends on other packages. At this point, you install other software 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, mostly using apt-get. In fact, there are other uses that can be explored, 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 and it is not a wise choice to use "dpkg" to install it, you need to use the APT package management system. APT can automatically check dependencies, obtain the relevant software package by default, and automatically install and configure it. In fact, in most cases, we recommend that you use the APT package to manage the system.
The APT system requires a software information database and at least one software repository with a large number of deb packages, which we call the "source". The "source" can be a network server, install CD or a local software repository. You need to modify
The / etc/apt/sources.list file enables the APT system to connect to the Source.
Thank you for reading this article carefully. I hope the article "what is the difference between rpm format and deb format" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.