2008/11/15 16:03
rpm, dpkg 명령어 사용법 Linux2008/11/15 16:03
rpm 에 익숙해서 자주 사용하지 않는 dpkg 명령은 자주 잊어 먹어 웹상에 올려져 있는 내용을 옮겨본다.
<출처: http://packman.linux.is>
Installing / updating
| RPM | DPKG | Description |
|---|---|---|
| rpm -i {file.rpm} | dpkg -i {file.deb} | Install package from a file |
| rpm -U {file.rpm} | dpkg -i {file.deb} | Update package from a file |
Remove
| RPM | DPKG | Description |
|---|---|---|
| rpm -e {package} | dpkg -r {package} | Remove a installed package |
Querying
| RPM | DPKG | Description |
|---|---|---|
| rpm -qa | dpkg -l | List all installed packages |
| rpm -ql {package} | dpkg -L {package} | List files in a installed package |
| rpm -qi | dpkg -p {package} | Show information about a installed package |
| rpm -qpi {file.rpm} | dpkg -I {file.deb} | Show information about package file |
| rpm -qpl {file.rpm} | dpkg -c {file.deb} | List files in a package file |
Verifying
| RPM | DPKG | Description |
|---|---|---|
| rpm -Va | na | Verify all installed packages |
| rpm -V {package} | na | Verify installed package |
<출처: http://packman.linux.is>
