3

Possible Duplicate:
What is the equivalent to the Windows “Program Files” folder?

I have VLC media player as a .deb file which I installed successfully. However I do not know where the installation file is located. On windows all files are placed in Program Files, so I am a bit confused. My main question is: can I change the file location or can I know the location where the file has been installed?

JK Patel
  • 155

3 Answers3

12

From a terminal window, type whereis vlc and it will tell you where it's installed.

On my machine, I get this:

vlc: /usr/bin/vlc /etc/vlc /usr/lib/vlc /usr/bin/X11/vlc /usr/share/vlc /usr/share/man/man1/vlc.1.gz

Most programs are stored in /usr/bin and I'm sure there's a way to move them but I've never had a reason to.

6

It's best not to mess with where the package manager puts files ; it relies on knowing where it put things in order to be able to upgrade.

Linux distributions typically use some variant of the Filesystem Hierarchy Standard, which defines where most files should be put. Most .deb packages in the archives adhere to this standard.

On the one hand, this makes installing packaged software easier - it doesn't ask you where you want to install it. On the other hand, it can make it more mysterious. The typical .deb package will place files in multiple folders.

Despite not controlling where I install packages (for the most part ; I install packages which are manual downloads into /opt), it's not something I concern myself with on a daily basis. I just trust that things are going to be installed in the right place, and so far, I seem to be right :-)

If you want to see exactly what files a package has installed and where, Synaptic (the advanced GUI package manager, not installed by default) will show you, after you've installed the package. Or browse the package on http://packages.ubuntu.com , or open the package in the Archive Manager.

Adrian
  • 5,256
2

The preferable method of installing software in Ubuntu is the Software Center, or the command apt-get. VLC is available through those methods.

See this question: How do I install software using the Ubuntu Software Center?

The Ubuntu Community Documentation has an article about this.

Also this article mentions some points of confusion for users coming from a Windows background.