Rpm and deb

Source: Internet
Author: User
Rpm and deb -- Debian information of the Linux release technology. For details, refer to the following section. 1. 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 to manage rpm packages (such as installation, uninstallation, and upgrade). RPM-based releases such as Mandrake and SuSE usually have their own rpm packages, hybrid installation may not work normally, and rpm packages released by third parties can be installed on RPM-based systems normally.
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), its installation and upgrade available dpkg, however, it cannot easily handle the dependencies of packages. dselect and apt-get are easy to handle, and UT is a debian variant, and its software appears in the form of a deb package or source file.
2. deb software package format and usage
(1) The deb Software Package commands follow the following conventions:
Soft_ver-rev_arch.deb, such as: the pptview_8.0-5_i386.deb name is pptview, version 8.0, Architecture for 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 'owners' 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 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 wocould break some other package
-- No-debsig Do no try to verify package signatures
-- No-act | -- dry-run | -- simulate
Just say what we wocould 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
-- 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 install deb Software Package
Dpkg-r | -- remove xxx. deb delete a software package
Dpkg-r-P | -- purge xxx. deb is deleted along with the configuration file
Dpkg-I |-info xxx. deb View package information
Dpkg-L xxx. deb view copy details
Dpkg-l view information about installed software packages in the system
Dpkg-reconfigure xxx Software Package Reconfiguration
Sometimes, if you use "dpkg" to install a software package, the system prompts you that the software package depends on other software packages. Then, 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. the apt-command of ubuntu can automatically complete software dependencies. Many apt-get commands are used. In fact, there are other usage methods that can be mined, 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, using "dpkg" to install it is not a wise choice. At this time, you need to use the APT software package management system. APT can automatically check the dependency by default.
And automatically install and configure the software package. In fact, we recommend that you use the APT software package management system in most cases.
APT systems need a software information database and at least a software warehouse that stores a large number of deb packages. We call it a "Source ". The "Source" can be a network server, a CD installation, or a local software repository. You need to modify
The "/etc/apt/sources. list" file enables the APT system to connect to the "Source ".
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.