Results 1 to 2 of 2

Thread: Validating file hashes?

  1. #1

    Default Validating file hashes?

    Is there a decent approach to verify sha1 hashes of all files in all installed packages? We have a suspected machine here at the office... The scenario is this: Two machines with openSUSE Leap 42.1 using the same repositories in zypper end up having different sha1 hashes of openssl .so files.. We noticed that when openssl stopped working properly on one machine, while everything seemed identical. scp of the problematic .so files solved all problems.. but force reinstall through zypper did not. Being a bit paranoid, I'd like to run a verification script to check all binaries and .so files.. but I can't seem to find a way to do this.. any suggestions?

  2. #2
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,487
    Blog Entries
    2

    Default Re: Validating file hashes?

    Instead of doing what you propose which could take a very long time,
    You might try the following which checks every file and re-installs the file if it didn't come from the OSS (and possibly any other repos you have configured).
    Of course, if you're trying to make multiple machines consistent, you have to start with making sure the repository list for every machine is identical
    Code:
    zypper lr -d
    Then run the following which besides bringing your machine up to date will re-install files that might have come from somewhere other than your currently configured repos
    Code:
    zypper dup --replacefiles
    After running the above on <both> your machines,
    You can then check the file hashes again.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

Posting Permissions

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