Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.
root@host [/]# parted
-bash: parted: command not found

I am using CentOS. Looks like I simply have to yum it first or something. How would I do so?

share|improve this question

2 Answers 2

up vote 3 down vote accepted

If you have a internet connected to you server, it is very easy:

# yum -y install parted
share|improve this answer

when you get this kind of message you can easily find out what packages provides the command using yum:

yum whatprovides "file"
yum install "package"

when you run the install and it complains already installed package you can also perform:

rpm -ql "package" |grep file$
repoquery -l "package" |grep file$

To know what is the path were it is installed. We can always assume that PATH might not include the file. I'm adding the $ at the end of the grep so that it finds everything that ends as file otherwise you will get fileabc instead of file.

share|improve this answer

Your Answer


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.