Finding your Debian and Ubuntu install version

To find your Debian and Ubuntu install version:

Show Plain Text
Text code
  1. Debian, type "cat /etc/debian_version"
  2. Ubuntu, type "cat /etc/issue"
  3. RedHat, type "cat /etc/redhat-release"

To find the Kernel version:

Show Plain Text
Text code
  1. type, "uname -a" (prints all kernel information)
  2. 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 Text
Text code
  1. apt-get install linux-headers-$(uname -r)

To find what software package version's have been installed:

Show Plain Text
Text code
  1. type, "dpkg -l | grep <package_name>"

For example to find what glib version you have installed:

Show Plain Text
Text code
  1. type, "dpkg -l | grep libc6"
Filed under: Linux  Tags: Debian, Ubuntu

4 Responses to “Finding your Debian and Ubuntu install version”

Thanks mate I seem to forget the difference between these two at times. # Debian, type "cat /etc/debian_version" # Ubuntu, type "cat /etc/issue"

Thx. Very useful stuff, especcially when you install stuff...

Simple yet useful. Thank you : ).

You can use : lsb_release -a Source : Find Debian or Ubuntu current version

Sorry, comments have been closed for this post.
(default) 11 queries took 6 ms
NrQueryErrorAffectedNum. rowsTook (ms)
1DESCRIBE `posts`17171
2DESCRIBE `comments`11111
3DESCRIBE `tags`221
4DESCRIBE `categories`221
5DESCRIBE `posts_tags`221
6DESCRIBE `categories_posts`220
7SELECT `Post`.`id`, `Post`.`url`, `Post`.`title`, `Post`.`icon`, `Post`.`metadesc`, `Post`.`metakeys`, `Post`.`categories`, `Post`.`tease`, `Post`.`body`, `Post`.`private_body`, `Post`.`created`, `Post`.`modified`, `Post`.`status`, `Post`.`allow_comments`, `Post`.`tags`, `Post`.`hitcount`, `Post`.`hitcount_rss` FROM `posts` AS `Post` WHERE `Post`.`url` = 'finding-your-debian-and-ubuntu-install-version' LIMIT 1110
8SELECT `Comment`.`id`, `Comment`.`post_id`, `Comment`.`body`, `Comment`.`author`, `Comment`.`url`, `Comment`.`email`, `Comment`.`ip`, `Comment`.`status`, `Comment`.`junk_score`, `Comment`.`created`, `Comment`.`modified` FROM `comments` AS `Comment` WHERE `Comment`.`status` = 2 AND `Comment`.`post_id` = (18) 440
9SELECT `Tag`.`id`, `Tag`.`tag`, `PostsTag`.`post_id`, `PostsTag`.`tag_id` FROM `tags` AS `Tag` JOIN `posts_tags` AS `PostsTag` ON (`PostsTag`.`post_id` = 18 AND `PostsTag`.`tag_id` = `Tag`.`id`) 220
10SELECT `Category`.`id`, `Category`.`category`, `CategoriesPost`.`post_id`, `CategoriesPost`.`category_id` FROM `categories` AS `Category` JOIN `categories_posts` AS `CategoriesPost` ON (`CategoriesPost`.`post_id` = 18 AND `CategoriesPost`.`category_id` = `Category`.`id`) 111
11UPDATE `posts` AS `Post` SET `Post`.`hitcount` = Post.hitcount + 1 WHERE `Post`.`id` = 1810