Distribution | Debian/Ubuntu | CentOS/Fedora | Arch Linux | Gentoo | ||||||
Packagee Manager | dpkg | aptitude | apt | rpm | yum | pacman | yaourt | emerge | qpkg | |
apt-get | apt-cache | |||||||||
Update repository | update | update | -Sy | |||||||
list all packages | list all | -Slq | ||||||||
List installed package | -l | -qa | list installed | -pe world | -I -v | |||||
Search packages | -l | grep | search | search | -qa | grep | search | -Ss | -s | -I | grep | ||
Packages Info | -I | show | show | -qi | info | -Si | ||||
Install | -i | install | isntall | -ivh | install | -S | Package_Name | |||
Update packages | upgrade | upgrade | -Uvh | update | -Syua | -u | ||||
Remove | -r | remove | remove | -e | remove | -R | -R | --unmerge | ||
Remove(config file included) | -P | purge | purge | |||||||
Clean up downloaded package | clean | clean | clean | -Sc | ||||||
Dist upgrade | dist-upgrade | -Syu | -u --deep world | |||||||
List files installed by a package | -L | -ql | -Ql | -l | ||||||
Query package owning file | -S | -qf | provides | -Qo | -f |
#主要整理出常用的選項,查詢、安裝、移除、升級之類,我開始玩Linux時只能從tar ball裝,失敗是家常便飯,現在有各種repository可用是很幸福了。
沒有留言:
張貼留言