Gentoo, Debian, And FreeBSD software package management competition

Source: Internet
Author: User

The package management mechanisms of Gentoo, Debian, And FreeBSD are very similar. Gentoo and Debian are my favorite Linux distributions, one is naturally an excellent development platform, and the other is undoubtedly the preferred product for both servers and desktop environments.

Don't mention rpm, yum, and pacman to me. I don't know Lol ......

Search for software with keywords
Gentoo: emerge-S <keyword>
The output will have an introduction to this PKG. All the keywords can be expressed in regular form.
Debian: APT-cache search <keyword>
FreeBSD: Make search name = <keyword> or ports_glob <keyword> -- need portupgrade

Install software
Gentoo: emerge <package>
Debian: APT-Get install <package>
FreeBSD: portinstall <package>
<Need portupgrade>

Remove Software
Gentoo: emerge unmerge <package>
Debian: APT-Get remove <package>
FreeBSD: pkg_deinstall <package>
<Need portupgrade>

Upgrade a single software
Gentoo: emerge-u <package>
Debian: APT-Get install <package>
FreeBSD: portupgrade <package>
<Need portupgrade>

Check which kits will be updated throughout the system
Gentoo: emerge-pudv world
Debian: APT-get-s dist-Upgrade
FreeBSD: portupgrade-arnv

Upgrade the entire system
Gentoo: emerge-u -- deep world
Debian: APT-Get dist-Upgrade
FreeBSD: make world; portupgrade-ar
<Need portupgrade>

Query System Software Installed
Gentoo: emerge-PE world or qpkg-I-v
Debian: dpkg -- Get-selections
FreeBSD: pkg_info

Queries the software that an archive belongs.
Gentoo: qpkg-F <FILENAME>
(Need gentoolkit)
Debian: dpkg-S <FILENAME>
FreeBSD: pkg_info-W <FILENAME>

Query the files installed in a suite.
Gentoo: qpkg-L <PKG>
Debian: dpkg-L <PKG>
FreeBSD: pkg_info-L <PKG>

Which PKG "Introduction" contains the keyword you are looking?
Gentoo: emerge-S <keyword>
The output method is the same as that of the former. keywords can be expressed in regular form.
Debian: APT-cache search <keyword>
FreeBSD: Make search key = <FILENAME>

Forcibly remove a suite regardless of dependency
Gentoo: emerge-C <PKG>
Debian: dpkg-r -- force-depends <PKG>
Dpkg-p -- force-depends <PKG>
Above is remove, below is purge
If you use remove, the configuration file will not be cleared. If you use purge

FreeBSD: pkg_delete-F <PKG>

Full system re-Compilation
Gentoo: emerge-e world
Debian: APT-Get update; Apt-Get upgrade
FreeBSD: make world; portupgrade-ASON
<Need portupgrade>

Check whether this keyword is installed.
Gentoo: qpkg-I | grep <keyword> (qpkg and-V check version number)
Debian: dpkg-L | grep <keyword>
FreeBSD: pkg_info | grep <keyword>

 

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.