FreeBSD ports,Gentoo Portage,Debian dpkg,Mac OS X MacPorts常用命令汇编
FreeBSD Ports Packages | Gentoo Portage | Debian dpkg | Mac OS X macports | |
安装 | Ports: make install Packages: pkg_add pkgname |
emerge pkgname | apt-get install pkgname | port install pkgname |
卸载 | pkg_delete pkgname | emerge –remove pkgname | dpkg -r pkgname;apt-get remove pkgname | port uninstall pkgname |
列出系统所有包 | pkg_info | equery list | dpkg -l | port list |
查看一个包所含文件 | pkg_info -L pkgname | equery files | dpkg -L pkgname | port contents pkgname |
查看文件所属包 | pkg_info -W filename | equry b filename | dpkg -S filename | |
查看包被谁依赖 | equery d pkgname | apt-cache rdepends pkgname | port dependents pkgname | |
查看包依赖谁 | pkg_info -r pkgname | emerge –pretend pkgname | dpkg -s pkgname | port deps pkgname |
更新已安装包 | portupgrade pkgname | emerge -uDN pkgname | apt-get upgrade pkgname | port upgrade pkgname |
升级所有包 | portupgrade -far | emerge -uDN world | apt-get dist-upgrade | port upgrade outdated |