I'm new to Ubuntu and would like to know where I can find the location of program files for programs installed from the Ubuntu Software Center or the Terminal.
I'm new to Ubuntu and would like to know where I can find the location of program files for programs installed from the Ubuntu Software Center or the Terminal.
Also, if you just need to know where the executable is you can run
whereis executable
orwhich executable
For instance:on the command line, you can use
dpkg --listfiles packagename
. For instance,dpkg --listfiles firefox
. If you want to see what files a package contains without installing it, then you can install apt-file and use that.But you really shouldn't mess with it. There is usually no reason to manually interfere with the contents of a package. All configuration files for normal applications are placed in the users home directory. You don't have savegames in
C:\Programfiles\Appname\savegames
, for instance. They would be placed in/home/username/.local/share/appname/savegames
. That way, if you move your home directory to another machine, it keeps all configurations and user data.http://packages.ubuntu.com/natty/i386/banshee/filelist
or
dpkg -L banshee
If you do not find the command with
whereis
orwhich
then maybe it is an alias. Tryand check if the command is in the list.
Use the
synaptic-package-manager
:Assuming that we'd like to locate the files of the autotools-dev package, under 'Quick filter' enter autotools to locate it. The autotools-dev package appears automatically. Select it by clicking on it and then press 'Properties'. In the appearing dialog select the tab 'Installed Files'.
The builtin Bash command, called
command
is also available:Examples of usage:
When the searched command is an alias:
Type following command:
Coming to Linux from Windows, there are some different terminology, which sometimes seems strange.
The first one is the word package that we find on Linux. We install packages on Linux, which may sound different but makes total sense:
One example for you, i was looking for installing a package called bluez-tools in Lubuntu 22.04. In your terminal:
After installing it, the question is, how to use this bluez-tools stuff i have installed. Then we have the answer to your question, we have to look for what and where we have just installed the package in our system.
The following command gives you some information about the package you just installed.
And this other command shows what and where things were installed
It can be seen the package contains 5 programs, some docs, and five manual pages.