2010年1月23日 星期六

Note of Aptitude

Reference:
http://wiki.ubuntu-tw.org/index.php?title=Aptitude
http://man.ddvip.com/linux/debian/aptitude/index.html
  • Package status































StateDescriptionNote
p(p)urgedThe package is not installed
i(i)stanlledThe package is installed
u(u)npackedThe package is unpacked but not installed
v(v)irtualTha package is a virtual package
c(c)onfig remainsThe package is removed, but there are still configuration files
Chalf (C)onfiguredThe package is configured, but the configuration process is not complete
B(B)rokenThe package is broken because dependency can't be satisfied
E(E)rrorInternal error

  • Package Action



























ActionsDescriptionNote
h(h)oldThe package will be hold in current version
p(p)urgeThe package will be purged
d(d)eleteThe package will be deleted (config will remain)
i(i)installThe package will be installed
r(r)einstallThe package will be reinstalled
u(u)pgradeThe package will be upgraded
A(A)utomaticThe package is automatically installed

  • Some key binding

























































KeyDecriptionNote
+InstallMark the package to be installed
-RemoveMark the package to be removed
_PurgeMark the package to be purged
=HoldMark the package to be hold to prevent future upgrade
MAutoMark the package as automatically installed. It will be removed if there are no long package depends on it
mManualMark the package as manually installed
:CancelCancel pending actions to the package
gGoExecute pending actions
bBreakSearch break packages
CChangeLogSee changelog of the package
dDepends onSee dependencies of the package
rRelate toSee packages depends on the given package
fForget newClear packages shown as new
/SearchSearch the package
\Backward searchSearch the package backward
Ctrl+uRecoverRecover last action
Ctrl+tMenuMove to menu bar


  • Command line

































ActionsDescription
installInstall 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
removeTo remove a package
purgeTo purge a package
updateTo update package list
safe-upgradeUpgrade currently installed packages
full-upgradeUpgrade the whole system
cleanClean the cache
auto-cleanClean unnecessary .deb in the cache
downloadDownload .deb package


  • Search Pattern
Please refer to Table 2.1 in the aptitude manual
Here are some examples in Chinese.

沒有留言:

張貼留言