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?
14.04 18.04 aws
add a comment |
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?
14.04 18.04 aws
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
add a comment |
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?
14.04 18.04 aws
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
14.04 18.04 aws
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
add a comment |
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
add a comment |
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.
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
add a comment |
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*
)
- Users and groups (
- 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.
add a comment |
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.
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
add a comment |
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.
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
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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*
)
- Users and groups (
- 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.
add a comment |
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*
)
- Users and groups (
- 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.
add a comment |
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*
)
- Users and groups (
- 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.
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*
)
- Users and groups (
- 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.
answered Nov 27 at 6:01
Akif
1112
1112
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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