Debian - debsums

介紹

 

透過 /var/lib/dpkg/info/*.md5sums 內的 file
確認有沒有人動過 package 內的 file

 

 

參數

-a, --all
-c, --changed            Report changed file

Example

debsums apache2-mpm-itk

/usr/sbin/apache2                                                             OK
/usr/share/doc/apache2-mpm-itk/changelog.Debian.gz                            OK
/usr/share/doc/apache2-mpm-itk/copyright                                      OK
/usr/share/doc/apache2-mpm-itk/README.gz                                      OK

debsums foo.deb

 

debsums -ca

/etc/apache2/mods-available/deflate.conf
/etc/apache2/mods-available/status.conf
/etc/apache2/sites-available/default
/etc/apache2/apache2.conf
/etc/apache2/ports.conf
debsums: no md5sums for backup2l
/etc/issue.net
debsums: no md5sums for binutils
debsums: no md5sums for bzip2
/etc/courier/authdaemonrc
/etc/courier/imapd
/etc/courier/pop3d
debsums: no md5sums for ed
/etc/fail2ban/jail.conf
....................................

 


md5sums file

/etc/apt/apt.conf.d/90debsums

DPkg::Post-Invoke {
    "if [ -x /usr/bin/debsums ]; then
        /usr/bin/debsums --generate=nocheck -sp /var/cache/apt/archives;
    fi";
};

missing

Generate  MD5  sums  from the deb for packages which don’t  provide one.

keep  

Write the extracted/generated sums to /var/lib/dpkg/info/package.md5sums

nocheck

Implies keep, are not checked against the installed packag

 



debsums_init

debsums_init 會為沒有 md5sums files 的 packages 建立回它

 

 

 

Creative Commons license icon Creative Commons license icon