Why don't programs completely uninstall (remove all their files) when I remove them?












9















In Ubuntu, or any Linux, when I decide to remove a program and then later reinstall it, I notice that it didn't remove anything I previously made, thus making it a little pointless for me, as I like to freshly install stuff often. Whenever I decide to reinstall it it's just like it was before I removed the program. Why is this?



I'm used to uninstalling something similar to Windows or Android in that it completely removes everything and the only real way to recover that data would be to either save it somewhere, or if they give me an option to log in to recover it, is there a way to do that on Linux too?



Sometimes I remove it from the Ubuntu Software center and use sudo apt-get --purge remove [application].



I'm using Ubuntu 18.10, I have nothing to uninstall right now I'm just curious.










share|improve this question




















  • 1





    Use purge instead of remove.

    – Pilot6
    23 hours ago






  • 1





    Android has the ability to sync data to a Google account. Is that what you mean by "log in to recover it"? I haven't seen that option on Windows (yet).

    – tudor
    17 hours ago






  • 6





    Do you really believe Windows removes everything. My experience is quite the contrary. And the mess left by uninstalled applications in the Windows Registry is just horrible.

    – Ister
    12 hours ago






  • 1





    Most (good) Windows applications offer you an option to delete your user date or keep it around, but quite a bunch of them won't touch your personal stuff.

    – T. Sar
    11 hours ago











  • @t-sar Can you cite an example of this? I've literally never seen a Windows application offer to destroy user data.

    – tudor
    31 mins ago
















9















In Ubuntu, or any Linux, when I decide to remove a program and then later reinstall it, I notice that it didn't remove anything I previously made, thus making it a little pointless for me, as I like to freshly install stuff often. Whenever I decide to reinstall it it's just like it was before I removed the program. Why is this?



I'm used to uninstalling something similar to Windows or Android in that it completely removes everything and the only real way to recover that data would be to either save it somewhere, or if they give me an option to log in to recover it, is there a way to do that on Linux too?



Sometimes I remove it from the Ubuntu Software center and use sudo apt-get --purge remove [application].



I'm using Ubuntu 18.10, I have nothing to uninstall right now I'm just curious.










share|improve this question




















  • 1





    Use purge instead of remove.

    – Pilot6
    23 hours ago






  • 1





    Android has the ability to sync data to a Google account. Is that what you mean by "log in to recover it"? I haven't seen that option on Windows (yet).

    – tudor
    17 hours ago






  • 6





    Do you really believe Windows removes everything. My experience is quite the contrary. And the mess left by uninstalled applications in the Windows Registry is just horrible.

    – Ister
    12 hours ago






  • 1





    Most (good) Windows applications offer you an option to delete your user date or keep it around, but quite a bunch of them won't touch your personal stuff.

    – T. Sar
    11 hours ago











  • @t-sar Can you cite an example of this? I've literally never seen a Windows application offer to destroy user data.

    – tudor
    31 mins ago














9












9








9


2






In Ubuntu, or any Linux, when I decide to remove a program and then later reinstall it, I notice that it didn't remove anything I previously made, thus making it a little pointless for me, as I like to freshly install stuff often. Whenever I decide to reinstall it it's just like it was before I removed the program. Why is this?



I'm used to uninstalling something similar to Windows or Android in that it completely removes everything and the only real way to recover that data would be to either save it somewhere, or if they give me an option to log in to recover it, is there a way to do that on Linux too?



Sometimes I remove it from the Ubuntu Software center and use sudo apt-get --purge remove [application].



I'm using Ubuntu 18.10, I have nothing to uninstall right now I'm just curious.










share|improve this question
















In Ubuntu, or any Linux, when I decide to remove a program and then later reinstall it, I notice that it didn't remove anything I previously made, thus making it a little pointless for me, as I like to freshly install stuff often. Whenever I decide to reinstall it it's just like it was before I removed the program. Why is this?



I'm used to uninstalling something similar to Windows or Android in that it completely removes everything and the only real way to recover that data would be to either save it somewhere, or if they give me an option to log in to recover it, is there a way to do that on Linux too?



Sometimes I remove it from the Ubuntu Software center and use sudo apt-get --purge remove [application].



I'm using Ubuntu 18.10, I have nothing to uninstall right now I'm just curious.







software-uninstall






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 14 hours ago









Zanna

50.8k13136241




50.8k13136241










asked yesterday









SonicStarManSonicStarMan

1219




1219








  • 1





    Use purge instead of remove.

    – Pilot6
    23 hours ago






  • 1





    Android has the ability to sync data to a Google account. Is that what you mean by "log in to recover it"? I haven't seen that option on Windows (yet).

    – tudor
    17 hours ago






  • 6





    Do you really believe Windows removes everything. My experience is quite the contrary. And the mess left by uninstalled applications in the Windows Registry is just horrible.

    – Ister
    12 hours ago






  • 1





    Most (good) Windows applications offer you an option to delete your user date or keep it around, but quite a bunch of them won't touch your personal stuff.

    – T. Sar
    11 hours ago











  • @t-sar Can you cite an example of this? I've literally never seen a Windows application offer to destroy user data.

    – tudor
    31 mins ago














  • 1





    Use purge instead of remove.

    – Pilot6
    23 hours ago






  • 1





    Android has the ability to sync data to a Google account. Is that what you mean by "log in to recover it"? I haven't seen that option on Windows (yet).

    – tudor
    17 hours ago






  • 6





    Do you really believe Windows removes everything. My experience is quite the contrary. And the mess left by uninstalled applications in the Windows Registry is just horrible.

    – Ister
    12 hours ago






  • 1





    Most (good) Windows applications offer you an option to delete your user date or keep it around, but quite a bunch of them won't touch your personal stuff.

    – T. Sar
    11 hours ago











  • @t-sar Can you cite an example of this? I've literally never seen a Windows application offer to destroy user data.

    – tudor
    31 mins ago








1




1





Use purge instead of remove.

– Pilot6
23 hours ago





Use purge instead of remove.

– Pilot6
23 hours ago




1




1





Android has the ability to sync data to a Google account. Is that what you mean by "log in to recover it"? I haven't seen that option on Windows (yet).

– tudor
17 hours ago





Android has the ability to sync data to a Google account. Is that what you mean by "log in to recover it"? I haven't seen that option on Windows (yet).

– tudor
17 hours ago




6




6





Do you really believe Windows removes everything. My experience is quite the contrary. And the mess left by uninstalled applications in the Windows Registry is just horrible.

– Ister
12 hours ago





Do you really believe Windows removes everything. My experience is quite the contrary. And the mess left by uninstalled applications in the Windows Registry is just horrible.

– Ister
12 hours ago




1




1





Most (good) Windows applications offer you an option to delete your user date or keep it around, but quite a bunch of them won't touch your personal stuff.

– T. Sar
11 hours ago





Most (good) Windows applications offer you an option to delete your user date or keep it around, but quite a bunch of them won't touch your personal stuff.

– T. Sar
11 hours ago













@t-sar Can you cite an example of this? I've literally never seen a Windows application offer to destroy user data.

– tudor
31 mins ago





@t-sar Can you cite an example of this? I've literally never seen a Windows application offer to destroy user data.

– tudor
31 mins ago










3 Answers
3






active

oldest

votes


















19














That's not quite true. No package operation should remove user data, ever, under any circumstances.



Firstly, as an aside, other than the Ubuntu login screen, if an application asks you to log in, then your data is almost certainly not on your machine. The log in process is most likely related to an online authentication mechanism to provide access to your data stored somewhere else. Android and iOS have a (limited) ability to sync small amounts of user and configuration data for applications with "cloud" servers, but that doesn't necessarily disappear after uninstalling an application either.



All OSs (including Windows* and Android) are dependent on removal scripts. These presume that you want the software to go away but keep the configuration so that you can install it again later. The --purge option to apt merely removes configuration files, and only if they haven't been modified by the user.



If you're making modifications outside your own data (/home) then we assume you know what you're doing so your system continues to behave to your configuration. It's easy to rm -R the config files yourself, it's not so easy to get your specific customised version of things back the way you had set them up. So these scripts tend to err on the side of caution.



These scripts make various assumptions about what was installed and they are frequently written by humans who can make mistakes. Sometimes the software does something special, particularly when the software has dependencies.



We (Ubuntu developers) do do tests on test systems. We install the software into a clean installation of Ubuntu, and then we run apt remove and apt --purge remove and verify that the system returned to the expected (pre-installed) state.



If you do see a situation where a package is installed, no modifications are made to the config, and the package is then removed but files remain, then please file a bug against that package.



An alternative is to use snap, which houses the application entirely in its own environment.



*(in fact, this is one of the top ways Windows applications install malware, by "piggybacking" malware onto applications you choose to install, and then not removing them when you uninstall them.)






share|improve this answer





















  • 2





    I think the question asked is why an uninstall does not remove user data created by using the application (“didn't remove anything I previously made”), and this answer simply states it as an axiom in the first pair of sentences, instead of explaining or justifying it.

    – ShreevatsaR
    19 hours ago






  • 1





    "It's easy to rm -R the config files yourself" Is it? That assumes you know where they all are. Couldn't they be anywhere? I basically assume all install operations are permanent. I don't see the point of even providing a remove option for package managers. You always have to start from scratch if you want software gone. Am I too fatalist here?

    – Nacht
    15 hours ago






  • 1





    "Couldn't they be anywhere?" technically yes. In reality, probably 95% of the files will be in one of the few traditional locations. Very few applications will write files to completely illogical non-traditional locations. So, you usually just need to check few well known directories. Often you can also look up information about the software to know which directories have its files. You could even fire up a VM, install the software and see where it writes files, if you wish. All in all, you're making it sound like it's much harder to find what to delete than it is.

    – VLAZ
    14 hours ago






  • 2





    "Couldn't they be anywhere?" If you did not change anything in the config files they will be removed if you use --purge. If you did change something in them, you obviously know where they are.

    – technical_difficulty
    13 hours ago






  • 3





    “and only if they haven't been modified by the user” — are you sure? At least in Debian (and therefore, in all packages which Ubuntu pulls in without change), purging a package deletes all its (system-wide) configuration, whether or not the system administrator has modified it (see the policy section on configuration behaviour). This doesn’t override the rule that anything in /home is off-limits, so user-specific configuration is preserved.

    – Stephen Kitt
    12 hours ago





















10














sudo apt remove or uninstalling an application normally from the Software Center will just uninstall the regular package files and leave configuration behind, so that reinstalling the package later will usually pretty much restore your previous state of the application.



sudo apt purge or sudo apt remove --purge instead will uninstall a package and additionally remove residual system-wide configuration files afterwards. You can also use those to purge the residual configuration of a previously only removed package.



The package manager will never delete user data or user configuration files though, which is created during the run-time of the application. Those files are not tracked and the user is responsible themselves to clean them out of their home directory, if they don't want to keep them. (Theoretically a package could contain a post-remove script that checks common user data locations for files it might have created, but that should normally not be the case)






share|improve this answer



















  • 3





    A package whose removal script deletes things from or even examines users' home dirs is malware and should not be accepted into any repectable distro's repositories.

    – R..
    6 hours ago



















0














In Windows, you always have some trace of the invasive program in the registry that must be removed manually. Anything related to AV, populates the Win architecture heavily… Plus, Windows requires a third party app to fully remove a program. Ccleaner and Revo are among them.



In Ubuntu, apt purge removes almost everything, if not all. A manual search in Synaptic Package Manager shows the entire deletion process. It can be double checked by running apt purge or inversely, by searching it in Synaptic.



You must be prudent and precise using that app, it’s a hot place to be.






share|improve this answer








New contributor




Mikemecanic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















    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',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    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%2f1120246%2fwhy-dont-programs-completely-uninstall-remove-all-their-files-when-i-remove-t%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    19














    That's not quite true. No package operation should remove user data, ever, under any circumstances.



    Firstly, as an aside, other than the Ubuntu login screen, if an application asks you to log in, then your data is almost certainly not on your machine. The log in process is most likely related to an online authentication mechanism to provide access to your data stored somewhere else. Android and iOS have a (limited) ability to sync small amounts of user and configuration data for applications with "cloud" servers, but that doesn't necessarily disappear after uninstalling an application either.



    All OSs (including Windows* and Android) are dependent on removal scripts. These presume that you want the software to go away but keep the configuration so that you can install it again later. The --purge option to apt merely removes configuration files, and only if they haven't been modified by the user.



    If you're making modifications outside your own data (/home) then we assume you know what you're doing so your system continues to behave to your configuration. It's easy to rm -R the config files yourself, it's not so easy to get your specific customised version of things back the way you had set them up. So these scripts tend to err on the side of caution.



    These scripts make various assumptions about what was installed and they are frequently written by humans who can make mistakes. Sometimes the software does something special, particularly when the software has dependencies.



    We (Ubuntu developers) do do tests on test systems. We install the software into a clean installation of Ubuntu, and then we run apt remove and apt --purge remove and verify that the system returned to the expected (pre-installed) state.



    If you do see a situation where a package is installed, no modifications are made to the config, and the package is then removed but files remain, then please file a bug against that package.



    An alternative is to use snap, which houses the application entirely in its own environment.



    *(in fact, this is one of the top ways Windows applications install malware, by "piggybacking" malware onto applications you choose to install, and then not removing them when you uninstall them.)






    share|improve this answer





















    • 2





      I think the question asked is why an uninstall does not remove user data created by using the application (“didn't remove anything I previously made”), and this answer simply states it as an axiom in the first pair of sentences, instead of explaining or justifying it.

      – ShreevatsaR
      19 hours ago






    • 1





      "It's easy to rm -R the config files yourself" Is it? That assumes you know where they all are. Couldn't they be anywhere? I basically assume all install operations are permanent. I don't see the point of even providing a remove option for package managers. You always have to start from scratch if you want software gone. Am I too fatalist here?

      – Nacht
      15 hours ago






    • 1





      "Couldn't they be anywhere?" technically yes. In reality, probably 95% of the files will be in one of the few traditional locations. Very few applications will write files to completely illogical non-traditional locations. So, you usually just need to check few well known directories. Often you can also look up information about the software to know which directories have its files. You could even fire up a VM, install the software and see where it writes files, if you wish. All in all, you're making it sound like it's much harder to find what to delete than it is.

      – VLAZ
      14 hours ago






    • 2





      "Couldn't they be anywhere?" If you did not change anything in the config files they will be removed if you use --purge. If you did change something in them, you obviously know where they are.

      – technical_difficulty
      13 hours ago






    • 3





      “and only if they haven't been modified by the user” — are you sure? At least in Debian (and therefore, in all packages which Ubuntu pulls in without change), purging a package deletes all its (system-wide) configuration, whether or not the system administrator has modified it (see the policy section on configuration behaviour). This doesn’t override the rule that anything in /home is off-limits, so user-specific configuration is preserved.

      – Stephen Kitt
      12 hours ago


















    19














    That's not quite true. No package operation should remove user data, ever, under any circumstances.



    Firstly, as an aside, other than the Ubuntu login screen, if an application asks you to log in, then your data is almost certainly not on your machine. The log in process is most likely related to an online authentication mechanism to provide access to your data stored somewhere else. Android and iOS have a (limited) ability to sync small amounts of user and configuration data for applications with "cloud" servers, but that doesn't necessarily disappear after uninstalling an application either.



    All OSs (including Windows* and Android) are dependent on removal scripts. These presume that you want the software to go away but keep the configuration so that you can install it again later. The --purge option to apt merely removes configuration files, and only if they haven't been modified by the user.



    If you're making modifications outside your own data (/home) then we assume you know what you're doing so your system continues to behave to your configuration. It's easy to rm -R the config files yourself, it's not so easy to get your specific customised version of things back the way you had set them up. So these scripts tend to err on the side of caution.



    These scripts make various assumptions about what was installed and they are frequently written by humans who can make mistakes. Sometimes the software does something special, particularly when the software has dependencies.



    We (Ubuntu developers) do do tests on test systems. We install the software into a clean installation of Ubuntu, and then we run apt remove and apt --purge remove and verify that the system returned to the expected (pre-installed) state.



    If you do see a situation where a package is installed, no modifications are made to the config, and the package is then removed but files remain, then please file a bug against that package.



    An alternative is to use snap, which houses the application entirely in its own environment.



    *(in fact, this is one of the top ways Windows applications install malware, by "piggybacking" malware onto applications you choose to install, and then not removing them when you uninstall them.)






    share|improve this answer





















    • 2





      I think the question asked is why an uninstall does not remove user data created by using the application (“didn't remove anything I previously made”), and this answer simply states it as an axiom in the first pair of sentences, instead of explaining or justifying it.

      – ShreevatsaR
      19 hours ago






    • 1





      "It's easy to rm -R the config files yourself" Is it? That assumes you know where they all are. Couldn't they be anywhere? I basically assume all install operations are permanent. I don't see the point of even providing a remove option for package managers. You always have to start from scratch if you want software gone. Am I too fatalist here?

      – Nacht
      15 hours ago






    • 1





      "Couldn't they be anywhere?" technically yes. In reality, probably 95% of the files will be in one of the few traditional locations. Very few applications will write files to completely illogical non-traditional locations. So, you usually just need to check few well known directories. Often you can also look up information about the software to know which directories have its files. You could even fire up a VM, install the software and see where it writes files, if you wish. All in all, you're making it sound like it's much harder to find what to delete than it is.

      – VLAZ
      14 hours ago






    • 2





      "Couldn't they be anywhere?" If you did not change anything in the config files they will be removed if you use --purge. If you did change something in them, you obviously know where they are.

      – technical_difficulty
      13 hours ago






    • 3





      “and only if they haven't been modified by the user” — are you sure? At least in Debian (and therefore, in all packages which Ubuntu pulls in without change), purging a package deletes all its (system-wide) configuration, whether or not the system administrator has modified it (see the policy section on configuration behaviour). This doesn’t override the rule that anything in /home is off-limits, so user-specific configuration is preserved.

      – Stephen Kitt
      12 hours ago
















    19












    19








    19







    That's not quite true. No package operation should remove user data, ever, under any circumstances.



    Firstly, as an aside, other than the Ubuntu login screen, if an application asks you to log in, then your data is almost certainly not on your machine. The log in process is most likely related to an online authentication mechanism to provide access to your data stored somewhere else. Android and iOS have a (limited) ability to sync small amounts of user and configuration data for applications with "cloud" servers, but that doesn't necessarily disappear after uninstalling an application either.



    All OSs (including Windows* and Android) are dependent on removal scripts. These presume that you want the software to go away but keep the configuration so that you can install it again later. The --purge option to apt merely removes configuration files, and only if they haven't been modified by the user.



    If you're making modifications outside your own data (/home) then we assume you know what you're doing so your system continues to behave to your configuration. It's easy to rm -R the config files yourself, it's not so easy to get your specific customised version of things back the way you had set them up. So these scripts tend to err on the side of caution.



    These scripts make various assumptions about what was installed and they are frequently written by humans who can make mistakes. Sometimes the software does something special, particularly when the software has dependencies.



    We (Ubuntu developers) do do tests on test systems. We install the software into a clean installation of Ubuntu, and then we run apt remove and apt --purge remove and verify that the system returned to the expected (pre-installed) state.



    If you do see a situation where a package is installed, no modifications are made to the config, and the package is then removed but files remain, then please file a bug against that package.



    An alternative is to use snap, which houses the application entirely in its own environment.



    *(in fact, this is one of the top ways Windows applications install malware, by "piggybacking" malware onto applications you choose to install, and then not removing them when you uninstall them.)






    share|improve this answer















    That's not quite true. No package operation should remove user data, ever, under any circumstances.



    Firstly, as an aside, other than the Ubuntu login screen, if an application asks you to log in, then your data is almost certainly not on your machine. The log in process is most likely related to an online authentication mechanism to provide access to your data stored somewhere else. Android and iOS have a (limited) ability to sync small amounts of user and configuration data for applications with "cloud" servers, but that doesn't necessarily disappear after uninstalling an application either.



    All OSs (including Windows* and Android) are dependent on removal scripts. These presume that you want the software to go away but keep the configuration so that you can install it again later. The --purge option to apt merely removes configuration files, and only if they haven't been modified by the user.



    If you're making modifications outside your own data (/home) then we assume you know what you're doing so your system continues to behave to your configuration. It's easy to rm -R the config files yourself, it's not so easy to get your specific customised version of things back the way you had set them up. So these scripts tend to err on the side of caution.



    These scripts make various assumptions about what was installed and they are frequently written by humans who can make mistakes. Sometimes the software does something special, particularly when the software has dependencies.



    We (Ubuntu developers) do do tests on test systems. We install the software into a clean installation of Ubuntu, and then we run apt remove and apt --purge remove and verify that the system returned to the expected (pre-installed) state.



    If you do see a situation where a package is installed, no modifications are made to the config, and the package is then removed but files remain, then please file a bug against that package.



    An alternative is to use snap, which houses the application entirely in its own environment.



    *(in fact, this is one of the top ways Windows applications install malware, by "piggybacking" malware onto applications you choose to install, and then not removing them when you uninstall them.)







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited 17 hours ago

























    answered 23 hours ago









    tudortudor

    2,80851846




    2,80851846








    • 2





      I think the question asked is why an uninstall does not remove user data created by using the application (“didn't remove anything I previously made”), and this answer simply states it as an axiom in the first pair of sentences, instead of explaining or justifying it.

      – ShreevatsaR
      19 hours ago






    • 1





      "It's easy to rm -R the config files yourself" Is it? That assumes you know where they all are. Couldn't they be anywhere? I basically assume all install operations are permanent. I don't see the point of even providing a remove option for package managers. You always have to start from scratch if you want software gone. Am I too fatalist here?

      – Nacht
      15 hours ago






    • 1





      "Couldn't they be anywhere?" technically yes. In reality, probably 95% of the files will be in one of the few traditional locations. Very few applications will write files to completely illogical non-traditional locations. So, you usually just need to check few well known directories. Often you can also look up information about the software to know which directories have its files. You could even fire up a VM, install the software and see where it writes files, if you wish. All in all, you're making it sound like it's much harder to find what to delete than it is.

      – VLAZ
      14 hours ago






    • 2





      "Couldn't they be anywhere?" If you did not change anything in the config files they will be removed if you use --purge. If you did change something in them, you obviously know where they are.

      – technical_difficulty
      13 hours ago






    • 3





      “and only if they haven't been modified by the user” — are you sure? At least in Debian (and therefore, in all packages which Ubuntu pulls in without change), purging a package deletes all its (system-wide) configuration, whether or not the system administrator has modified it (see the policy section on configuration behaviour). This doesn’t override the rule that anything in /home is off-limits, so user-specific configuration is preserved.

      – Stephen Kitt
      12 hours ago
















    • 2





      I think the question asked is why an uninstall does not remove user data created by using the application (“didn't remove anything I previously made”), and this answer simply states it as an axiom in the first pair of sentences, instead of explaining or justifying it.

      – ShreevatsaR
      19 hours ago






    • 1





      "It's easy to rm -R the config files yourself" Is it? That assumes you know where they all are. Couldn't they be anywhere? I basically assume all install operations are permanent. I don't see the point of even providing a remove option for package managers. You always have to start from scratch if you want software gone. Am I too fatalist here?

      – Nacht
      15 hours ago






    • 1





      "Couldn't they be anywhere?" technically yes. In reality, probably 95% of the files will be in one of the few traditional locations. Very few applications will write files to completely illogical non-traditional locations. So, you usually just need to check few well known directories. Often you can also look up information about the software to know which directories have its files. You could even fire up a VM, install the software and see where it writes files, if you wish. All in all, you're making it sound like it's much harder to find what to delete than it is.

      – VLAZ
      14 hours ago






    • 2





      "Couldn't they be anywhere?" If you did not change anything in the config files they will be removed if you use --purge. If you did change something in them, you obviously know where they are.

      – technical_difficulty
      13 hours ago






    • 3





      “and only if they haven't been modified by the user” — are you sure? At least in Debian (and therefore, in all packages which Ubuntu pulls in without change), purging a package deletes all its (system-wide) configuration, whether or not the system administrator has modified it (see the policy section on configuration behaviour). This doesn’t override the rule that anything in /home is off-limits, so user-specific configuration is preserved.

      – Stephen Kitt
      12 hours ago










    2




    2





    I think the question asked is why an uninstall does not remove user data created by using the application (“didn't remove anything I previously made”), and this answer simply states it as an axiom in the first pair of sentences, instead of explaining or justifying it.

    – ShreevatsaR
    19 hours ago





    I think the question asked is why an uninstall does not remove user data created by using the application (“didn't remove anything I previously made”), and this answer simply states it as an axiom in the first pair of sentences, instead of explaining or justifying it.

    – ShreevatsaR
    19 hours ago




    1




    1





    "It's easy to rm -R the config files yourself" Is it? That assumes you know where they all are. Couldn't they be anywhere? I basically assume all install operations are permanent. I don't see the point of even providing a remove option for package managers. You always have to start from scratch if you want software gone. Am I too fatalist here?

    – Nacht
    15 hours ago





    "It's easy to rm -R the config files yourself" Is it? That assumes you know where they all are. Couldn't they be anywhere? I basically assume all install operations are permanent. I don't see the point of even providing a remove option for package managers. You always have to start from scratch if you want software gone. Am I too fatalist here?

    – Nacht
    15 hours ago




    1




    1





    "Couldn't they be anywhere?" technically yes. In reality, probably 95% of the files will be in one of the few traditional locations. Very few applications will write files to completely illogical non-traditional locations. So, you usually just need to check few well known directories. Often you can also look up information about the software to know which directories have its files. You could even fire up a VM, install the software and see where it writes files, if you wish. All in all, you're making it sound like it's much harder to find what to delete than it is.

    – VLAZ
    14 hours ago





    "Couldn't they be anywhere?" technically yes. In reality, probably 95% of the files will be in one of the few traditional locations. Very few applications will write files to completely illogical non-traditional locations. So, you usually just need to check few well known directories. Often you can also look up information about the software to know which directories have its files. You could even fire up a VM, install the software and see where it writes files, if you wish. All in all, you're making it sound like it's much harder to find what to delete than it is.

    – VLAZ
    14 hours ago




    2




    2





    "Couldn't they be anywhere?" If you did not change anything in the config files they will be removed if you use --purge. If you did change something in them, you obviously know where they are.

    – technical_difficulty
    13 hours ago





    "Couldn't they be anywhere?" If you did not change anything in the config files they will be removed if you use --purge. If you did change something in them, you obviously know where they are.

    – technical_difficulty
    13 hours ago




    3




    3





    “and only if they haven't been modified by the user” — are you sure? At least in Debian (and therefore, in all packages which Ubuntu pulls in without change), purging a package deletes all its (system-wide) configuration, whether or not the system administrator has modified it (see the policy section on configuration behaviour). This doesn’t override the rule that anything in /home is off-limits, so user-specific configuration is preserved.

    – Stephen Kitt
    12 hours ago







    “and only if they haven't been modified by the user” — are you sure? At least in Debian (and therefore, in all packages which Ubuntu pulls in without change), purging a package deletes all its (system-wide) configuration, whether or not the system administrator has modified it (see the policy section on configuration behaviour). This doesn’t override the rule that anything in /home is off-limits, so user-specific configuration is preserved.

    – Stephen Kitt
    12 hours ago















    10














    sudo apt remove or uninstalling an application normally from the Software Center will just uninstall the regular package files and leave configuration behind, so that reinstalling the package later will usually pretty much restore your previous state of the application.



    sudo apt purge or sudo apt remove --purge instead will uninstall a package and additionally remove residual system-wide configuration files afterwards. You can also use those to purge the residual configuration of a previously only removed package.



    The package manager will never delete user data or user configuration files though, which is created during the run-time of the application. Those files are not tracked and the user is responsible themselves to clean them out of their home directory, if they don't want to keep them. (Theoretically a package could contain a post-remove script that checks common user data locations for files it might have created, but that should normally not be the case)






    share|improve this answer



















    • 3





      A package whose removal script deletes things from or even examines users' home dirs is malware and should not be accepted into any repectable distro's repositories.

      – R..
      6 hours ago
















    10














    sudo apt remove or uninstalling an application normally from the Software Center will just uninstall the regular package files and leave configuration behind, so that reinstalling the package later will usually pretty much restore your previous state of the application.



    sudo apt purge or sudo apt remove --purge instead will uninstall a package and additionally remove residual system-wide configuration files afterwards. You can also use those to purge the residual configuration of a previously only removed package.



    The package manager will never delete user data or user configuration files though, which is created during the run-time of the application. Those files are not tracked and the user is responsible themselves to clean them out of their home directory, if they don't want to keep them. (Theoretically a package could contain a post-remove script that checks common user data locations for files it might have created, but that should normally not be the case)






    share|improve this answer



















    • 3





      A package whose removal script deletes things from or even examines users' home dirs is malware and should not be accepted into any repectable distro's repositories.

      – R..
      6 hours ago














    10












    10








    10







    sudo apt remove or uninstalling an application normally from the Software Center will just uninstall the regular package files and leave configuration behind, so that reinstalling the package later will usually pretty much restore your previous state of the application.



    sudo apt purge or sudo apt remove --purge instead will uninstall a package and additionally remove residual system-wide configuration files afterwards. You can also use those to purge the residual configuration of a previously only removed package.



    The package manager will never delete user data or user configuration files though, which is created during the run-time of the application. Those files are not tracked and the user is responsible themselves to clean them out of their home directory, if they don't want to keep them. (Theoretically a package could contain a post-remove script that checks common user data locations for files it might have created, but that should normally not be the case)






    share|improve this answer













    sudo apt remove or uninstalling an application normally from the Software Center will just uninstall the regular package files and leave configuration behind, so that reinstalling the package later will usually pretty much restore your previous state of the application.



    sudo apt purge or sudo apt remove --purge instead will uninstall a package and additionally remove residual system-wide configuration files afterwards. You can also use those to purge the residual configuration of a previously only removed package.



    The package manager will never delete user data or user configuration files though, which is created during the run-time of the application. Those files are not tracked and the user is responsible themselves to clean them out of their home directory, if they don't want to keep them. (Theoretically a package could contain a post-remove script that checks common user data locations for files it might have created, but that should normally not be the case)







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered 23 hours ago









    Byte CommanderByte Commander

    65k27178298




    65k27178298








    • 3





      A package whose removal script deletes things from or even examines users' home dirs is malware and should not be accepted into any repectable distro's repositories.

      – R..
      6 hours ago














    • 3





      A package whose removal script deletes things from or even examines users' home dirs is malware and should not be accepted into any repectable distro's repositories.

      – R..
      6 hours ago








    3




    3





    A package whose removal script deletes things from or even examines users' home dirs is malware and should not be accepted into any repectable distro's repositories.

    – R..
    6 hours ago





    A package whose removal script deletes things from or even examines users' home dirs is malware and should not be accepted into any repectable distro's repositories.

    – R..
    6 hours ago











    0














    In Windows, you always have some trace of the invasive program in the registry that must be removed manually. Anything related to AV, populates the Win architecture heavily… Plus, Windows requires a third party app to fully remove a program. Ccleaner and Revo are among them.



    In Ubuntu, apt purge removes almost everything, if not all. A manual search in Synaptic Package Manager shows the entire deletion process. It can be double checked by running apt purge or inversely, by searching it in Synaptic.



    You must be prudent and precise using that app, it’s a hot place to be.






    share|improve this answer








    New contributor




    Mikemecanic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.

























      0














      In Windows, you always have some trace of the invasive program in the registry that must be removed manually. Anything related to AV, populates the Win architecture heavily… Plus, Windows requires a third party app to fully remove a program. Ccleaner and Revo are among them.



      In Ubuntu, apt purge removes almost everything, if not all. A manual search in Synaptic Package Manager shows the entire deletion process. It can be double checked by running apt purge or inversely, by searching it in Synaptic.



      You must be prudent and precise using that app, it’s a hot place to be.






      share|improve this answer








      New contributor




      Mikemecanic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.























        0












        0








        0







        In Windows, you always have some trace of the invasive program in the registry that must be removed manually. Anything related to AV, populates the Win architecture heavily… Plus, Windows requires a third party app to fully remove a program. Ccleaner and Revo are among them.



        In Ubuntu, apt purge removes almost everything, if not all. A manual search in Synaptic Package Manager shows the entire deletion process. It can be double checked by running apt purge or inversely, by searching it in Synaptic.



        You must be prudent and precise using that app, it’s a hot place to be.






        share|improve this answer








        New contributor




        Mikemecanic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.










        In Windows, you always have some trace of the invasive program in the registry that must be removed manually. Anything related to AV, populates the Win architecture heavily… Plus, Windows requires a third party app to fully remove a program. Ccleaner and Revo are among them.



        In Ubuntu, apt purge removes almost everything, if not all. A manual search in Synaptic Package Manager shows the entire deletion process. It can be double checked by running apt purge or inversely, by searching it in Synaptic.



        You must be prudent and precise using that app, it’s a hot place to be.







        share|improve this answer








        New contributor




        Mikemecanic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        share|improve this answer



        share|improve this answer






        New contributor




        Mikemecanic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered 22 hours ago









        MikemecanicMikemecanic

        294




        294




        New contributor




        Mikemecanic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        Mikemecanic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        Mikemecanic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1120246%2fwhy-dont-programs-completely-uninstall-remove-all-their-files-when-i-remove-t%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Callistus I

            Tabula Rosettana

            How to label and detect the document text images