1) No program is in /dev. Don't remove anything from /dev, never. /dev is only an abstraction used for the programs to communicate with the hardware with kernel's help.
2) User programs are usually installed in /usr/bin for Slackware, when they are provided by an official Slackware package. Some "unofficial" packages put the programs in /opt (examples which come to mind: libreoffice provided by Alien BOB, picasa).
3) To find where a program is, "which" (for the shell commands) and "whereis" (for the binaries, source and manual pages) are handy. Type "man which" or "man whereis" to know more.
4) To know where Slackware package are installed, just look in /var/log/packages in which all installed Slackware packages are recorded. To easily find a package in it, just type:
Code:
ls /var/log/packages | grep -i "package name"
For instance:
Code:
bash-4.1$ ls /var/log/packages |grep -i g++
gcc-g++-4.5.2-i486-2
bash-4.1$
To see the purpose and content of a package use "pkgtool"
To know from which package come a file (if it come from a Slackware package), you can use:
Code:
grep <file_name> /var/log/packages/*
5) To remove a package, use the "pkgtool" command. The "Remove" sub-command will list all installed packages and allow you to remove it.
6) To install a package not already installed, either use "installpkg /path/to/the/package/to/be/installed" or (easier) "slackpkg install <package>", see "man slackpkg".
For a program not included in slackware go to slackbuilds.org, read "HOWTO" and "FAQ" before proceeding.