Archive for January, 2011

CentOS/Redhat YUM repositories

23 January 2011 21:05

There’s a bunch of stuff that you can’t always find in the standard CentOS/Redhat repositories. The main repositories I’ve used are EPEL, IUS, REMI and in a specific case Cloudera’s. I used the Cloudera one for flume, but, it’s a quick way to get it installed and the various Hadoop odd’s and end’s. The IUS one is good for MySQL 5.1 and Percona builds, also Git 1.7. The EPEL repo has stuff like Redis and also other newer versions.

If you don’t want to use one you can alias commands to use repos, so, for instance if you have a CentOS build with all the above install you’d get output from yum repolist something like this:

addons        CentOS-5 - Addons
base          CentOS-5 - Base
cloudera-cdh3 Cloudera's Distribution for Hadoop, Version 3
epel          Extra Packages for Enterprise Linux 5 - i386
extras        CentOS-5 - Extras
ius           IUS Community Packages for Enterprise Linux 5 - i38 enabled
updates       CentOS-5 - Updates

If you want to install/search from a specific repo you can either disable them all in the /etc/yum.repos.d/*.repo files and then enable them when you run yum, or, you can leave them all enabled and disable them one by one. Something like this:

alias yum-ius='yum --disablerepo=addons,base,epel,extras,updates,cloudera-cdh3'
alias yum-cloudera='yum --disablerepo=addons,base,epel,extras,updates,ius'
alias yum-epel='yum --disablerepo=addons,base,extras,updates,ius,cloudera-cdh3'

Filed: Technology // Tagged: , , , // 1 Comment

VirtualBox & CentOS

23 January 2011 20:56

If you’ve installed CentOS 5.x using Oracle (Sun) VirtualBox then you’ll have probably had fun getting the guest additions to work. After doing this a few times, each time forgetting which commands I need I’m going to blog it if for nothing but refence!

sudo yum -y install gcc kernel-devel kernel-headers

After you’ve rebooted you should be good to go, again. If you don’t have the right kernel it will moan about OpenGL support, but, you don’t need it.

Filed: Technology // Tagged: , , // No Comments

 
Twitter   •   About   •   Contact
©2017 Ian Winter. All Rights Reserved.   •   Powered by WordPress   •   Hosted at Memset