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

I'm trying to add the atomic repo to CentOS. I run:

sudo wget -q -O - | sh

All seems to go fine.

However, when I look in /etc/yum.repos.d it's not there. And when I try to install anything with yum, it doesn't appear to be looking in the atomic repo.


It's CentOS 5

share|improve this question
I'm tempted to reconstruct the installation manually from the script. Which CentOS release? – Scott Pack Jan 23 '11 at 13:27
@packs Do you mean you would be tempted to not use the atomic repo and get the source and compile and install it by hand? – John Simon Ritchie Jan 23 '11 at 13:46

My guess is, it isn't working because you have sudo in the wrong spot.

You currently have:

sudo wget -q -O - | sh

Which applies the sudo command to the wget command, but by the time it is piped into the sh, it's lost its root privileges. If you move the sudo over, it should work.

So, give this one a try:

wget -q -O - | sudo sh
share|improve this answer
That did it! Scott Pack did a great job in pulling out the needed line, and Valorin figured out why it didn't work. Awesome. – ryanF May 8 '14 at 19:26

After reviewing that install script, I noticed a few issues that will prevent it from working. There are a few times where it tries to download files that result in an HTTP 404 error, including the actual the repository RPM! Based on the install script, you should only need to execute the following commands to successfully install the repository.

This will first install the GPG key Shinn uses to sign the packages, second download and install the files necessary to use the atomic repository, and third install the additional plesk repository. Replace $ARCH in step 2 with the output of the command uname -i, and step 3 is only necessary if you also want plesk.

  1. rpm --import
  2. rpm -Uvh$ARCH/RPMS/
  3. wget -q -O /etc/yum.repos.d/plesk.repo
share|improve this answer
That gave me: error: skipping… - transfer failed - Unknown or unexpected error – John Simon Ritchie Jan 23 '11 at 15:44
Have you tried downloading it first, then installing it? – Scott Pack Jan 23 '11 at 15:50

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.