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

The name of the pictureThe name of the pictureThe name of the pictureClash 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.







share|improve this question
























    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.







    share|improve this question






















      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.







      share|improve this question












      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.









      share|improve this question











      share|improve this question




      share|improve this question










      asked May 9 at 7:20









      detly

      1,29342441




      1,29342441




















          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





          share|improve this answer






















          • 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










          • 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










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          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






























          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





          share|improve this answer






















          • 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










          • 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














          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





          share|improve this answer






















          • 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










          • 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












          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





          share|improve this answer














          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






          share|improve this answer














          share|improve this answer



          share|improve this answer








          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 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
















          • 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










          • 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















          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












           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          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













































































          Popular posts from this blog

          pylint3 and pip3 broken

          Missing snmpget and snmpwalk

          How to enroll fingerprints to Ubuntu 17.10 with VFS491