Does “apt autoremove --purge ” also remove configuration files for the related packages that are removed?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite












I assume the below command does the following (please correct me if I am wrong):




I want to remove the package nginx and the related configuration
files. I also want to remove any related package dependencies (that
are not used by any other package on the system)




sudo apt autoremove --purge nginx



Question



Does it also remove the configuration files for the related package(s) (dependencies) that are removed from the system?







share|improve this question




















  • Hi, I think your question has already been answered. See How can you completely remove a package?
    – Emily
    May 15 at 22:54






  • 1




    Possible duplicate of How can you completely remove a package?
    – Emily
    May 15 at 22:54














up vote
1
down vote

favorite












I assume the below command does the following (please correct me if I am wrong):




I want to remove the package nginx and the related configuration
files. I also want to remove any related package dependencies (that
are not used by any other package on the system)




sudo apt autoremove --purge nginx



Question



Does it also remove the configuration files for the related package(s) (dependencies) that are removed from the system?







share|improve this question




















  • Hi, I think your question has already been answered. See How can you completely remove a package?
    – Emily
    May 15 at 22:54






  • 1




    Possible duplicate of How can you completely remove a package?
    – Emily
    May 15 at 22:54












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I assume the below command does the following (please correct me if I am wrong):




I want to remove the package nginx and the related configuration
files. I also want to remove any related package dependencies (that
are not used by any other package on the system)




sudo apt autoremove --purge nginx



Question



Does it also remove the configuration files for the related package(s) (dependencies) that are removed from the system?







share|improve this question












I assume the below command does the following (please correct me if I am wrong):




I want to remove the package nginx and the related configuration
files. I also want to remove any related package dependencies (that
are not used by any other package on the system)




sudo apt autoremove --purge nginx



Question



Does it also remove the configuration files for the related package(s) (dependencies) that are removed from the system?









share|improve this question











share|improve this question




share|improve this question










asked May 15 at 20:34









dohjon

104




104











  • Hi, I think your question has already been answered. See How can you completely remove a package?
    – Emily
    May 15 at 22:54






  • 1




    Possible duplicate of How can you completely remove a package?
    – Emily
    May 15 at 22:54
















  • Hi, I think your question has already been answered. See How can you completely remove a package?
    – Emily
    May 15 at 22:54






  • 1




    Possible duplicate of How can you completely remove a package?
    – Emily
    May 15 at 22:54















Hi, I think your question has already been answered. See How can you completely remove a package?
– Emily
May 15 at 22:54




Hi, I think your question has already been answered. See How can you completely remove a package?
– Emily
May 15 at 22:54




1




1




Possible duplicate of How can you completely remove a package?
– Emily
May 15 at 22:54




Possible duplicate of How can you completely remove a package?
– Emily
May 15 at 22:54










1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










Short Answer : Yes, but not every file related to package is deleted as purge doesn't remove data stored by packages inside the home directory or other special directories.



By Standard defination of Purge:-




Purge - Purge is identical to remove except that packages are removed and purged. Purge meaning that any configuration files are
deleted too.







share|improve this answer




















    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%2f1036697%2fdoes-apt-autoremove-purge-package-also-remove-configuration-files-for-the%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
    1
    down vote



    accepted










    Short Answer : Yes, but not every file related to package is deleted as purge doesn't remove data stored by packages inside the home directory or other special directories.



    By Standard defination of Purge:-




    Purge - Purge is identical to remove except that packages are removed and purged. Purge meaning that any configuration files are
    deleted too.







    share|improve this answer
























      up vote
      1
      down vote



      accepted










      Short Answer : Yes, but not every file related to package is deleted as purge doesn't remove data stored by packages inside the home directory or other special directories.



      By Standard defination of Purge:-




      Purge - Purge is identical to remove except that packages are removed and purged. Purge meaning that any configuration files are
      deleted too.







      share|improve this answer






















        up vote
        1
        down vote



        accepted







        up vote
        1
        down vote



        accepted






        Short Answer : Yes, but not every file related to package is deleted as purge doesn't remove data stored by packages inside the home directory or other special directories.



        By Standard defination of Purge:-




        Purge - Purge is identical to remove except that packages are removed and purged. Purge meaning that any configuration files are
        deleted too.







        share|improve this answer












        Short Answer : Yes, but not every file related to package is deleted as purge doesn't remove data stored by packages inside the home directory or other special directories.



        By Standard defination of Purge:-




        Purge - Purge is identical to remove except that packages are removed and purged. Purge meaning that any configuration files are
        deleted too.








        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered May 15 at 20:40









        Vishesh Gautam

        36011




        36011






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1036697%2fdoes-apt-autoremove-purge-package-also-remove-configuration-files-for-the%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            Which professions warranted travel in Medieval times?

            How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

            Trouble downloading packages list due to a “Hash sum mismatch” error