Quote Originally Posted by Aleu
I have two Knoppix distros let say one from August and one from November 14th.
This is what I am doing so far:
1. I run knoppix from the old distro and give the command "dpkg -l > Knoppix_OLD"
2. I repeat this with a new distro "dpkg -l > Knoppix_NEW"
3. Then I run "diff Knoppix_OLD KNOPPIX_NEW and ..."?
I have your script saved as "Knoppix_diferences.pl" in the same directory.
Sould I add "#!/usr/bin/perl" at the very top of your script?
How can I use this script. What should be the correct procedure?
Thanks
Sorry, I wasn't very clear about it! You are getting there but just need a couple more things.
First, you need to make the script I provided executable (chmod +x Knoppix_differences.pl) or else you will need to run it as "perl Knoppix_differences.pl". If you make it executable, you will need to add the #!/usr/bin/perl to the first line of the script. I will assume you make it executable for the remaining instructions.
Then you need to feed the diff between the files into the script. You could do "diff knoppix_old knoppix_new | ./Knoppix_differences.pl" or else you could do "diff knoppix_old knoppix_new > knoppix_differences.txt" and then "./Knoppix_differenes.pl knoppix_differences.txt". Either of these approaches will print out the information to the screen. If you want to save them into a file, just add "> knoppix_diff_results.txt" to the end of the command where you are running the perl script.
I hope this is all clear and makes sense.