Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
server-administration:installing-iotop-centos5 [2010-12-21 19:39:20]
garrett.plasky Approved
server-administration:installing-iotop-centos5 [2011-04-28 18:39:20]
garrett.plasky Approved
Line 7: Line 7:
 This program also requires a newer Python version than CentOS 5 supplies (2.6 vs 2.4), so we'll grab those from the EPEL repo and install them: This program also requires a newer Python version than CentOS 5 supplies (2.6 vs 2.4), so we'll grab those from the EPEL repo and install them:
  
-<code console>wget http://download.fedora.redhat.com/pub/epel/5/i386/python26-2.6.5-5.el5.i386.rpm \ +<sxh bash>wget http://download.fedora.redhat.com/pub/epel/5/i386/python26-2.6.5-5.el5.i386.rpm \ 
 ftp://download.fedora.redhat.com/pub/epel/5/i386/python26-libs-2.6.5-5.el5.i386.rpm \  ftp://download.fedora.redhat.com/pub/epel/5/i386/python26-libs-2.6.5-5.el5.i386.rpm \ 
 ftp://download.fedora.redhat.com/pub/epel/5/i386/libffi-3.0.5-1.el5.i386.rpm ftp://download.fedora.redhat.com/pub/epel/5/i386/libffi-3.0.5-1.el5.i386.rpm
-rpm -Uvh python26-2.6.5-5.el5.i386.rpm python26-libs-2.6.5-5.el5.i386.rpm libffi-3.0.5-1.el5.i386.rpm</code>+rpm -Uvh python26-2.6.5-5.el5.i386.rpm python26-libs-2.6.5-5.el5.i386.rpm libffi-3.0.5-1.el5.i386.rpm</sxh>
  
 If these installed successfully, you are now ready to install IOTop. If these installed successfully, you are now ready to install IOTop.
Line 18: Line 18:
 Let's install the RPM: Let's install the RPM:
  
-<code console>rpm -ivh http://guichaz.free.fr/iotop/files/iotop-0.4.1-1.noarch.rpm</code>+<sxh bash>rpm -ivh http://guichaz.free.fr/iotop/files/iotop-0.4.1-1.noarch.rpm</sxh>
  
 Now, CentOS will typically keep Python2.4 as your default Python, so we can tell IOTop to use Python 2.6 in two ways. One would be to relink the <c>/usr/local/bin/python</c> binary to <c>/usr/local/bin/python2.6</c>, or we can simply change the sha-bang at the beginning of the iotop script to use he 2.6 binary instead. We choose the latter so as to not break compatibility with Python2.4-exclusive scripts. Now, CentOS will typically keep Python2.4 as your default Python, so we can tell IOTop to use Python 2.6 in two ways. One would be to relink the <c>/usr/local/bin/python</c> binary to <c>/usr/local/bin/python2.6</c>, or we can simply change the sha-bang at the beginning of the iotop script to use he 2.6 binary instead. We choose the latter so as to not break compatibility with Python2.4-exclusive scripts.