6.52. Psmisc-21.5

The Psmisc package contains programs for displaying information on processes.

Approximate build time: 0.1 SBU

Required disk space: 2.2 MB

Psmisc installation depends on: Bash, Binutils, Coreutils, Diffutils, GCC, Gettext, Glibc, Grep, Make, Ncurses, and Sed

6.52.1. Installation of Psmisc

Prepare Psmisc for compilation:

./configure --prefix=/usr --exec-prefix=""

The meaning of the configure option:

--exec-prefix=""

This causes the binaries to be installed in /bin instead of /usr/bin. Because the Psmisc programs are often used in bootscripts, they should be available when the /usr file system is not mounted.

Compile the package:

make

Install the package:

make install

There is no reason for the pstree and pstree.x11 programs to reside in /bin. Therefore, move them to /usr/bin. Also, there is no need for pstree.x11 to exist as a separate program. Make it a symbolic link to pstree instead:

mv /bin/pstree* /usr/bin
ln -sf pstree /usr/bin/pstree.x11

By default, Psmisc's pidof program is not installed. This usually is not a problem because it is installed later in the Sysvinit package, which provides a better pidof program. If Sysvinit will not be used for a particular system, complete the installation of Psmisc by creating the following symlink:

ln -s killall /bin/pidof

6.52.2. Contents of Psmisc

Installed programs: fuser, killall, pstree, and pstree.x11 (link to pstree)

Short Descriptions

fuser

Reports the Process IDs (PIDs) of processes that use the given files or file systems

killall

Kills processes by name; it sends a signal to all processes running any of the given commands

pstree

Displays running processes as a tree

pstree.x11

Same as pstree, except that it waits for confirmation before exiting