답변:
불행히도, apt-config dump당신이 찾고있는 dpkg 옵션을 나열하지 않습니다. 관심 있는 특정 dpkg 옵션에 더 구체적 이지만 포괄적 인 옵션 목록이 아닌 man dpkg이 명령을 찾는 데 도움이 되었습니다.--force-helpforce
$ dpkg --force-help
dpkg forcing options - control behaviour when problems found:
warn but continue: --force-<thing>,<thing>,...
stop with error: --refuse-<thing>,<thing>,... | --no-force-<thing>,...
Forcing things:
[!] all Set all force options
[*] downgrade Replace a package with a lower version
configure-any Configure any package which may help this one
hold Process incidental packages even when on hold
not-root Try to (de)install things even when not root
bad-path PATH is missing important programs, problems likely
bad-verify Install a package even if it fails authenticity check
bad-version Process even packages with wrong versions
overwrite Overwrite a file from one package with another
overwrite-diverted Overwrite a diverted file with an undiverted version
[!] overwrite-dir Overwrite one package's directory with another's file
[!] unsafe-io Do not perform safe I/O operations when unpacking
[!] confnew Always use the new config files, don't prompt
[!] confold Always use the old config files, don't prompt
[!] confdef Use the default option for new config files if one
is available, don't prompt. If no default can be found,
you will be prompted unless one of the confold or
confnew options is also given
[!] confmiss Always install missing config files
[!] confask Offer to replace config files with no new versions
[!] architecture Process even packages with wrong or no architecture
[!] breaks Install even if it would break another package
[!] conflicts Allow installation of conflicting packages
[!] depends Turn all dependency problems into warnings
[!] depends-version Turn dependency version problems into warnings
[!] remove-reinstreq Remove packages which require installation
[!] remove-essential Remove an essential package
WARNING - use of options marked [!] can seriously damage your installation.
Forcing options marked [*] are enabled by default.
apt-config dump 것이지만Dpkg::Options , 일부가 예를 들어에 설정된 경우에만 언급 할 것이다/etc/apt/apt.conf.d/ . Sa askubuntu.com/a/104912/399010
짧은 답변:
dpkg --force-help
수락 된 답변에 동의하지 않습니다. apt-config 덤프는 현재 활성화 된 옵션 중 일부를 보는 데 도움이되지만 (대부분은 간단한 apt 작업에 일반적으로 유용합니다) dpkg 작업에 대한 모든 옵션, 즉 "force"옵션이 표시되지는 않습니다. 원래 질문은 참조합니다. 이러한 추가 옵션 중 기본적으로 활성화 된 옵션과 정보를 잘 알고있는 사용자가 완전히 필요할 때만 변경해야하는 옵션을 보려면에서 제공하는 도움말 (CLI에서 제공)을 사용해야합니다 dpkg --force-help. dpkg의 매뉴얼 페이지 --force-*things*는 dpkg명령 플래그를 설명하는 섹션에서이 플래그의 출력에 대한 간단한 설명을 제공합니다 . 이 매뉴얼 페이지는 온라인에서도 볼 수 있습니다 :
http://man7.org/linux/man-pages/man1/dpkg.1.html
https://linux.die.net/man/1/dpkg
(이것은 단지 몇 군데에 불과합니다).
--force-*things*섹션 참조) 와 마찬가지로 유용 하지만 OP에서 요청한 현재 설정 값 을 표시하지는 않습니다 .