LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (http://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Where do apps get installed to when doing a sudo apt-get install ? (http://www.linuxquestions.org/questions/ubuntu-63/where-do-apps-get-installed-to-when-doing-a-sudo-apt-get-install-650072/)

anjanesh 06-18-2008 04:22 AM

Where do apps get installed to when doing a sudo apt-get install ?
 
Hi

I did a
sudo apt-get install mysql-community-server-5.0
and MySQL5 got installed.
But how do I find out where it got installed to ?

Thanks

davidshere 06-18-2008 10:00 AM

Quote:

Originally Posted by anjanesh (Post 3188154)
Hi

I did a
sudo apt-get install mysql-community-server-5.0
and MySQL5 got installed.
But how do I find out where it got installed to ?

Thanks

The files get installed to many places on the computer. Are you looking to start the server? Access it?

When I run the same command, I get this:

Code:

david@nighthawk:~$ sudo apt-get install mysql-community-server-5.0
[sudo] password for david:
Reading package lists... Done
Building dependency tree     
Reading state information... Done
Package mysql-community-server-5.0 is a virtual package provided by:
  mysql-server-5.0 5.0.51a-3ubuntu5.1
You should explicitly select one to install.
E: Package mysql-community-server-5.0 has no installation candidate


anjanesh 06-18-2008 10:14 AM

I did get that msg first - but later it somehow installed. I verified it by accessing mysql.

But coming to the installation location question - Im thinking like in Windows - it would normally reside in C:\Program Files\Program Name.

Is there no linux equivalent of Windows Program Files ?

Takla 06-18-2008 10:37 AM

Quote:

Originally Posted by anjanesh (Post 3188154)
Hi

I did a
sudo apt-get install mysql-community-server-5.0
and MySQL5 got installed.
But how do I find out where it got installed to ?

Thanks

Code:

dpkg -L packagename
will show you all the files installed by that package.

Quote:

Originally Posted by anjanesh (Post 3188154)
But coming to the installation location question - Im thinking like in Windows - it would normally reside in C:\Program Files\Program Name.

Is there no linux equivalent of Windows Program Files ?

Actually it isn't the case that a program in Windows is only installed to C:\Program Files. Typically there will also be multiple directories and files (some hidden by default) created in C:\Documents and Settings\. There also may be dlls and uninstallers installed into C:\Windows\system32. and don't forget the changes made to the Windows registry.

clementis 06-18-2008 02:44 PM

try the command: whereis [command]

for more info on that command: man whereis

many executables are installed to /usr/bin/


clementis

fragos 06-18-2008 04:16 PM

Quote:

Originally Posted by clementis (Post 3188502)
try the command: whereis [command]

for more info on that command: man whereis

many executables are installed to /usr/bin/


clementis

which [command] will shorten that list to where the executable is.

echo $PATH will give a list of folders where the system looks for executables.


All times are GMT -5. The time now is 06:44 AM.