How to figure out configuration difference of two separate Ubuntu/Linux installed systems?











up vote
0
down vote

favorite












I have a custom made an old AMI (Amazon Machine Image) which is based on ubuntu-trusty-14.04-amd64-server public AMI. I plan to replace this custom image with the latest public image of ubuntu-bionic-18.04-amd64-server.



I plan to setup plain systems based on those images, compare and list the main configuration difference and inspect one by one for the necessary changes.



Is there any recommended way to quickly figure out the difference of two separate Ubuntu/Linux systems, such as to compare certain configuration directories and the files?










share|improve this question






















  • I would myself always add files I changes to a backup along with the personal data. When you need to restore a system you want all those changes also to be restored. If you did the same all you need is a filelist of your backup.
    – Rinzwind
    Nov 7 at 12:47















up vote
0
down vote

favorite












I have a custom made an old AMI (Amazon Machine Image) which is based on ubuntu-trusty-14.04-amd64-server public AMI. I plan to replace this custom image with the latest public image of ubuntu-bionic-18.04-amd64-server.



I plan to setup plain systems based on those images, compare and list the main configuration difference and inspect one by one for the necessary changes.



Is there any recommended way to quickly figure out the difference of two separate Ubuntu/Linux systems, such as to compare certain configuration directories and the files?










share|improve this question






















  • I would myself always add files I changes to a backup along with the personal data. When you need to restore a system you want all those changes also to be restored. If you did the same all you need is a filelist of your backup.
    – Rinzwind
    Nov 7 at 12:47













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have a custom made an old AMI (Amazon Machine Image) which is based on ubuntu-trusty-14.04-amd64-server public AMI. I plan to replace this custom image with the latest public image of ubuntu-bionic-18.04-amd64-server.



I plan to setup plain systems based on those images, compare and list the main configuration difference and inspect one by one for the necessary changes.



Is there any recommended way to quickly figure out the difference of two separate Ubuntu/Linux systems, such as to compare certain configuration directories and the files?










share|improve this question













I have a custom made an old AMI (Amazon Machine Image) which is based on ubuntu-trusty-14.04-amd64-server public AMI. I plan to replace this custom image with the latest public image of ubuntu-bionic-18.04-amd64-server.



I plan to setup plain systems based on those images, compare and list the main configuration difference and inspect one by one for the necessary changes.



Is there any recommended way to quickly figure out the difference of two separate Ubuntu/Linux systems, such as to compare certain configuration directories and the files?







14.04 18.04 aws






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 7 at 12:39









Akif

1112




1112












  • I would myself always add files I changes to a backup along with the personal data. When you need to restore a system you want all those changes also to be restored. If you did the same all you need is a filelist of your backup.
    – Rinzwind
    Nov 7 at 12:47


















  • I would myself always add files I changes to a backup along with the personal data. When you need to restore a system you want all those changes also to be restored. If you did the same all you need is a filelist of your backup.
    – Rinzwind
    Nov 7 at 12:47
















I would myself always add files I changes to a backup along with the personal data. When you need to restore a system you want all those changes also to be restored. If you did the same all you need is a filelist of your backup.
– Rinzwind
Nov 7 at 12:47




I would myself always add files I changes to a backup along with the personal data. When you need to restore a system you want all those changes also to be restored. If you did the same all you need is a filelist of your backup.
– Rinzwind
Nov 7 at 12:47










2 Answers
2






active

oldest

votes

















up vote
1
down vote













if those all are based on ubuntu you can diff the /etc folder and its contents for configs. However, this may not be all. Some software can be downloaded to custom folders (like /usr/share or others) and this may require some further investigation.



You can also start from checking installed software by using:
apt list --installed (ths will also give you specific versions)



for comparing folders you can use meld package, with it's 3-way compare, but you will need to have WindowManager running for this. Other than that, simple diff tool is advised.






share|improve this answer





















  • Thanks for the answer. By the way to compare folders on separate systems need to mount the directories of at least on of those systems.
    – Akif
    Nov 8 at 2:58












  • not really true, and there are threads about this: serverfault.com/questions/59140/how-do-diff-over-ssh but I'd still prefer the network mount like you did and remove it after, so good work!
    – janmyszkier
    Nov 8 at 8:21


















up vote
0
down vote













Here is what I have done:




  • Initialized 2 separate instances, one with custom made Ubuntu AMI and another one with public Ubuntu 14.04 AMI

  • Mounted the root directories of both instances to the local system and compared the difference of overall files and directories, however the diff was too large.

  • Reduced the scope of comparison into certain directories as /etc, /home, /opt and also focused:


    • Users and groups (/etc/group)

    • Mount information (/etc/fstab)

    • Scheduled jobs (/etc/cron*)



  • Compared the list of installed packages. Found large number of package differences because when listing all installed packages it includes main packages and their dependencies.

  • Developed a script to build dependency structure of the installed packages to get the difference of main installed packages.


Above steps missing a lot for an exact comparison but helped me to proceed forward to get the difference of both systems. For further investigation this, this and this might give a better idea.






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: 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%2f1090805%2fhow-to-figure-out-configuration-difference-of-two-separate-ubuntu-linux-installe%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote













    if those all are based on ubuntu you can diff the /etc folder and its contents for configs. However, this may not be all. Some software can be downloaded to custom folders (like /usr/share or others) and this may require some further investigation.



    You can also start from checking installed software by using:
    apt list --installed (ths will also give you specific versions)



    for comparing folders you can use meld package, with it's 3-way compare, but you will need to have WindowManager running for this. Other than that, simple diff tool is advised.






    share|improve this answer





















    • Thanks for the answer. By the way to compare folders on separate systems need to mount the directories of at least on of those systems.
      – Akif
      Nov 8 at 2:58












    • not really true, and there are threads about this: serverfault.com/questions/59140/how-do-diff-over-ssh but I'd still prefer the network mount like you did and remove it after, so good work!
      – janmyszkier
      Nov 8 at 8:21















    up vote
    1
    down vote













    if those all are based on ubuntu you can diff the /etc folder and its contents for configs. However, this may not be all. Some software can be downloaded to custom folders (like /usr/share or others) and this may require some further investigation.



    You can also start from checking installed software by using:
    apt list --installed (ths will also give you specific versions)



    for comparing folders you can use meld package, with it's 3-way compare, but you will need to have WindowManager running for this. Other than that, simple diff tool is advised.






    share|improve this answer





















    • Thanks for the answer. By the way to compare folders on separate systems need to mount the directories of at least on of those systems.
      – Akif
      Nov 8 at 2:58












    • not really true, and there are threads about this: serverfault.com/questions/59140/how-do-diff-over-ssh but I'd still prefer the network mount like you did and remove it after, so good work!
      – janmyszkier
      Nov 8 at 8:21













    up vote
    1
    down vote










    up vote
    1
    down vote









    if those all are based on ubuntu you can diff the /etc folder and its contents for configs. However, this may not be all. Some software can be downloaded to custom folders (like /usr/share or others) and this may require some further investigation.



    You can also start from checking installed software by using:
    apt list --installed (ths will also give you specific versions)



    for comparing folders you can use meld package, with it's 3-way compare, but you will need to have WindowManager running for this. Other than that, simple diff tool is advised.






    share|improve this answer












    if those all are based on ubuntu you can diff the /etc folder and its contents for configs. However, this may not be all. Some software can be downloaded to custom folders (like /usr/share or others) and this may require some further investigation.



    You can also start from checking installed software by using:
    apt list --installed (ths will also give you specific versions)



    for comparing folders you can use meld package, with it's 3-way compare, but you will need to have WindowManager running for this. Other than that, simple diff tool is advised.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Nov 7 at 12:45









    janmyszkier

    50827




    50827












    • Thanks for the answer. By the way to compare folders on separate systems need to mount the directories of at least on of those systems.
      – Akif
      Nov 8 at 2:58












    • not really true, and there are threads about this: serverfault.com/questions/59140/how-do-diff-over-ssh but I'd still prefer the network mount like you did and remove it after, so good work!
      – janmyszkier
      Nov 8 at 8:21


















    • Thanks for the answer. By the way to compare folders on separate systems need to mount the directories of at least on of those systems.
      – Akif
      Nov 8 at 2:58












    • not really true, and there are threads about this: serverfault.com/questions/59140/how-do-diff-over-ssh but I'd still prefer the network mount like you did and remove it after, so good work!
      – janmyszkier
      Nov 8 at 8:21
















    Thanks for the answer. By the way to compare folders on separate systems need to mount the directories of at least on of those systems.
    – Akif
    Nov 8 at 2:58






    Thanks for the answer. By the way to compare folders on separate systems need to mount the directories of at least on of those systems.
    – Akif
    Nov 8 at 2:58














    not really true, and there are threads about this: serverfault.com/questions/59140/how-do-diff-over-ssh but I'd still prefer the network mount like you did and remove it after, so good work!
    – janmyszkier
    Nov 8 at 8:21




    not really true, and there are threads about this: serverfault.com/questions/59140/how-do-diff-over-ssh but I'd still prefer the network mount like you did and remove it after, so good work!
    – janmyszkier
    Nov 8 at 8:21












    up vote
    0
    down vote













    Here is what I have done:




    • Initialized 2 separate instances, one with custom made Ubuntu AMI and another one with public Ubuntu 14.04 AMI

    • Mounted the root directories of both instances to the local system and compared the difference of overall files and directories, however the diff was too large.

    • Reduced the scope of comparison into certain directories as /etc, /home, /opt and also focused:


      • Users and groups (/etc/group)

      • Mount information (/etc/fstab)

      • Scheduled jobs (/etc/cron*)



    • Compared the list of installed packages. Found large number of package differences because when listing all installed packages it includes main packages and their dependencies.

    • Developed a script to build dependency structure of the installed packages to get the difference of main installed packages.


    Above steps missing a lot for an exact comparison but helped me to proceed forward to get the difference of both systems. For further investigation this, this and this might give a better idea.






    share|improve this answer

























      up vote
      0
      down vote













      Here is what I have done:




      • Initialized 2 separate instances, one with custom made Ubuntu AMI and another one with public Ubuntu 14.04 AMI

      • Mounted the root directories of both instances to the local system and compared the difference of overall files and directories, however the diff was too large.

      • Reduced the scope of comparison into certain directories as /etc, /home, /opt and also focused:


        • Users and groups (/etc/group)

        • Mount information (/etc/fstab)

        • Scheduled jobs (/etc/cron*)



      • Compared the list of installed packages. Found large number of package differences because when listing all installed packages it includes main packages and their dependencies.

      • Developed a script to build dependency structure of the installed packages to get the difference of main installed packages.


      Above steps missing a lot for an exact comparison but helped me to proceed forward to get the difference of both systems. For further investigation this, this and this might give a better idea.






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        Here is what I have done:




        • Initialized 2 separate instances, one with custom made Ubuntu AMI and another one with public Ubuntu 14.04 AMI

        • Mounted the root directories of both instances to the local system and compared the difference of overall files and directories, however the diff was too large.

        • Reduced the scope of comparison into certain directories as /etc, /home, /opt and also focused:


          • Users and groups (/etc/group)

          • Mount information (/etc/fstab)

          • Scheduled jobs (/etc/cron*)



        • Compared the list of installed packages. Found large number of package differences because when listing all installed packages it includes main packages and their dependencies.

        • Developed a script to build dependency structure of the installed packages to get the difference of main installed packages.


        Above steps missing a lot for an exact comparison but helped me to proceed forward to get the difference of both systems. For further investigation this, this and this might give a better idea.






        share|improve this answer












        Here is what I have done:




        • Initialized 2 separate instances, one with custom made Ubuntu AMI and another one with public Ubuntu 14.04 AMI

        • Mounted the root directories of both instances to the local system and compared the difference of overall files and directories, however the diff was too large.

        • Reduced the scope of comparison into certain directories as /etc, /home, /opt and also focused:


          • Users and groups (/etc/group)

          • Mount information (/etc/fstab)

          • Scheduled jobs (/etc/cron*)



        • Compared the list of installed packages. Found large number of package differences because when listing all installed packages it includes main packages and their dependencies.

        • Developed a script to build dependency structure of the installed packages to get the difference of main installed packages.


        Above steps missing a lot for an exact comparison but helped me to proceed forward to get the difference of both systems. For further investigation this, this and this might give a better idea.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 27 at 6:01









        Akif

        1112




        1112






























            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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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%2f1090805%2fhow-to-figure-out-configuration-difference-of-two-separate-ubuntu-linux-installe%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

            mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

            How to change which sound is reproduced for terminal bell?

            Can I use Tabulator js library in my java Spring + Thymeleaf project?