特殊:Badtitle/NS100:AptitudeSurvivalGuide
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/AptitudeSurvivalGuide }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/af | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|Afrikaans| [[::AptitudeSurvivalGuide/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/ar | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|العربية| [[::AptitudeSurvivalGuide/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/az | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|azərbaycanca| [[::AptitudeSurvivalGuide/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/bcc | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|جهلسری بلوچی| [[::AptitudeSurvivalGuide/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/bg | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|български| [[::AptitudeSurvivalGuide/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/br | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|brezhoneg| [[::AptitudeSurvivalGuide/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/ca | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|català| [[::AptitudeSurvivalGuide/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/cs | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|čeština| [[::AptitudeSurvivalGuide/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/de | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|Deutsch| [[::AptitudeSurvivalGuide/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/el | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|Ελληνικά| [[::AptitudeSurvivalGuide/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/es | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|español| [[::AptitudeSurvivalGuide/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/fa | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|فارسی| [[::AptitudeSurvivalGuide/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/fi | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|suomi| [[::AptitudeSurvivalGuide/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/fr | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|français| [[::AptitudeSurvivalGuide/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/gu | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|ગુજરાતી| [[::AptitudeSurvivalGuide/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/he | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|עברית| [[::AptitudeSurvivalGuide/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/hu | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|magyar| [[::AptitudeSurvivalGuide/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/id | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|Bahasa Indonesia| [[::AptitudeSurvivalGuide/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/it | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|italiano| [[::AptitudeSurvivalGuide/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/ja | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|日本語| [[::AptitudeSurvivalGuide/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/ko | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|한국어| [[::AptitudeSurvivalGuide/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/ksh | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|Ripoarisch| [[::AptitudeSurvivalGuide/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/mr | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|मराठी| [[::AptitudeSurvivalGuide/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/ms | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|Bahasa Melayu| [[::AptitudeSurvivalGuide/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/nl | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|Nederlands| [[::AptitudeSurvivalGuide/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/no | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|norsk| [[::AptitudeSurvivalGuide/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/oc | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|occitan| [[::AptitudeSurvivalGuide/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/pl | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|polski| [[::AptitudeSurvivalGuide/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/pt | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|português| [[::AptitudeSurvivalGuide/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/ro | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|română| [[::AptitudeSurvivalGuide/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/ru | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|русский| [[::AptitudeSurvivalGuide/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/si | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|සිංහල| [[::AptitudeSurvivalGuide/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/sq | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|shqip| [[::AptitudeSurvivalGuide/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/sr | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|српски / srpski| [[::AptitudeSurvivalGuide/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/sv | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|svenska| [[::AptitudeSurvivalGuide/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/th | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|ไทย| [[::AptitudeSurvivalGuide/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/tr | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|Türkçe| [[::AptitudeSurvivalGuide/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/vi | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|Tiếng Việt| [[::AptitudeSurvivalGuide/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/yue | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|粵語| [[::AptitudeSurvivalGuide/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/zh | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|中文| [[::AptitudeSurvivalGuide/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/zh-hans | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|中文(简体)| [[::AptitudeSurvivalGuide/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptitudeSurvivalGuide | UbuntuHelp:AptitudeSurvivalGuide | {{#if: | :}}AptitudeSurvivalGuide}}/zh-hant | • {{#if: UbuntuHelp:AptitudeSurvivalGuide|中文(繁體)| [[::AptitudeSurvivalGuide/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:AptitudeSurvivalGuide|:AptitudeSurvivalGuide|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :AptitudeSurvivalGuide/zh | | {{#ifexist: AptitudeSurvivalGuide/zh | | {{#ifeq: {{#titleparts:AptitudeSurvivalGuide|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:AptitudeSurvivalGuide|1|-1|}} | zh | | }}
Introduction
Aptitude can give you fine grained package management, and will give you an easily traversed map of the ubuntu packages available to you. This page is meant to be a quick reference to aptitude's interactive mode, and should be enough for you to get started. Aptitude's manuals are linked under Further Information.
The startup view for aptitude displays a list of the top level groups.
Key commands available when a group is selected
[ - Expand the currently selected group, and all its subgroups
] - Collapse the currently selected group, and all its subgroups
Enter - Expand or collapse the currently selected group.
Key commands available when a package is selected
d - view the package dependencies (packages that this package uses)
r - view the reverse dependencies (packages that use this package)
Shift-c - download and view the changelog
Enter - view information about the selected package
Key commands available everywhere
u - update the package lists
j - move down one line
k - move up one line
q - retreat to the previous view (and exit aptitude if at the top view)
The navigation keys (Page'Up, Home, Page'Down, etc.) work pretty much as expected.
You can navigate through the dependencies of the packages available to you by selecting a package that interests you, and following it's dependencies or reverse dependencies. Repeat as desired.
Package Management
Aptitude provides straightforward package managment, and artistic use of the available actions (combined with apt-pinning, see PinningHowto) will help you manage unusual repositories, such as backports.
Most common actions on a package
+ (plus) mark package for installation
- (minus) mark package for removal
_ (underscore) mark package for purging
= (equals sign) mark package as held
Committing your actions
Press g once to view the marked actions
Press g a second time to act
Searching for packages
/ - (forward slash) search for search term or partial package name
\ - (back slash) repeat last search
l - (lower case L) limit the view to packages matching the search expression.
Useful search terms
~ is 'tilde'
~b - matches broken packages
~c - matches partially uninstalled packages ('configured, but not installed')
~ahold - matches held packages
Aptitude from the command line
You can also run aptitude from the command line
aptitude update
# aptitude update
aptitude upgrade
# aptitude upgrade
aptitude search
Search for packages with "gnuplot" in the name
# aptitude search gnuplot
How to free disk space
# aptitude clean --purge-unused
Further information
"man aptitude" at a command prompt.
[file:///usr/share/doc/aptitude/README]
[file:///usr/share/doc/aptitude/html/en/index.html]
Tips
If more than one version is available for a particular package (look at the bottom of the package's information view), apt-cache policy <package> seems to be the best way to see which comes from which repository.