aptitude -P install -r lxde-core:
1.
-p
1-1.
https://www.debian.org/doc/manuals/apti ... 01.en.html
-P, --prompt
Always display a prompt before downloading, installing or removing packages, even when no actions other than those explicitly requested will be performed.
This corresponds to the configuration option Aptitude::CmdLine::Always-Prompt.
1-1-1.
https://www.debian.org/doc/manuals/apti ... ml#idm6654
Option: Aptitude::CmdLine::Always-Prompt
Default: false
Description: 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.
2.
-r
2-1.
https://www.debian.org/doc/manuals/apti ... 01.en.html
-r, --with-recommends
Treat recommendations as dependencies when installing new packages (this overrides settings in /etc/apt/apt.conf and ~/.aptitude/config).
This corresponds to the configuration option APT::Install-Recommends
2-1-1.
https://www.debian.org/doc/manuals/apti ... ml#idm6654
Option: Aptitude::Auto-Install
Default: true
Description: If this option is true, aptitude will automatically attempt to fulfill the dependencies of a package when you mark a package to be installed or upgraded.
2-1-2.
https://www.debian.org/doc/manuals/apti ... ml#idm6654
Option: APT::Install-Recommends
Default: true
Description: If this option is true 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 the section called “Managing automatically installed packages” and the section called “Immediate dependency resolution”.
2-1-2-1.
https://www.debian.org/doc/manuals/apti ... 02.en.html
Immediate dependency resolution
Whenever you choose to install or upgrade a package in aptitude, aptitude makes an immediate attempt to resolve any of its dependencies that are not fulfilled. For each unsatisfied dependency (either a “Depends”, a “
recommends”, or a “Conflicts”), it performs the following steps:
If the dependency is a
recommendation, aptitude tries to guess whether it is a “new”
recommendation or a “previously satisfied”
recommendation. aptitude considers a
recommendation to be “new” if the package declaring the
recommendation is not currently installed, or if its installed version does not
recommend a package of the same name. On the other hand, a
recommendation is “previously satisfied” if the package declaring the
recommendation is installed, the currently installed version
recommends a package of the same name, and that
recommendation is currently fulfilled.
For example: suppose that version 1.0 of prog
recommends version 4.0 of libcool1, but version 2.0 of prog
recommends version 5.0 of libcool1, and also
recommends apache. If you choose to upgrade prog from version 1.0 to version 2.0, the
recommendation of apache will be considered to be “new” because version 1.0 of prog did not
recommend apache. On the other hand, the
recommendation of libcool1 is not “new”, because version 1.0 of prog
recommended libcool1, even though it
recommended a different version. However, if libcool1 is installed, then that
recommendation will be considered to be “previously satisfied”.
If the configuration option APT::Install-
recommends is true, aptitude will always attempt to fulfill “new” and “previously satisfied”
recommendations; all others will be ignored by immediate resolution. If that option is false, immediate dependency resolution will ignore all
recommendations.
2-1-2-2. 注意 最後一句話
If the configuration option APT::Install-
recommends is true, ....
If that option is false, ...
兩者處理方式 不同