Finding your Debian and Ubuntu install version
To find your Debian and Ubuntu install version:
Show Plain TextText code
- Debian, type "cat /etc/debian_version"
- Ubuntu, type "cat /etc/issue"
- RedHat, type "cat /etc/redhat-release"
To find the Kernel version:
Show Plain TextText code
- type, "uname -a" (prints all kernel information)
- type, "uname -r" (prints your kernel release)
The "uname -r" command can be useful for installing things like the kernel headers, for example :-
Show Plain TextText code
- apt-get install linux-headers-$(uname -r)
To find what software package version's have been installed:
Show Plain TextText code
- type, "dpkg -l | grep <package_name>"
For example to find what glib version you have installed:
Show Plain TextText code
- type, "dpkg -l | grep libc6"
Thanks mate I seem to forget the difference between these two at times. # Debian, type "cat /etc/debian_version" # Ubuntu, type "cat /etc/issue"