Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux 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.

  2. #2
    Linux User
    Join Date
    Jun 2007
    Posts
    458
    What do you mean my validating?
    "When you have nothing to say, say nothing."

  3. #3
    Linux User
    Join Date
    Mar 2008
    Posts
    287
    That's where one compares name, date, size, type, and content between 2 objects

  4. #4
    Linux 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •