How do I completely reset the system configuration of a single package (gdm3)?

 Clash Royale CLAN TAG#URR8PPP
Clash Royale CLAN TAG#URR8PPP up vote
0
down vote
favorite
I'd like to completely reset the system configuration of the gdm3 package. I mean all the files under /etc/gdm3/, /var/lib/gdm3 and anywhere else it has installed files. Changes files should be reset to their original state, deleted files restored, and added files not from the original package removed.
Neither dpkg-reconfigure gdm3 nor apt install --reinstall do this. I don't want to purge and reinstall the package, because of all the dependencies that will remove. I only want to wipe the slate clean for one particular package.
In this case the package is gdm3, but I think there might be a generic way to do this for any package. I realise that configuration that's coupled to other packages (eg. Systemd service status) and user configuration under /home won't be handled.
package-management default
add a comment |Â
up vote
0
down vote
favorite
I'd like to completely reset the system configuration of the gdm3 package. I mean all the files under /etc/gdm3/, /var/lib/gdm3 and anywhere else it has installed files. Changes files should be reset to their original state, deleted files restored, and added files not from the original package removed.
Neither dpkg-reconfigure gdm3 nor apt install --reinstall do this. I don't want to purge and reinstall the package, because of all the dependencies that will remove. I only want to wipe the slate clean for one particular package.
In this case the package is gdm3, but I think there might be a generic way to do this for any package. I realise that configuration that's coupled to other packages (eg. Systemd service status) and user configuration under /home won't be handled.
package-management default
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'd like to completely reset the system configuration of the gdm3 package. I mean all the files under /etc/gdm3/, /var/lib/gdm3 and anywhere else it has installed files. Changes files should be reset to their original state, deleted files restored, and added files not from the original package removed.
Neither dpkg-reconfigure gdm3 nor apt install --reinstall do this. I don't want to purge and reinstall the package, because of all the dependencies that will remove. I only want to wipe the slate clean for one particular package.
In this case the package is gdm3, but I think there might be a generic way to do this for any package. I realise that configuration that's coupled to other packages (eg. Systemd service status) and user configuration under /home won't be handled.
package-management default
I'd like to completely reset the system configuration of the gdm3 package. I mean all the files under /etc/gdm3/, /var/lib/gdm3 and anywhere else it has installed files. Changes files should be reset to their original state, deleted files restored, and added files not from the original package removed.
Neither dpkg-reconfigure gdm3 nor apt install --reinstall do this. I don't want to purge and reinstall the package, because of all the dependencies that will remove. I only want to wipe the slate clean for one particular package.
In this case the package is gdm3, but I think there might be a generic way to do this for any package. I realise that configuration that's coupled to other packages (eg. Systemd service status) and user configuration under /home won't be handled.
package-management default
asked May 9 at 7:20
detly
1,29342441
1,29342441
add a comment |Â
add a comment |Â
 1 Answer
 1
 
active
oldest
votes
up vote
0
down vote
The following command will ask to replace chanced configuration files with defaults:
sudo aptitude -o DPkg::options::=--force-confask reinstall gdm3
However, as far as I can tell, it will not delete extra configuration files. If you know where the configuation files are, you can just delete them yourself before running:
sudo aptitude -o DPkg::options::=--force-confmiss reinstall gdm3
To see the available --force- options, use:
dpkg --force-help
 
 
 
 
 
 
 This doesn't revert eg.- /etc/gdm3/custom.conf, which is definitely part of the original installation and not added by me.
 â detly
 May 9 at 7:51
 
 
 
 
 
 
 
 
 
 (I am starting to wonder if I have picked a particularly bad package for this question, because maybe a lot of- gdm3config is done by post-install scripts which might do their own checking to avoid clobbering...?)
 â detly
 May 9 at 7:56
 
 
 
 
 
 
 
 
 
 Apparently the- --force-confdefdoesn't act the way the description sounds like it should... change to- --force-confask. Or delete all config files and try- --force-confmiss.
 â xiota
 May 9 at 8:03
 
 
 
add a comment |Â
 1 Answer
 1
 
active
oldest
votes
 1 Answer
 1
 
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
The following command will ask to replace chanced configuration files with defaults:
sudo aptitude -o DPkg::options::=--force-confask reinstall gdm3
However, as far as I can tell, it will not delete extra configuration files. If you know where the configuation files are, you can just delete them yourself before running:
sudo aptitude -o DPkg::options::=--force-confmiss reinstall gdm3
To see the available --force- options, use:
dpkg --force-help
 
 
 
 
 
 
 This doesn't revert eg.- /etc/gdm3/custom.conf, which is definitely part of the original installation and not added by me.
 â detly
 May 9 at 7:51
 
 
 
 
 
 
 
 
 
 (I am starting to wonder if I have picked a particularly bad package for this question, because maybe a lot of- gdm3config is done by post-install scripts which might do their own checking to avoid clobbering...?)
 â detly
 May 9 at 7:56
 
 
 
 
 
 
 
 
 
 Apparently the- --force-confdefdoesn't act the way the description sounds like it should... change to- --force-confask. Or delete all config files and try- --force-confmiss.
 â xiota
 May 9 at 8:03
 
 
 
add a comment |Â
up vote
0
down vote
The following command will ask to replace chanced configuration files with defaults:
sudo aptitude -o DPkg::options::=--force-confask reinstall gdm3
However, as far as I can tell, it will not delete extra configuration files. If you know where the configuation files are, you can just delete them yourself before running:
sudo aptitude -o DPkg::options::=--force-confmiss reinstall gdm3
To see the available --force- options, use:
dpkg --force-help
 
 
 
 
 
 
 This doesn't revert eg.- /etc/gdm3/custom.conf, which is definitely part of the original installation and not added by me.
 â detly
 May 9 at 7:51
 
 
 
 
 
 
 
 
 
 (I am starting to wonder if I have picked a particularly bad package for this question, because maybe a lot of- gdm3config is done by post-install scripts which might do their own checking to avoid clobbering...?)
 â detly
 May 9 at 7:56
 
 
 
 
 
 
 
 
 
 Apparently the- --force-confdefdoesn't act the way the description sounds like it should... change to- --force-confask. Or delete all config files and try- --force-confmiss.
 â xiota
 May 9 at 8:03
 
 
 
add a comment |Â
up vote
0
down vote
up vote
0
down vote
The following command will ask to replace chanced configuration files with defaults:
sudo aptitude -o DPkg::options::=--force-confask reinstall gdm3
However, as far as I can tell, it will not delete extra configuration files. If you know where the configuation files are, you can just delete them yourself before running:
sudo aptitude -o DPkg::options::=--force-confmiss reinstall gdm3
To see the available --force- options, use:
dpkg --force-help
The following command will ask to replace chanced configuration files with defaults:
sudo aptitude -o DPkg::options::=--force-confask reinstall gdm3
However, as far as I can tell, it will not delete extra configuration files. If you know where the configuation files are, you can just delete them yourself before running:
sudo aptitude -o DPkg::options::=--force-confmiss reinstall gdm3
To see the available --force- options, use:
dpkg --force-help
edited May 9 at 8:02
answered May 9 at 7:48
xiota
1,0561422
1,0561422
 
 
 
 
 
 
 This doesn't revert eg.- /etc/gdm3/custom.conf, which is definitely part of the original installation and not added by me.
 â detly
 May 9 at 7:51
 
 
 
 
 
 
 
 
 
 (I am starting to wonder if I have picked a particularly bad package for this question, because maybe a lot of- gdm3config is done by post-install scripts which might do their own checking to avoid clobbering...?)
 â detly
 May 9 at 7:56
 
 
 
 
 
 
 
 
 
 Apparently the- --force-confdefdoesn't act the way the description sounds like it should... change to- --force-confask. Or delete all config files and try- --force-confmiss.
 â xiota
 May 9 at 8:03
 
 
 
add a comment |Â
 
 
 
 
 
 
 This doesn't revert eg.- /etc/gdm3/custom.conf, which is definitely part of the original installation and not added by me.
 â detly
 May 9 at 7:51
 
 
 
 
 
 
 
 
 
 (I am starting to wonder if I have picked a particularly bad package for this question, because maybe a lot of- gdm3config is done by post-install scripts which might do their own checking to avoid clobbering...?)
 â detly
 May 9 at 7:56
 
 
 
 
 
 
 
 
 
 Apparently the- --force-confdefdoesn't act the way the description sounds like it should... change to- --force-confask. Or delete all config files and try- --force-confmiss.
 â xiota
 May 9 at 8:03
 
 
 
This doesn't revert eg.
/etc/gdm3/custom.conf, which is definitely part of the original installation and not added by me.â detly
May 9 at 7:51
This doesn't revert eg.
/etc/gdm3/custom.conf, which is definitely part of the original installation and not added by me.â detly
May 9 at 7:51
(I am starting to wonder if I have picked a particularly bad package for this question, because maybe a lot of
gdm3 config is done by post-install scripts which might do their own checking to avoid clobbering...?)â detly
May 9 at 7:56
(I am starting to wonder if I have picked a particularly bad package for this question, because maybe a lot of
gdm3 config is done by post-install scripts which might do their own checking to avoid clobbering...?)â detly
May 9 at 7:56
Apparently the
--force-confdef doesn't act the way the description sounds like it should... change to --force-confask. Or delete all config files and try --force-confmiss.â xiota
May 9 at 8:03
Apparently the
--force-confdef doesn't act the way the description sounds like it should... change to --force-confask. Or delete all config files and try --force-confmiss.â xiota
May 9 at 8:03
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1033893%2fhow-do-i-completely-reset-the-system-configuration-of-a-single-package-gdm3%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password