http://wiki.ubuntu-tw.org/index.php?title=Aptitude
http://man.ddvip.com/linux/debian/aptitude/index.html
- Package status
| State | Description | Note |
|---|---|---|
| p | (p)urged | The package is not installed |
| i | (i)stanlled | The package is installed |
| u | (u)npacked | The package is unpacked but not installed |
| v | (v)irtual | Tha package is a virtual package |
| c | (c)onfig remains | The package is removed, but there are still configuration files |
| C | half (C)onfigured | The package is configured, but the configuration process is not complete |
| B | (B)roken | The package is broken because dependency can't be satisfied |
| E | (E)rror | Internal error |
- Package Action
| Actions | Description | Note |
|---|---|---|
| h | (h)old | The package will be hold in current version |
| p | (p)urge | The package will be purged |
| d | (d)elete | The package will be deleted (config will remain) |
| i | (i)install | The package will be installed |
| r | (r)einstall | The package will be reinstalled |
| u | (u)pgrade | The package will be upgraded |
| A | (A)utomatic | The package is automatically installed |
- Some key binding
| Key | Decription | Note |
|---|---|---|
| + | Install | Mark the package to be installed |
| - | Remove | Mark the package to be removed |
| _ | Purge | Mark the package to be purged |
| = | Hold | Mark the package to be hold to prevent future upgrade |
| M | Auto | Mark the package as automatically installed. It will be removed if there are no long package depends on it |
| m | Manual | Mark the package as manually installed |
| : | Cancel | Cancel pending actions to the package |
| g | Go | Execute pending actions |
| b | Break | Search break packages |
| C | ChangeLog | See changelog of the package |
| d | Depends on | See dependencies of the package |
| r | Relate to | See packages depends on the given package |
| f | Forget new | Clear packages shown as new |
| / | Search | Search the package |
| \ | Backward search | Search the package backward |
| Ctrl+u | Recover | Recover last action |
| Ctrl+t | Menu | Move to menu bar |
- Command line
| Actions | Description |
|---|---|
| install | Install the package. You can also specify flags such as _,-,+,M... For example, you can use the command "aptitude install A+ B- C_ D+M" to install A, remove B, purge C, and install D and mark D as auto |
| remove | To remove a package |
| purge | To purge a package |
| update | To update package list |
| safe-upgrade | Upgrade currently installed packages |
| full-upgrade | Upgrade the whole system |
| clean | Clean the cache |
| auto-clean | Clean unnecessary .deb in the cache |
| download | Download .deb package |
- Search Pattern
Here are some examples in Chinese.