There might be even more. The `chkrootkit` skript mentions these commands (on the right side the respective debian package is mentioned):

Section below:
## workaround for some Bourne shell implementations
unalias login > /dev/null 2>&1                → login
unalias ls > /dev/null 2>&1           → coreutils
unalias netstat > /dev/null 2>&1      → net-tools
unalias ss > /dev/null 2>&1           → iproute2
unalias ps > /dev/null 2>&1           → procps
unalias dirname > /dev/null 2>&1      → coreutils

Section below
cmdlist="
awk                                     → awk
cut                                     → coreutils
echo                                    → coreutils
grep                                    → grep
find                                    → findutils
head                                    → coreutils
id                                      → coreutils
ls                                      → coreutils
ps                                      → procps
sed                                     → sed
strings                                 → binutils
uname                                   → coreutils
"

There might be more, e.g. to send email.

Currently (chkrootkit_0.57-2+b5) chkrootkit only depends on 'libc6'. 'net-tools' and 'procps' are under the 'Recomends'.

I have not checked, which of these are definitely needed, but I guess at least those from the 'cmdlist' are good candidates to be included in the 'Depends' section!

On 13/06/2025 10:32 pm, Richard Lewis wrote:
On Tue, 10 Jun 2025 at 11:33, Stephan Helma <s.p.he...@gmx.net> wrote:

I did a default installation of 'chkrootkit' without installing the recommended 
packages.

    * What was the outcome of this action?
I received an email with:
Today's run produced the following output:
         --- [ BEGIN: cat /var/log/chkrootkit/log.today ] ---
         chkrootkit: can't find `strings'.
         --- [ END: cat /var/log/chkrootkit/log.today ] ---

    * What outcome did you expect instead?
I would expect, that 'chkrootkit' would run without error. For this the package 
'binutils' should be a dependency of 'chkrootkit'.

Thanks - that does look to be the case. And also procps for the same reason

Reply via email to