I am trying to find where someone has installed a software package, and I can not. Is there a good way of finding that other than running a grep on the entire file system?
I am running Ubuntu and looking for an installation of a triple-store database called Virtuoso.
Thanks, Alex
Or, if the binary is called something else:
Or, if the software isnt located in the usual places (/bin, /sbin, /usr/bin etc)
Was it installed using
apt
ordpkg
? If so you can usedpkg -l |grep <name>
to find the packages anddpkg -L <package name>
to find where it installed the files.If it was not installed using the package management system, look at
/opt
and/usr/local
first, and if it fails, usefind / -iname <what you are searching>
to search the whole filesystem.If you installed with apt or dkpg
will show you the location of all the files installed.
Don't forget the
locate(1)
command. If this is set up,updatedb
runs nightly on your machine and creates an index of all files. Then for examplewill give you every file which contains
myprogram
(in the filename or path) on the system.If you know the exact name of the binary, you can use a regexp match to find it, for example:
will list all files which end in
myprogram
on your system.Two caveats:
locate
can be a good way to get a sense of where on the system a particular file might be, before you drill down to looking for the package.All the other answers given handle package installations. Without root level access there are few places a user can install software:
Normal places to install packages not using the package manager include:
Commands to find writable directories (for user somebody in group users).
The user may belong to multiple groups. Each group will need to be checked.