1

Trying to install pkill on amazonlinux 2 doesn't work:

yum install -y pkill
...
No package pkill available.
Error: Nothing to do

and my favourite search engine hasn't helped, what am I missing?

1 Answer 1

1

pkill is part of the procps package - this may be obvious to many but was the vital missing link which I didn't realise.

So this does the trick:

yum install -y procps

After this pkill, pgrep, ps, watch and more are now available on amazonlinux.

3
  • 2
    "pkill is part of the procps package", right, as yum provides pkill would state. Commented Jul 18, 2023 at 14:14
  • That's good to know! Being new to yum this was not something I was aware of. Hopefully it helps someone else as un-knowledgeable as me in future :) Commented Jul 19, 2023 at 19:41
  • 1
    This also works for Amazon Linux 2023 although dnf is preferred to yum. dnf install -y procps Commented Nov 14, 2024 at 15:48

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.