Last active
February 20, 2018 16:12
-
-
Save ageis/33e04aadec7a39398de789f77d46c4a3 to your computer and use it in GitHub Desktop.
dpkg-force-help.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Usage: apt-get -o "Dpkg::options==--option" --reinstall install <package> | |
$ dpkg --force-help | |
[!] 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 | |
[!] script-chrootless Do not chroot into maintainer script environment | |
[!] 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Restore the contents of /etc/pam.d/ to the state the packages intended. Pluggabe authentication modules apply | |
# to anything that requires login, like a display manager, screensaver, mail or SSH daemon, etc. | |
sudo apt install --reinstall -o Dpkg::Options::="--force-confmiss" $(dpkg -S /etc/pam.d/\* | cut -d ':' -f 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment