Results 1 to 4 of 4
Want to have a way to validate files. I can display from CD (once I know which package the file is in) so should be able to do diff and ...
- 07-08-2008 #1Linux User
- Join Date
- Mar 2008
- Posts
- 287
Validating files
Want to have a way to validate files. I can display from CD (once I know which package the file is in) so should be able to do diff and was able to do ls -l on an ascii file.
Is there a way to do this from the packages in /var/log/packages?
Can I extract the file from CD by doing:
gunsip <packageName.tar.gz> | tar -tvf <packageName.tar> | ls -l filename
How the Heck do I get a copy of it up to diff or compare though?
Need some clues here.
- 07-08-2008 #2Linux User
- Join Date
- Jun 2007
- Posts
- 458
What do you mean my validating?
"When you have nothing to say, say nothing."
- 07-09-2008 #3Linux User
- Join Date
- Mar 2008
- Posts
- 287
That's where one compares name, date, size, type, and content between 2 objects
- 07-19-2008 #4Linux User
- Join Date
- Mar 2008
- Posts
- 287
MY SOLUTION
I wrote a bash scriipt which scans directories selected for regular executable files, then performs an md5sums on them and save that and the files path/name to a database.
Later the data base can be run to verify/validate from that database to currently existing files of the same name. Individual files can be processed or the entire data base. It is quite fast and reports its progress too, as well as, whether a file is missing or not where it belongs.


Reply With Quote