CentOS offers a bit of a different take on installing and updating packages. First off, the default package manager has migrated from YUM to DNF. The command structure for each is quite similar, so instead of running a command like:sudo yum install httpd
You’d issue the command:sudo dnf install httpd
For more information on DNF, see How to use the DNF package manager.
So in order to trigger this behaviour, someone with root-level privileges needs to edit a Unit file and enter a “invalid username”, in this case one that starts with a digit.
But you need root level privileges to edit the file in the first place and to reload systemd to make use of that Unit file.
It’s an obvious bug (at least on RHEL/CentOS 7), since a valid username does not get accepted by systemd so it triggers unexpected behaviour by launching services as root.
However, it isn’t as bad as it sounds and does not grant any username with a digit immediate root access.
Exceptionally reliable and easy to use, SME Server can be installed and configured in less than 20 minutes – yet it’s powered by a secure and open Linux platform that’s fully upgradeable and customizable. Simply install it on any standard PC and in minutes you’ll have a robust Linux-based LAMP server capable of fully replacing those expensive Windows server licenses and providing a full range of services – including e-mail, firewall, file and print-sharing, web hosting, remote access and more.
We firmly believe that Oracle Linux is the best Linux distribution on the market today. It’s reliable, it’s affordable, it’s 100% compatible with your existing applications, and it gives you access to some of the most cutting-edge innovations in Linux like Ksplice and dtrace.
Hmmm. We’ll see about that.
- How is this better than CentOS?
Well, for one, you’re getting the exact same bits our paying enterprise customers are getting. So that means a few things. Importantly, it means virtually no delay between when Red Hat releases a kernel and when Oracle Linux does:
You’re on a 64-bit system, and don’t have 32-bit library support installed.
sudo yum install glibc.i686
Also had to yum install gtk2.i686. Here’s the solution from the above link for Debian based systems:
Updated: Since it seems this answer is still getting viewed, and occassionally up-voted, note that the solution above works on CentOS, Fedora, or Red Hat derived operating systems; on a Debian or Ubuntu derived system, however, one would instead use
sudo apt-get install ia32-lib
For some reason, after all these years of using 64 bit OSs, and still having an active, running FC10 installation, this was the first time I had no choice but to run a 32-bit app on a 64 bit machine.
The above solution worked
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
This link works as of this date. There are a lot of bad links floating around out there in the google.
If you have downloaded, created, or rebuilt RPM packages locally (as explained in TipsAndTricks/YumAndRPM “Get set up for rebuilding packages while not being root”) you may want a place to put them so they are accessible from all the machines on your local net.
This didn’t work the first time I tried it and now it does. For some reason eth0 and eth1 get switched on the 64bit CentOS 5.7 build which causes routing problems. This can also be solved by fixing the static routes in /etc/rc.local. It bothered me to have these interfaces have different names depending on what OS is running. I think there’s also a way to force this in /etc/udev/ directory by adding a persistent-net rule file. It all works now.
BTW: I also changed /etc/sysconfig/hwconf but don’t think that had any effect.
I’m finding that more and more software developers are being quite inconsiderate and are making code that requires PHP 5.3. Since many server-based and long-term support distros are still on PHP 5.2, this can make things difficult quickly.
Here here! I needed to do the following on CentOS 5.7:
#sudo yum erase php
#sudo yum erase php-commons
#sudo yum install php53
#sudo yum install php53-mysql
The default RPMforge repository does not replace any CentOS base packages. In the past it used to, but those packages are now in a separate repository (rpmforge-extras) which is disabled by default.
You can find a complete listing of the RPMforge package packages at http://packages.sw.be/
The rpm at this link allows for yum to see the additional packages — such as alpine and perhaps others that were missing in the base.