Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How can I see the version of GRUB that is running in a particular Ubuntu version. A terminal command that can tell me.

share|improve this question

3 Answers 3

up vote 7 down vote accepted

For me the above answer given by @Daniel does not work. I have Ubuntu 14.04 LTS and to check the version of Grub (Grub2) I need to type:

grub-install --version

check grub2 version

share|improve this answer
    
Correct they seemed to have changed it with some newer version. Just like in apt where apt-get update -f won't work anymore and you'll have to use the explicit apt-get update --fix-missing –  Daniel Nov 3 at 15:21

On clean ubuntu installs the grub package itself doesn't seem to be installed. Thus typing 'grub -anyoption' results in an error that says grub is not installed. However you can type for example

grub-install -v

And it will give you the correct version of grub currently installed

enter image description here

The version of the Grub is 1.99-21ubuntu3

EDIT: As others have pointed out the commandline flags have been changed in newer versions. So now instead of typing grub-install -v you'd have to use a capital 'V' or the explicit --version

share|improve this answer
2  
I find it more friendly this way. Also grub-probe -V works. –  Luis Alvarado Feb 25 '12 at 1:14
1  
basicly everything in your /usr/bin folder that starts with 'grub' does the job –  Daniel Feb 25 '12 at 1:22
    
Uppercase -V, not lowercase. –  Sopalajo de Arrierez Nov 3 at 4:43
    
Ahh thanks for the hint! They must have changed it with a newer version..I'll edit it in the post –  Daniel Nov 3 at 15:22

This will roughly do the job:

dpkg -l | grep grub | grep ii

You should note that just to confuse things that the version 1.9x is known as Grub2. I think they number it in a similar way that people would call the 1600-1699, the 17th century.

share|improve this answer
    
I find it weird that there is no command for it. like a grub command that grub -v and done. Thanks again Oli you rock ^^. –  Luis Alvarado Feb 25 '12 at 1:02
    
I think that v1.9 is supposed to be "pre-Grub2" - i.e., an almost ready version. Yet, you'd think that 2.0.x RC# would have been better naming for them... –  Mei Feb 25 '12 at 2:30
    
The thing is--the grub you may be using to boot may not be installed from the Ubuntu system you are currently running. Therefore I prefer the other answer. –  John S Gruber Oct 7 '12 at 17:52

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.