The first table lists package management tasks in the four most popular distribution groups - Debian (including Ubuntu, Linux Mint, KNOPPIX, aptosid and other Debian derivatives), openSUSE, Fedora (including Red Hat Enterprise Linux, CentOS, Scientific Linux and other Fedora-based distributions), and Mandriva Linux and Mageia.
Task | apt (deb) Debian, Ubuntu | zypp (rpm) openSUSE | yum (rpm) Fedora, CentOS | urpmi (rpm) Mandriva, Mageia |
---|---|---|---|---|
Managing software | ||||
Install new software from package repository | apt-get install pkg | zypper install pkg | yum install pkg | urpmi pkg |
Install new software from package file | dpkg -i pkg | zypper install pkg | yum localinstall pkg | urpmi pkg |
Update existing software | apt-get install pkg | zypper update -t package pkg | yum update pkg | urpmi pkg |
Remove unwanted software | apt-get remove pkg | zypper remove pkg | yum erase pkg | urpme pkg |
Updating the system | ||||
Update package list | apt-get update aptitude update | zypper refresh | yum check-update | urpmi.update -a |
Update system | apt-get upgrade aptitude safe-upgrade | zypper update | yum update | urpmi --auto-select |
Searching for packages | ||||
Search by package name | apt-cache search pkg | zypper search pkg | yum list pkg | urpmq pkg |
Search by pattern | apt-cache search pattern | zypper search -t pattern pattern | yum search pattern | urpmq --fuzzy pkg |
Search by file name | apt-file search path | zypper wp file | yum provides file | urpmf file |
List installed packages | dpkg -l | zypper search -is | rpm -qa | rpm -qa |
Configuring access to software repositories | ||||
List repositories | cat /etc/apt/sources.list | zypper repos | yum repolist | urpmq --list-media |
Add repository | (edit /etc/apt/sources.list) | zypper addrepo path name | (add repo to /etc/yum.repos.d/) | urpmi.addmedia name path |
Remove repository | (edit /etc/apt/sources.list) | zypper removerepo name | (remove repo from /etc/yum.repos.d/) | urpmi.removemedia media |
Tidak ada komentar:
Posting Komentar