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-7.7 platform.
Download (FTP): ftp://sunsite.ualberta.ca/pub/Mirror/lsof/lsof_4.88.tar.bz2
Download MD5 sum: 1b29c10db4aa88afcaeeaabeef6790db
Download size: 764 KB
Estimated disk space required: 9.7 MB
Estimated build time: less than 0.1 SBU
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/lsof
The contents of the lsof tarball include another tarball with the source code, which needs, in turn, to be unpacked. Install lsof by running the following commands:
tar -xf lsof_4.88_src.tar && cd lsof_4.88_src && ./Configure -n linux && make CFGL="-L./lib -ltirpc"
This package does not come with a working test suite.
Now, as the
install -v -m0755 -o root -g root lsof /usr/bin && install -v lsof.8 /usr/share/man/man8
./Configure -n linux: Avoid AFS, customization, and inventory checks, and use target-dialect Linux.
make CFGL="-L./lib -ltirpc": Instruct the libtirpc libraries location to make command.
Last updated on 2015-02-25 14:44:17 -0800