How do I install lvextend on CentOS?

Tom asked:

lvextend did not come installed on my CentOS image, how do I install it?

# lvextend
-bash: lvextend: command not found

My answer:


You can easily locate a package that contains a program yourself. Try:

yum whatprovides */lvextend

You’ll then be told which package contains the file:

lvm2-2.02.111-2.el6_6.1.x86_64 : Userland logical volume management tools
Repo        : updates
Matched from:
Filename    : /sbin/lvextend

And then you can install it:

yum install lvm2

View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.