I'm totally new to Ubuntu/Linux, using Ubuntu Server at the moment. Just trying to figure out something basic.
How can you tell where you are installing a program. For example I just installed Sphinx search engine by placing the tarball that I downloaded from their site to my:
/home/sphinx
directory. I created the sphinx directory to place that tarball in. Then I ran these commands:
tar xvzf sphinx-0.9.8.1.tar.gz
cd sphinx-0.9.8.1/
./configure --with-mysql-includes=/usr/include/mysql --with-mysql-libs=/usr/lib/mysql
and then these:
make
sudo make install
Now I have a lot of files sitting in the directory where I ran these commands. Is this my Spynx installation or did it install somewhere else?
In windows if you run an installer (.exe file) anywhere the program will still install in your C:\Program Files directory. Does something similar apply to linux where all programs are installed in a central place, or can you install programs anywhere on the system.
Questions
I would prefer to keep all my installed programs in one place so what is the right place for this in terms of best practice. In other words what is the Linux equivalent of C:\Program Files?
And how does one always install at this location, is it just a matter of placing the tarball and running the install commands from this location?
What about if I use sudo apt-get to install a package. How can I point to this location to tell apt-get to always install there?