Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is /sbin/zonename ? Where do I get it for CentOS?

I am trying to use puppet (system administration), and it can't find this command.

share|improve this question
up vote 3 down vote accepted

You can use:

yum whatprovides '*bin/zonename'

but our Puppet installs run just fine without it. Are you using the puppet package from EPEL? You'll also want facter from EPEL.

Assuming CentOS 5.x (cat /etc/redhat-release) and an x86_64 architecture (uname -a), after deleting any version of Puppet you installed outside of RPM, just do:

rpm -Uvh
yum install puppet facter

And that should sort you out nicely. If it doesn't, can you give us the exact error message you're getting, and where and when you're seeing it?

share|improve this answer
I got it worked out. I was originally building everything from source. EPEL was definitely much easier :) – Joshua Enfield Jun 26 '10 at 4:19

If I'm not mistaken, zonename is used on Solaris to identify the current local zone.

I don't believe that there is a CentOs equivalent, because CentOS does not use Solaris zones.

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.