installing yum CentOS 6
Hello, what rpms need to install yum on CentOS 6?
Dec 14, 2011, 03:19 PM
You can just use "vzup2date -z" then select the Centos 6 (or the 64-bit version).
Note that you should press F2 after selecting it in order to customise what gets downloaded. By default it will add Plesk 10 and various other things you may now want.
Dec 16, 2011, 08:30 AM
i'm talking about VPS, but not hardware node. How to install yum on VPS with CentOS 6?
Dec 17, 2011, 05:28 PM
Well, you can get the RPM from a Centos mirror. Wget it or otherwise copy it, then rpm -Ivh packagename.rpm
It has some dependancies -- Python/python-libs, I think? It should warn you about them when you try to install the yum rpm, and you'll then be able to get the appropriate packages and then rpm -Ivh one.rpm two.rpm three.rpm all in one go.
However, it would be far easier for you to request that your VPS provider installs it for you. Are they refusing to do so?
Dec 18, 2011, 05:48 AM
i mean what pakages i need to install yum? something like this: http://wiki.openvz.org/Install_yum
Dec 18, 2011, 09:41 AM
Well, basically you do exactly as I explaned:
(NOTE: This is from 64-bit repo. SHould be OK for 32bit as it says "noarch" but best to check)
rpm -Uvh yum-3.2.29-17.el6.centos.noarch.rpm
At this point you will get a lot of errors about dependencies (I hope!)
As long as you go then make a note of what it wants and wget all those packages from the same place (for the exact versions of each package, go to http://mirror.centos.org/centos/6/os/x86_64/Packages and see. Copy the url and wget it)
Then rpm -Uvh all-the-packages-separated-by-spaces-except-for-"yum-*"
then, finally, rpm -Uvh yum-*.rpm
Or at least something along the lines of the above. I might have missed something out, and more importantly, if rpm -Uvh does not tell you what dependancies are missing, then all this is useless - sorry.
But seriously - why not contact your host? A one-line command will install everything for you. If they refuse then you are with the wrong host and need to move to a provider more suited to your needs.
Dec 21, 2011, 07:31 PM
Originally Posted by hostingblogerh
I've tested this on a 64 bit container but it should work on 32 bit as well. You should be able to just copy and paste to the command line. There are two separate commands because there is a stupid circular reference between yum and yum-plugin-fastestmirror/yum-metadata-parser which means that they have to be installed with the "--nodeps" switch. I have also used the generic "6" path (/centos/6/os/) which means that it definitely works on CentOS 6.2. If you try to use it on an earlier version you may get file not found errors. To correct these you will need to change the "6" to your specific version ("6.0" or "6.1") and the correct filename for the package.
rpm -Uvh --nodeps http://mirror.ihug.co.nz/centos/6/os/$(uname -i)/Packages/yum-metadata-parser-1.1.2-16.el6.$(uname -i).rpm \
rpm -Uvh http://mirror.ihug.co.nz/centos/6/os/$(uname -i)/Packages/gpgme-1.1.8-3.el6.$(uname -i).rpm \
http://mirror.ihug.co.nz/centos/6/os/$(uname -i)/Packages/pygpgme-0.1-18.20090824bzr68.el6.$(uname -i).rpm \
http://mirror.ihug.co.nz/centos/6/os/$(uname -i)/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm \
http://mirror.ihug.co.nz/centos/6/os/$(uname -i)/Packages/python-urlgrabber-3.9.1-8.el6.noarch.rpm \
http://mirror.ihug.co.nz/centos/6/os/$(uname -i)/Packages/python-pycurl-7.19.0-8.el6.$(uname -i).rpm \
http://mirror.ihug.co.nz/centos/6/os/$(uname -i)/Packages/rpm-python-4.8.0-19.el6.$(uname -i).rpm \
If you get any errors that you can't solve, post them here and I'll try to help.
Jan 12, 2012, 09:48 AM
I used the list of files to create a single command as shown below:
for file in \
do rpm -Uvh http://mirror.centos.org/centos-5/5.0/os/i386/CentOS/$file;
The nice thing about doing it this way is that if you decided to use a local/faster mirror you only need to change the base site in one place (ie changing http://mirror.centos.org/centos-5/ in the above to your mirror's location of the CentOS files).
After installing yum you then need to run:
yum -y update
viagra in india