分类: LINUX
2008-10-24 22:46:44
任务 | apt Debian, Ubuntu |
zypp openSUSE |
yum Fedora, CentOS |
---|---|---|---|
安装包 | apt-get install |
zypper install |
yum install |
移除包 | apt-get remove |
zypper remove |
yum erase |
更新包列表 | apt-get update | zypper refresh | yum check-update |
更新系统 | apt-get upgrade | zypper update | yum update |
列出源 | cat /etc/apt/sources.list | zypper repos | yum repolist |
添加源 | (edit /etc/apt/sources.list) | zypper addrepo |
(add |
移除源 | (edit /etc/apt/sources.list) | zypper removerepo |
(remove |
搜索包 | apt-cache search |
zypper search |
yum search |
列出已安装的包 | dpkg -l | rpm -qa | rpm -qa |
任务 | urpmi Mandriva |
slackpkg Slackware |
pacman Arch |
安装包 | urpmi |
slackpkg install |
pacman -S |
移除包 | urpme |
slackpkg remove |
pacman -R |
更新包列表 | urpmi.update -a | slackpkg update | pacman -Sy |
更新系统 | urpmi --auto-select | slackpkg upgrade-all | pacman -Su |
列出源 | urpmq --list-media | cat /etc/slackpkg/mirrors | cat /etc/pacman.conf |
添加源 | urpmi.addmedia |
(edit /etc/slackpkg/mirrors) | (edit /etc/pacman.conf) |
移除源 | urpmi.removemedia |
(edit /etc/slackpkg/mirrors) | (edit /etc/pacman.conf) |
搜索包 | urpmf |
-- | pacman -Qs |
列出已安装的包 | rpm -qa | ls /var/log/packages/ | pacman -Qii |
任务 | conary rPath, Foresight |
pisi Pardus |
emerge Gentoo |
安装包 | conary update |
pisi install |
emerge |
移除包 | conary erase |
pisi remove |
emerge -C |
更新包列表 | pisi update-repo | emerge --sync | layman -S [for added repositories] | |
更新系统 | conary updateall | pisi upgrade | emerge -NuDa world |
列出源 | pisi list-repo | layman -L | |
添加源 | pisi add-repo |
layman -a | |
移除源 | pisi remove-repo |
layman -d | |
搜索包 | conary query |
pisi search |
emerge --search |
列出已安装的包 | conary query | pisi list-installed | cat /var/lib/portage | more |
参考