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>