Which package contains the shell utility flock

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 5

Issue

  • Which package has the shell utility flock(1)that can execute any given command while holding an exclusive file lock.

Resolution

  • The flock utility is part of the util-linux package

     [root@rhns ~]# rpm -qf `which flock`
      util-linux-2.13-0.52.el5_4.1
    

Root Cause

Diagnostic Steps

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.