The lsof package is useful to LiSt Open Files for a given running application or process.
This package is known to build and work properly using an LFS 12.4 platform.
Download (HTTP): https://github.com/lsof-org/lsof/releases/download/4.99.5/lsof-4.99.5.tar.gz
Download MD5 sum: 00f5844ae3520b5699c249dd424500c2
Download size: 1.1 MB
Estimated disk space required: 13 MB (with tests)
Estimated build time: 0.6 SBU (with tests)
Nmap-7.98 (with a symbolic link nc pointing to ncat in /usr/bin
; used in tests)
To run the tests, the following option should be enabled in the kernel configuration:
General setup ---> [*] POSIX Message Queues [POSIX_MQUEUE]
Install lsof by running the following commands:
./configure --prefix=/usr --disable-static && make
The tests should be run as the root
user. They require that the POSIX message queues are enabled in the
kernel, and that Nmap-7.98 be installed with a symbolic link
/usr/bin/nc
pointing to ncat.
make check
Now, as the root
user:
make install
--disable-static
: This
switch prevents installation of static versions of the libraries.