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. Keyword search software Gentoo: emerge-s <keyword> the pkg introduction will be output. All keywords can be expressed in regular Debian: apt-cache search <keyword> FreeBSD: make search name = <keyword> or ports_glob <keyword>-need portupgrade Installation Software Gentoo: emerge <package> Debian: apt-get install <package> FreeBSD: portinstall <package> <need portupgrade> remove the 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 the kits Gentoo: emerge-puDv worldDebian: apt-get-s dist-upgradeFreeBSD: portupgrade-arnv upgrade Gentoo: emerge-u-deep worldDebian: apt-get dist-upgradeFreeBSD: make world; portupgrade-ar <need portupgrade>: emerge-pe world or qpkg-I-vDebian: dpkg-get-selectionsFreeBSD: pkg_info queries the software Gentoo: qpkg-f <filename> (need gentoolkit) Debian: dpkg-S <filename> FreeBSD: pkg_info-W <filename> queries the file Gentoo: qpkg-l <pkg> Debian: dpkg-L <pkg> FreeBSD: pkg_info-L <pkg> which pkg "Introduction" contains the keyword Gentoo: emerge-S you are looking for. The output method is the same as that of the former, keywords can be normally represented in Debian: apt-cache search <keyword> FreeBSD: make search key = <filename> A suite of Gentoo can be forcibly removed regardless of dependency: emerge-C <pkg> Debian: dpkg-r-force-depends <pkg> dpkg-P-force-depends <pkg> the above is remove, the following figure shows that purge does not clear the configuration file when using remove. purge is used to re-compile Gentoo: emerge-e worldDebian: apt-get update on FreeBSD: pkg_delete-f <pkg>; apt-get upgradeFreeBSD: make world; portupgrade-ade <need portupgrade>: qpkg-I | grep <keyword> (qpkg and-v check the version number) Debian: dpkg-l | grep <keyword> FreeBSD: pkg_info | grep <keyword>