I need to check the current version of VLC I have running, however I don't know where it is installed (can't see it in /etc
or /bin
).
If I do vlc
in a terminal then the application starts, but is there a way to do like a pwd vlc
command where it shows me the actual path of where the vlc
app is being called from?
I want to see if the actual file name contains the software version since I can't find the version within the software itself.
I have a statement asking me to explain why this is different from another post. It is different because this is a 2 part question, where I am trying to understand the install package location (which is the same as the other link), however I also wanted to know how to check the VLC version, hence the title (and why this question is different).
Use the command :
Most of the programs (i have used) provide their version by the
--version
option.Also you should check the
man
page of the commands to get details idea about them.EDIT :
There are many ways to check where a binary file is stored,
vlc
in this case :Also other commands that can be found within different SE websites:
But it has to be installed
sudo apt-get install apt-show-versions
then it will output for example:Using
aptitude
:Will output the complete list/tree of packages related to vlc and the installed ones including the package vlc will contain letter "
i
"(meaning installed) before package name.Similar but a bit shortened:
And more programming one:
Will output
2.2.1~trusty
You can check version of an installed Ubuntu package by running
It will give you versions of vlc-related packages.
To get path to vlc binary run
But in Ubuntu it is very rarely needed to know where the binaries are located, if they are installed using dpkg or apt.
simply start this command
Sample output
From
man apt-cache
And to check the installed files:
Sample output
open the terminal and type the following command
type vlc
command also includes the word 'type'This gives you from where it was called .
For vlc version do
vlc --version