Referens för konfigurationsfil

Configuration file format
Platser för konfigurationsfiler
Available configuration options

Configuration file format

In its basic form, aptitude's configuration file is a list of options and their values. Each line of the file should have the form “Option Value;”: for instance, the following line in the configuration file sets the option Aptitude::Theme to “Dselect”.

Aptitude::Theme "Dselect";

An option can “contain” other options if they are written in curly braces between the option and the semicolon following it, like this:

Aptitude::UI {
  Package-Status-Format "";
  Package-Display-Format "";
};

An option that contains other options is sometimes called a group. In fact, the double colons that appear in option names are actually a shorthand way of indicating containment: the option Aptitude::UI::Default-Grouping is contained in the group Aptitude::UI, which itself is contained in the group Aptitude. Thus, if you wanted to, you could set this option to "" as follows:

Aptitude {
  UI {
    Default-Grouping "";
  };
};

For more information on the format of the configuration file, see the manual page apt.conf(5).

Platser för konfigurationsfiler

aptitudes konfiguration läses in från följande källor, i denna ordning:

  1. The user's configuration file, ~/.aptitude/config. This file is overwritten when the user modifies settings in the Options menu.

  2. The system configuration file, /etc/apt/apt.conf.

  3. Default values stored in /usr/share/aptitude/aptitude-defaults.

  4. Inbyggda standardvärden i programmet.

When an option is being checked, these sources are searched in order, and the first one that provides a value for the option is used. For instance, setting an option in /etc/apt/apt.conf will override aptitude's defaults for that option, but will not override user settings in ~/.aptitude/config.

Available configuration options

The following configuration options are used by aptitude. Note that these are not the only available configuration options; options used by the underlying apt system are not listed here. See the manual pages apt(8) and apt.conf(5) for information on apt options.

Option: Dir::Aptitude::state
Standard: /var/lib/aptitude
Beskrivning: The directory in which aptitude's persistent state information is stored.
Option: Aptitude::Allow-Null-Upgrade
Standard: false
Beskrivning: Normally, if you try to start an install run when no actions will be performed, aptitude will print a warning and return to the package list. If this option is true, aptitude will continue to the preview screen whenever there are upgradable packages, rather than displaying a reminder about the ÅtgärderMarkera uppgraderingsbar (U) command.
Option: Aptitude::Autoclean-After-Update
Standard: false
Beskrivning: If this option is true, aptitude will clean up obsolete files (see ÅtgärderRensa föråldrade filer) every time you update the package list.
Option: Aptitude::Auto-Install
Standard: true
Beskrivning: If this option is true, aptitude will automatically attempt to fulfill the dependencies of a package when you select it for installation.
Option: Aptitude::Auto-Fix-Broken
Standard: true
Beskrivning: If this option is false, aptitude will ask for permission before attempting to fix any broken packages.
Option: Aptitude::Auto-Upgrade
Standard: false
Beskrivning: If this option is true, aptitude will automatically flag all upgradable packages for upgrade when the program starts, as if you had issued the command ÅtgärderMarkera uppgraderingsbar (U).
Option: Aptitude::CmdLine::Always-Prompt
Standard: false
Beskrivning: In command-line mode, if this is set, aptitude will always prompt before starting to install or remove packages, even if the prompt would normally be skipped. This is equivalent to the -P command-line option.
Option: Aptitude::CmdLine::Assume-Yes
Standard: false
Beskrivning: In command-line mode, if this option is true, aptitude will act as if the user had answered “yes” to every prompt, causing most prompts to be skipped. This is equivalent to the -y command-line option.
Option: Aptitude::CmdLine::Ignore-Trust-Violations
Standard: false
Beskrivning: In command-line mode, causes the program to ignore the installation of untrusted packages.
Option: Aptitude::CmdLine::Resolver-Debug
Standard: false
Beskrivning: In command-line mode, if this option is true, aptitude will print extremely verbose information while attempting to resolve broken dependencies. As the name suggests, this option is primarily meant to aid in debugging the problem resolver.
Option: Aptitude::CmdLine::Resolver-Dump
Standard:
Beskrivning: In command-line mode, if it is necessary to resolve broken dependencies and this option is set to the name of a writable file, the resolver state will be dumped to this file before any calculations are undertaken.
Option: Aptitude::CmdLine::Request-Strictness
Standard: 0
Beskrivning: When run in command-line mode, if dependency problems are encountered, aptitude will add this value to the problem resolver score of each action that you explicitly request.
Option: Aptitude::CmdLine::Download-Only
Standard: false
Beskrivning: In command-line mode, if this option is true, aptitude will download package files but not install them. This is equivalent to the -d command-line option.
Option: Aptitude::CmdLine::Fix-Broken
Standard: false
Beskrivning: In command-line mode, if this option is true, aptitude will be more aggressive when attempting to fix the dependencies of broken packages. This is equivalent to the -f command-line option.
Option: Aptitude::CmdLine::Package-Display-Format
Standard: %c%a%M %p# - %d#
Beskrivning: This is a format string, as described in “Anpassa hur paket visas”, which is used to display the results of a command-line search. This is equivalent to the -F command-line option.
Option: Aptitude::CmdLine::Package-Display-Width
Standard:
Beskrivning: This option gives the width in characters for which command-line search results should be formatted. If it is empty (the default; ie, ""), search results will be formatted for the current terminal size, or for an 80-column display if the terminal size cannot be determined.
Option: Aptitude::CmdLine::Show-Deps
Standard: false
Beskrivning: In command-line mode, if this option is true, aptitude will display a brief summary of the dependencies (if any) relating to a package's state. This is equivalent to the -D command-line option.
Option: Aptitude::CmdLine::Show-Versions
Standard: false
Beskrivning: In command-line mode, if this option is true, aptitude will display the version of a package that is being installed or removed. This is equivalent to the -V command-line option.
Option: Aptitude::CmdLine::Show-Size-Changes
Standard: false
Beskrivning: In command-line mode, if this option is true, aptitude will display the expected change in the amount of space used by each package. This is equivalent to the -Z command-line option.
Option: Aptitude::CmdLine::Simulate
Standard: false
Beskrivning: This option is deprecated; use Aptitude::Simulate instead. In command-line mode, causes aptitude to just display the actions that would be performed (rather than actually performing them); in the visual interface, causes the program to start in read-only mode regardless of whether you are root or not. This is equivalent to the -s command-line option.
Option: Aptitude::CmdLine::Visual-Preview
Standard: false
Beskrivning: If this option is true, aptitude will enter its visual mode to display the preview of an installation run and to download packages.
Option: Aptitude::CmdLine::Verbose
Standard: 0
Beskrivning: This controls how verbose the command-line mode of aptitude is. Every occurance of the -v command-line option adds 1 to this value.
Option: Aptitude::Delete-Unused
Standard: true
Beskrivning: If this option is true, automatically installed packages which are no longer required will be automatically removed. For more information, see “Hantera automatiskt installerade paket”.
Option: Aptitude::Delete-Unused-Pattern
Standard:
Beskrivning: Deprecated alias for Aptitude::Keep-Unused-Pattern. If Aptitude::Keep-Unused-Pattern is unset or set to an empty string, the value of this configuration option will override it. Otherwise, Aptitude::Delete-Unused-Pattern is ignored.
Option: Aptitude::Display-Planned-Action
Standard: true
Beskrivning: If this option is true, aptitude will display a preview screen before actually carrying out the actions you have requested.
Option: Aptitude::Forget-New-On-Update
Standard: false
Beskrivning: If this option is true, aptitude will clear the list of new packages whenever the package list is updated, as if you had issued the command ÅtgärderGlöm nya paket (f).
Option: Aptitude::Forget-New-On-Install
Standard: false
Beskrivning: If this option is true, aptitude will clear the list of new packages whenever you install, upgrade, or remove packages, as if you had issued the command ÅtgärderGlöm nya paket (f).
Option: Aptitude::Ignore-Old-Tmp
Standard: false
Beskrivning: Old versions of aptitude created a directory ~/.aptitude/.tmp which is no longer necessary. If the directory exists and Aptitude::Ignore-Old-Tmp is true, aptitude will ask you whether to remove this directory. This option is automatically set to true after you reply. On the other hand, if the directory does not exist, this option is set to false so that you will be notified if it reappears.
Option: Aptitude::Keep-Recommends
Standard: false
Beskrivning: If this option is true, then packages will be kept on the system as long as any installed package recommends them, even if Aptitude::Recommends-Important is false.
Option: Aptitude::Keep-Suggests
Standard: false
Beskrivning: If this option is true, aptitude will keep automatically installed packages on the system as long as any installed package suggests them. For more information, see “Hantera automatiskt installerade paket”.
Option: Aptitude::Keep-Unused-Pattern
Standard:
Beskrivning: If Aptitude::Delete-Unused is true, only unused packages which do not match this pattern (see “Sökmönster”) will be removed. If this option is set to an empty string (the default), all unused packages will be removed.
Option: Aptitude::LockFile
Standard: /var/lock/aptitude
Beskrivning: A file that will be fcntl-locked to ensure that at most one aptitude process can modify the cache at once. In normal circumstances, you should never need to modify this; it may be useful for debugging. Note: if aptitude complains that it cannot acquire a lock, this is not because the lock file needs to be deleted. fcntl locks are managed by the kernel and will be destroyed when the program terminates; failure to acquire the lock means that another running program is using it!
Option: Aptitude::Log
Standard: /var/log/aptitude
Beskrivning: If this is set to a nonempty string, aptitude will log the package installations, removals, and upgrades that it performs. If the value of Aptitude::Log begins with a pipe character (ie, “|”), the remainder of its value is used as the name of a command into which the log will be piped: for instance, |mail -s 'Aptitude install run' root will cause the log to be emailed to root. To log to multiple files or commands, you may set this option to a list of log targets.
Option: Aptitude::Parse-Description-Bullets
Standard: false
Beskrivning: If this option is enabled, aptitude will attempt to automatically detect bulleted lists in package descriptions. This will generally improve how descriptions are displayed, but it is not entirely backwards-compatible; some descriptions might be formatted less attractively when this option is true than when it is false.
Option: Aptitude::Pkg-Display-Limit
Standard:
Beskrivning: The default filter applied to the package list; see “Sökmönster” for details about its format.
Option: Aptitude::Recommends-Important
Standard: true
Beskrivning: If this option is true and Aptitude::Auto-Install is true, installing a new package will also install any packages that it recommends. Furthermore, if this option is true, then packages will be kept on the system if an installed package recommends them.
Option: Aptitude::ProblemResolver::BreakHoldScore
Standard: -300
Beskrivning: How much to reward or penalize solutions that change the state of a held package.
Option: Aptitude::ProblemResolver::BrokenScore
Standard: -100
Beskrivning: How much to reward or penalize prospective solutions based on the number of dependencies they break. For each dependency broken by a possible solution, this many points are added to its score; typically this should be a negative value.
Option: Aptitude::ProblemResolver::Discard-Null-Solution
Standard: true
Beskrivning: If this option is true, aptitude will never suggest cancelling all of your proposed actions in order to resolve a dependency problem.
Option: Aptitude::ProblemResolver::EssentialRemoveScore
Standard: -100000
Beskrivning: How much to reward or penalize solutions that remove an Essential package.
Option: Aptitude::ProblemResolver::ExtraScore
Standard: -1
Beskrivning: Any version of a package whose Priority is “extra” will have this many points added to its score.
Option: Aptitude::ProblemResolver::ImportantScore
Standard: 5
Beskrivning: Any version of a package whose Priority is “important” will have this many points added to its score.
Option: Aptitude::ProblemResolver::Infinity
Standard: 1000000
Beskrivning: A “maximum” score for potential solutions. If a set of actions has a score worse than -Infinity, it will be discarded immediately.
Option: Aptitude::ProblemResolver::InstallScore
Standard: -20
Beskrivning: How much weight the problem resolver should give to installing a package, if the package is not already going to be installed.
Option: Aptitude::ProblemResolver::KeepScore
Standard: 0
Beskrivning: How much weight the problem resolver should give to keeping a package in its current state, if that package is not already going to be kept in its current state.
Option: Aptitude::ProblemResolver::Max-Successors
Standard: 0
Beskrivning: When new possible solutions are being generated, this value controls how long the generation procedure lasts. Successors are generated in discrete bundles, and as soon as at least one and at most Max-Successors nodes have been generated, successor generation terminates. Turning this value up might cause the first few generated solutions to have higher scores; on the other hand, it might cause each resolver “step” to take a long time.
Option: Aptitude::ProblemResolver::NonDefaultScore
Standard: -40
Beskrivning: How much weight the problem resolver should give to installing a non-default version of the package (one that is not the current version and not the “candidate version”).
Option: Aptitude::ProblemResolver::OptionalScore
Standard: 1
Beskrivning: Any version of a package whose Priority is “optional” will have this many points added to its score.
Option: Aptitude::ProblemResolver::PreserveAutoScore
Standard: 0
Beskrivning: How much weight the problem resolver should give to preserving automatic installations or removals.
Option: Aptitude::ProblemResolver::PreserveManualScore
Standard: 60
Beskrivning: How much weight the problem resolver should give to preserving explicit user selections.
Option: Aptitude::ProblemResolver::ResolutionScore
Standard: 50
Beskrivning: In addition to all other scoring factors, proposed solutions that actually resolve all unsatisfied dependencies are awarded this many extra points.
Option: Aptitude::ProblemResolver::RemoveScore
Standard: -300
Beskrivning: How much weight the problem resolver should give to removing a package (if it is not already marked for removal).
Option: Aptitude::ProblemResolver::RequiredScore
Standard: 4
Beskrivning: Any version of a package whose Priority is “required” will have this many points added to its score.
Option: Aptitude::ProblemResolver::StandardScore
Standard: 3
Beskrivning: Any version of a package whose Priority is “standard” will have this many points added to its score.
Option: Aptitude::ProblemResolver::StepLimit
Standard: 5000
Beskrivning: The maximum number of “steps” which should be performed by the problem resolver on each attempt to find a solution to a dependency problem. Decreasing this number will make the program “give up” sooner; increasing it will permit the search for a solution to consume much more time and memory before it is aborted. The default value is large enough to accomodate commonly encountered situations, while preventing the program from “blowing up” if an overly complicated problem is encountered. (note: this applies only to command-line searches; in the visual interface, the resolver will continue working until it reaches a solution)
Option: Aptitude::ProblemResolver::StepScore
Standard: 10
Beskrivning: How much to reward or penalize prospective solutions based on their length. For each action performed by a solution, this many points are added to its score. Typically this should be a negative value.
Option: Aptitude::ProblemResolver::UnfixedSoftScore
Standard: -200
Beskrivning: How much to reward or penalize leaving a Recommends relationship unresolved. This should typically be less than RemoveScore, or aptitude will tend to remove packages rather than leaving their Recommendations unfixed. See “Lösa beroendeproblem” for details.
Option: Aptitude::ProblemResolver::UpgradeScore
Standard: 0
Beskrivning: How much weight the problem resolver should give to upgrading (or downgrading) a package to its candidate version, if the package was not already going to be upgraded.
Option: Aptitude::ProblemResolver::WaitSteps
Standard: 50
Beskrivning: The number of resolver steps to perform in the foreground before moving the resolution to the background thread. aptitude will be unresponsive while this computation takes place; decreasing this value will make the program more responsive, but may cause the progress indicator to appear unnecessarily.
Option: Aptitude::Purge-Unused
Standard: false
Beskrivning: If this option is true and Aptitude::Delete-Unused is also true, then packages which are unused will be purged from the system, removing their configuration files and perhaps other important data. For more information about which packages are considered to be “unused”, see “Hantera automatiskt installerade paket”. THIS OPTION CAN CAUSE DATA LOSS! DO NOT ENABLE IT UNLESS YOU KNOW WHAT YOU ARE DOING!
Option: Aptitude::Simulate
Standard: false
Beskrivning: In command-line mode, causes aptitude to just display the actions that would be performed (rather than actually performing them); in the visual interface, causes the program to start in read-only mode regardless of whether you are root or not. This is equivalent to the -s command-line option.
Option: Aptitude::Suggests-Important
Standard: false
Beskrivning: This is an obsolete option; use Aptitude::Keep-Suggests instead. Setting this option to true has the same effect as setting Aptitude::Keep-Suggests to true.
Option: Aptitude::Theme
Standard:
Beskrivning: The theme that aptitude should use; see “Teman” for more information.
Option: Aptitude::Spin-Interval
Standard: 500
Beskrivning: The number of milliseconds to delay in between updating the “spinner” that appears while the problem resolver is running.
Option: Aptitude::Track-Dselect-State
Standard: true
Beskrivning: If this option is set to true, aptitude will attempt to detect when a change to a package's state has been made using dselect or dpkg: for instance, if you remove a package using dpkg, aptitude will not try to reinstall it. Note that this may be somewhat buggy.
Option: Aptitude::UI::Advance-On-Action
Standard: false
Beskrivning: If this option is set to true, changing a package's state (for instance, marking it for installation) will cause aptitude to advance the highlight to the next package in the current group.
Option: Aptitude::UI::Auto-Show-Reasons
Standard: true
Beskrivning: If this option is set to true, selecting a package which is broken or which appears to be causing other packages to be broken will cause the information area to automatically display some reasons why the breakage might be occuring.
Option: Aptitude::UI::Default-Grouping
Standard: filter(missing),status,section(subdir,passthrough),section(topdir)
Beskrivning: Sets the default grouping policy used for package lists. See “Anpassa pakethierarkin” for additional information on grouping policies.
Option: Aptitude::UI::Default-Preview-Grouping
Standard: action
Beskrivning: Sets the default grouping policy used for preview screens. See “Anpassa pakethierarkin” for additional information on grouping policies.
Option: Aptitude::UI::Default-Sorting
Standard: name
Beskrivning: The default sorting policy of package views. See “Anpassa hur paket sorteras” for more information.
Option: Aptitude::UI::Description-Visible-By-Default
Standard: true
Beskrivning: When a package list is first displayed, the information area (which typically contains the long description of the current package) will be visible if this option is true and hidden if it is false.
Option: Aptitude::UI::Default-Package-View
Standard:
Beskrivning: This option is a group whose members define the default layout of aptitude's display. See “Anpassning av visningslayouten” for more information.
Option: Aptitude::UI::Download-Poll-Interval
Standard: 50000
Beskrivning: This option gives the interval in milliseconds at which the user interface will update its display and poll for new input while a download is being performed. Smaller values will make the program more responsive, but will consume a larger amount of CPU time.
Option: Aptitude::UI::Exit-On-Last-Close
Standard: true
Beskrivning: If this option is true, closing all the active views will quit aptitude; otherwise, aptitude will not exit until you issue the command ÅtgärderAvsluta (Q). See “Arbeta med flera vyer” for more information.
Option: Aptitude::UI::Fill-Text
Standard: false
Beskrivning: If this option is true, aptitude will format descriptions so that each line is exactly the width of the screen.
Option: Aptitude::UI::HelpBar
Standard: true
Beskrivning: If this option is true, a line of information about important keystrokes will be displayed at the top of the screen.
Option: Aptitude::UI::Incremental-Search
Standard: true
Beskrivning: If this option is true, aptitude will perform “incremental” searches: as you type the search pattern, it will search for the next package matching what you have typed so far.
Option: Aptitude::UI::Keybindings
Standard:
Beskrivning: This is a group whose members define the connections between keystrokes and commands in aptitude. For more information, see “Anpassa tangentmappningar”.
Option: Aptitude::UI::Menubar-Autohide
Standard: false
Beskrivning: If this option is set to true, the menu bar will be hidden while it is not in use.
Option: Aptitude::UI::Minibuf-Download-Bar
Standard: false
Beskrivning: If this option is set to true, aptitude will use a less obtrusive mechanism to display the progress of downloads: a bar at the bottom of the screen will appear which displays the current download status. While the download is active, pressing q will abort it.
Option: Aptitude::UI::Minibuf-Prompts
Standard: false
Beskrivning: If this option is true, some prompts (such as yes/no and multiple-choice prompts) will be displayed at the bottom of the screen instead of in dialog boxes.
Option: Aptitude::UI::New-Package-Commands
Standard: true
Beskrivning: If this option is set to false, commands such as PaketInstallera (+) will have the same deprecated behavior that they did in antique versions of aptitude.
Option: Aptitude::UI::Package-Display-Format
Standard: %c%a%M %p %Z %v %V
Beskrivning: This option controls the format string used to display packages in package lists. For more information on format strings, see “Anpassa hur paket visas”.
Option: Aptitude::UI::Package-Header-Format
Standard: %N %n #%B %u %o
Beskrivning: This option controls the format string used to display the header line of package lists (ie, the line that appears between the package list and the menu bar). For more information on format strings, see “Anpassa hur paket visas”.
Option: Aptitude::UI::Package-Status-Format
Standard: %d
Beskrivning: This option controls the format string used to display the status line of package lists (ie, the line that appears between the package list and the information area). For more information on format strings, see “Anpassa hur paket visas”.
Option: Aptitude::UI::Pause-After-Download
Standard: OnlyIfError
Beskrivning: If this option is true, aptitude will display a message after it finishes downloading packages, asking you if you want to continue with the installation. If it is OnlyIfError, a message will only be displayed if a download failed. Otherwise, if the option is set to false, aptitude will immediately proceed to the next screen after completing a download.
Option: Aptitude::Preview-Limit
Standard:
Beskrivning: The default filter applied to the preview screen; see “Sökmönster” for details about its format.
Option: Aptitude::UI::Prompt-On-Exit
Standard: true
Beskrivning: If this option is true, aptitude will display a confirmation prompt before shutting down.
Option: Aptitude::UI::Styles
Standard:
Beskrivning: This is a configuration group whose contents define what textual styles aptitude uses to display information. For more information, see “Anpassa textfärger och stilar”.
Option: Aptitude::UI::ViewTabs
Standard: true
Beskrivning: If this option is set to false, aptitude will not display “tabs” describing the currently active views at the top of the screen.
Option: Aptitude::Suppress-Read-Only-Warning
Standard: false
Beskrivning: If this option is false, aptitude will display a warning the first time that you attempt to modify package states while the program is in read-only mode.
Option: Aptitude::Warn-Not-Root
Standard: true
Beskrivning: If this option is true, aptitude will detect when you need root privileges to do something, and ask you whether you want to switch to the root account if you aren't root already. See “Bli root for more information.
Option: DebTags::Vocabulary
Standard: /usr/share/debtags/vocabulary
Beskrivning: The location of the debtags vocabulary file; used to load in the package tag metadata.
Option: Quiet
Standard: 0
Beskrivning: This controls the quietness of the command-line mode. Setting it to a higher value will disable more progress indicators.