Simple comparison between rpm and dpkg

Source: Internet
Author: User
Some simple comparisons between rpm and dpkg-Linux general technology-Linux technology and application information. The following is a detailed description. I don't care about its advantages. I only use different systems and have different package management tools. I am familiar with rpm and ignore deb. I forget eremga.

As most linuxer users start to get started with the redhat series, rpm commands are relatively skillful. The following is a list of my experience and usage:

[Table = 98%] [tr] [td] [/td] [td] rpm [/td] [td] deb
[/Td] [/tr] [tr] [td] view which file in the system belongs to the package [/td] [td] rpm-qf/path/file
[/Td] [td] dpkg-query-S/path/file
[/Td] [/tr] [tr] [td] View package information [/td] [td] rpm-qi rpmname
[/Td] [td] dpkg-query-I debname
[/Td] [/tr] [/table]
[Table = 98%] [tr] [td] listing Package content [/td] [td] rpm-pql rpmname. rpm
[/Td] [td] dpkg-deb-c debname. deb
[/Td] [/tr] [tr] [td] extract the package [/td] [td] rpm2cpio rpmname. rpm | cpio-id
[/Td] [td] dpkg-deb-x debname. deb
[/Td] [/tr] [tr] [td] List Installed content [/td] [td] rpm-ql rpmname. rpm
[/Td] [td] dpkg-query-l 'describename'
[/Td] [/tr] [tr] [td] list all installed systems
[/Td] [td] rpm-qa
[/Td] [td] dselect enters the interactive mode. Please try again later.
[/Td] [/tr] [/table]

That's all!
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.