If we've deleted or messed up a configuration file, then we can restore by doing the following;
First run pkg -S /etc/confFile
This will then return a package, which we can add into the following;
apt install --reinstall -o Dpkg::Options::="--force-confask,confnew,confmiss" <package-name> source
Note: unsure if the confnew option works.
The following will also list every package added to a directory
pkg -S /etc/conf.d
No comments:
Post a Comment
Note: only a member of this blog may post a comment.