aptitude
の設定ファイルの基本形は、オプションとその値のリストです。ファイルの各行は、「オプション
値;」という形式になっているべきです。例えば、設定ファイルの次の行はオプション
Aptitude::Theme
を「Dselect」と設定します。
Aptitude::Theme "Dselect";
オプションに別のオプションを「含める」ことも可能です。そうするには、次のように、オプションとその後のセミコロンとの間に中括弧を入れ、その中に別のオプションを書いてください。
Aptitude::UI {
Package-Status-Format "";
Package-Display-Format "";
};
別のオプションを含んだオプションをグループと呼ぶことがあります。実は、オプション名に現れる二重コロンは、本当はオプションの包含関係の省略表現です。つまり、オプション
Aptitude::UI::Default-Grouping はグループ
Aptitude::UI に含まれており、Aptitude::UI
自体もグループ Aptitude に含まれています。したがって、もしお望みであれば、このオプション
Aptitude::UI::Default-Grouping は次のようにして
"" に設定できます。
Aptitude {
UI {
Default-Grouping "";
};
};設定ファイルの書式についてさらに詳しく知りたければ、マニュアルページ apt.conf(5) を参照してください。
aptitude の設定は以下のソースから順に読まれます。
ユーザの設定ファイル ~/.aptitude/config。このファイルは、ユーザが「オプション」メニューの設定に変更を加えたときに上書きされます。
システムの設定ファイル /etc/apt/apt.conf。
/usr/share/aptitude/aptitude-defaults 内に格納されているデフォルト値。
プログラムに組み込まれているデフォルト値。
オプションを調べるときにこれらのソースは順に検索され、そのオプションに対して値を与えるソースのうち最初に見つかったものが使用されます。例えば、あるオプションを
/etc/apt/apt.conf に設定すると、aptitude
のそのオプションのデフォルト値は上書きされますが、~/.aptitude/config
のユーザ設定は上書きされません。
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.
Dir::Aptitude::state/var/lib/aptitudeAptitude::Allow-Null-Upgradefalsetrue, aptitude will continue to the
preview screen whenever there are upgradable packages, rather than
displaying a reminder about the → (U) command.
Aptitude::Autoclean-After-Updatefalsetrue, aptitude will clean up obsolete
files (see → ) every
time you update the package list.
Aptitude::Auto-Installtruetrue, aptitude will automatically
attempt to fulfill the dependencies of a package when you select it for
installation.
Aptitude::Auto-Fix-Brokentruefalse, aptitude will ask for
permission before attempting to fix any broken packages.
Aptitude::Auto-Upgradefalsetrue, aptitude will automatically
flag all upgradable packages for upgrade when the program starts, as if you
had issued the command → (U).
Aptitude::CmdLine::Always-Promptfalse-P command-line
option.
Aptitude::CmdLine::Assume-Yesfalsetrue, 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.
Aptitude::CmdLine::Ignore-Trust-ViolationsfalseApt::Get::AllowUnauthenticated.
Aptitude::CmdLine::Resolver-Debugfalsetrue, 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.
Aptitude::CmdLine::Resolver-DumpAptitude::CmdLine::Resolver-Show-Stepsfalsetrue, then a dependency solution will
be displayed as a sequence of resolutions of individual dependencies; for
instance, 「wesnoth depends upon wesnoth-data (= 1.2.4-1) ->
installing wesnoth-data 1.2.4-1 (unstable)」. To toggle
between the two display modes, press o at the prompt
「Accept this solution?」.
Aptitude::CmdLine::Request-Strictness10000Aptitude::CmdLine::Download-Onlyfalsetrue, aptitude
will download package files but not install them. This is equivalent to the
-d command-line option.
Aptitude::CmdLine::Fix-Brokenfalsetrue, aptitude
will be more aggressive when attempting to fix the dependencies of broken
packages. This is equivalent to the -f command-line
option.
Aptitude::CmdLine::Package-Display-Format%c%a%M %p# - %d#-F command-line option.
Aptitude::CmdLine::Package-Display-Width""), search results will be formatted for the current
terminal size, or for an 80-column display if the terminal size cannot be
determined.
Aptitude::CmdLine::Show-Depsfalsetrue, 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.
Aptitude::CmdLine::Show-Versionsfalsetrue, aptitude
will display the version of a package that is being installed or removed.
This is equivalent to the -V command-line option.
Aptitude::CmdLine::Show-Size-Changesfalsetrue, aptitude
will display the expected change in the amount of space used by each
package. This is equivalent to the -Z command-line
option.
Aptitude::CmdLine::SimulatefalseAptitude::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.
Aptitude::CmdLine::Visual-Previewfalsetrue, aptitude will enter its visual
mode to display the preview of an installation run and to download packages.
Aptitude::CmdLine::Verbose0-v command-line option adds 1 to this
value.
Aptitude::Delete-Unusedtruetrue, automatically installed packages
which are no longer required will be automatically removed. For more
information, see 自動的にインストールされたパッケージの管理項.
Aptitude::Delete-Unused-PatternAptitude::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.
Aptitude::Display-Planned-Actiontruetrue, aptitude will display a preview
screen before actually carrying out the actions you have requested.
Aptitude::Forget-New-On-Updatefalsetrue, aptitude will clear the list of
new packages whenever the package list is updated, as if you had issued the
command → (f).
Aptitude::Forget-New-On-Installfalsetrue, aptitude will clear the list of
new packages whenever you install, upgrade, or remove packages, as if you
had issued the command → (f).
Aptitude::Ignore-Old-Tmpfalse~/.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.
Aptitude::Keep-Recommendsfalsetrue, then aptitude will not consider
packages to be unused (and thus will not automatically remove them) as long
as any installed package recommends them, even if Aptitude::Recommends-Important
is false. For more information, see 自動的にインストールされたパッケージの管理項.
Aptitude::Keep-Suggestsfalsetrue, then aptitude will not consider
packages to be unused (and thus will not automatically remove them) as long
as any installed package suggests them. For more information, see 自動的にインストールされたパッケージの管理項.
Aptitude::Keep-Unused-PatternAptitude::Delete-Unused is
true, only unused packages which do not match this
pattern (see 検索パターン項) will be removed. If this
option is set to an empty string (the default), all unused packages will be
removed.
Aptitude::LockFile/var/lock/aptitudeAptitude::Log/var/log/aptitudeAptitude::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.
Aptitude::Parse-Description-Bulletsfalsetrue than when it is false.
Aptitude::Pkg-Display-LimitAptitude::Recommends-Importanttruetrue and
Aptitude::Auto-Install is true, then
whenever you mark a package for installation, aptitude will also mark the
packages it recommends for installation. Furthermore, if this option is
true, aptitude will not consider packages to be unused
(and thus will not automatically remove them) as long as any installed
package reommends them. For more information, see 自動的にインストールされたパッケージの管理項.
Aptitude::ProblemResolver::BreakHoldScore-300Aptitude::ProblemResolver::BrokenScore-100Aptitude::ProblemResolver::Discard-Null-Solutiontruetrue, aptitude will never suggest
cancelling all of your proposed actions in order to resolve a dependency
problem.
Aptitude::ProblemResolver::EssentialRemoveScore-100000Aptitude::ProblemResolver::ExtraScore-1Aptitude::ProblemResolver::ImportantScore5Aptitude::ProblemResolver::Infinity1000000-Infinity, it will be
discarded immediately.
Aptitude::ProblemResolver::InstallScore-20Aptitude::ProblemResolver::KeepScore0Aptitude::ProblemResolver::Max-Successors0Max-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.
Aptitude::ProblemResolver::NonDefaultScore-40Aptitude::ProblemResolver::OptionalScore1Aptitude::ProblemResolver::PreserveAutoScore0Aptitude::ProblemResolver::PreserveManualScore60Aptitude::ProblemResolver::ResolutionScore50Aptitude::ProblemResolver::RemoveScore-300Aptitude::ProblemResolver::RequiredScore4Aptitude::ProblemResolver::StandardScore3Aptitude::ProblemResolver::StepLimit5000Aptitude::ProblemResolver::StepScore70Aptitude::ProblemResolver::UnfixedSoftScore-200Aptitude::ProblemResolver::UpgradeScore0Aptitude::ProblemResolver::WaitSteps50Aptitude::Purge-Unusedfalsetrue 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 自動的にインストールされたパッケージの管理項. THIS OPTION CAN CAUSE DATA LOSS! DO
NOT ENABLE IT UNLESS YOU KNOW WHAT YOU ARE DOING!
Aptitude::Simulatefalseroot or not. This is equivalent to the
-s command-line option.
Aptitude::Suggests-ImportantfalseAptitude::Keep-Suggests
instead. Setting this option to true has the same effect
as setting Aptitude::Keep-Suggests to
true.
Aptitude::Spin-Interval500Aptitude::Track-Dselect-Statetruetrue, 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.
Aptitude::UI::Advance-On-Actionfalsetrue, 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.
Aptitude::UI::Auto-Show-Reasonstruetrue, 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.
Aptitude::UI::Default-Groupingfilter(missing),status,section(subdir,passthrough),section(topdir)Aptitude::UI::Default-Preview-GroupingactionAptitude::UI::Default-SortingnameAptitude::UI::Description-Visible-By-Defaulttruetrue and hidden if it is
false.
Aptitude::UI::Default-Package-ViewAptitude::UI::Download-Poll-Interval50000Aptitude::UI::Exit-On-Last-Closetruetrue, closing all the active views will
quit aptitude; otherwise, aptitude will not exit until you issue the
command → (Q). See 複数の画面を用いた作業項 for more
information.
Aptitude::UI::Fill-Textfalsetrue, aptitude will format
descriptions so that each line is exactly the width of the screen.
Aptitude::Get-Root-Commandsu:/usr/bin/suroot user (see root になる項). It has the form
protocol:command.
protocol must be either su or
sudo; it determines how aptitude invokes the program when
it wants to gain root privileges. If protocol is
su, then command -c
arguments is used to become root;
otherwise, aptitude uses command
arguments. The first word in
command is the name of the program that should be
invoked; remaining words are treated as arguments to that program.
Aptitude::UI::HelpBartruetrue, a line of information about
important keystrokes will be displayed at the top of the screen.
Aptitude::UI::Incremental-Searchtruetrue, 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.
Aptitude::UI::KeybindingsAptitude::UI::Menubar-Autohidefalsetrue, the menu bar will be
hidden while it is not in use.
Aptitude::UI::Minibuf-Download-Barfalsetrue, 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.
Aptitude::UI::Minibuf-Promptsfalsetrue, some prompts (such as yes/no and
multiple-choice prompts) will be displayed at the bottom of the screen
instead of in dialog boxes.
Aptitude::UI::New-Package-Commandstruefalse, commands such as
→ (+) will have the same deprecated behavior that they did in
antique versions of aptitude.
Aptitude::UI::Package-Display-Format%c%a%M %p %Z %v %VAptitude::UI::Package-Header-Format%N %n #%B %u %oAptitude::UI::Package-Status-Format%dAptitude::UI::Pause-After-DownloadOnlyIfErrortrue, 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.
Aptitude::Preview-LimitAptitude::UI::Prompt-On-Exittruetrue, aptitude will display a
confirmation prompt before shutting down.
Aptitude::UI::StylesAptitude::UI::ViewTabstruefalse, aptitude will not
display 「tabs」 describing the currently active views at the top
of the screen.
Aptitude::Suppress-Read-Only-Warningfalsefalse, aptitude will display a
warning the first time that you attempt to modify package states while the
program is in read-only mode.
Aptitude::Warn-Not-Roottruetrue, 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 root になる項 for more information.