#910893 apt: Add apt install option to revert conffiles

#910893#5
Date:
2018-10-12 20:48:55 UTC
From:
To:
I think it would be nice if `apt install` offered an easier option for
users to revert their conffiles back to the Debian defaults.

So maybe you could have something like

$ apt install --revert-conffiles

that would actually do:

$ apt install --reinstall -o Dpkg::Options::="--force-confask,confnew,confmiss"

It would be a lot easier to remember and use.

Thanks,
Jeremy Bicha

#910893#10
Date:
2018-10-12 23:01:16 UTC
From:
To:
dpkg's --force-confask might be all we need really. That way it still
asks you about changes with the option to view a diff.

Thanks,
Jeremy Bicha

#910893#15
Date:
2021-06-27 01:26:43 UTC
From:
To:
+1
Please consider prioritizing this request. Passing Dpkg::Options::= is not
intuitive and does not even stand out in man pages when searching for a
solution. The ability to restore clean or missing config files with a
simple additional argument to apt would make a world of difference to many;
something short like:

$ apt reinstall --conf

Thanks!