Centos5

From Rivalug Wiki

Jump to: navigation, search

Centos 5.2 on x86_64

Contents

References

Release Notes

3rd Party Repositories

install yum-protectbase

Repositories listed in order of reliability:

epel

Install Repository:

rpm --import http://download.fedora.redhat.com/pub/epel/RPM-GPG-KEY-EPEL
wget http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-3.noarch.rpm
rpm -K epel-release-5-3.noarch.rpm
rpm -Uvh epel-release-5-3.noarch.rpm

Modify /etc/yum.repos.d/epel.repofile to include mirror.vcu.edu

[epel]
name=Extra Packages for Enterprise Linux 5 - $basearch
baseurl=http://download.fedora.redhat.com/pub/epel/5/$basearch
       http://mirror.vcu.edu/pub/linux/epel/5/$basearch
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
protect=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL

rpmfusion

install epel and enable epel-testing at this time.

rpm -ivh http://download1.rpmfusion.org/nonfree/el/updates/testing/5/i386/rpmfusion-nonfree-release-5-0.1.noarch.rpm

rpmforge

Installing repository:

rpm --import rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
wget http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
rpm -K rpmforge-release-0.3.6-1.el5.rf.*.rpm
rpm -Uvh rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm

atrpms

/etc/yum.repos.d/atrpms.repo

[atrpms-stable]
name=RedHat Enterprise $releasever - $basearch - ATrpms
baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/stable
       http://www.mirrorservice.org/sites/download.atrpms.net/el$releasever-$basearch/atrpms/stable/
       http://mirrors.ircam.fr/pub/atrpms/el$releasever-$basearch/atrpms/stable/
       http://ftp-stud.fht-esslingen.de/atrpms/dl.atrpms.net/el$releasever-$basearch/atrpms/stable/
       http://fedora.univ-nantes.fr/dl.atrpms.net/el$releasever-$basearch/atrpms/stable/
       http://wftp.tu-chemnitz.de/pub/linux/ATrpms/el$releasever-$basearch/atrpms/stable/
failovermethod=priority
enabled=1
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
gpgcheck=1
protect=0

karan

appears to have no major packages for rhel5 at this time

cd /etc/yum.repos.d/
wget http://centos.karan.org/kbsingh-CentOS-Extras.repo
wget http://centos.karan.org/kbsingh-CentOS-Misc.repo
add "protect=0" to these repositories
rpm --import http://centos.karan.org/RPM-GPG-KEY-karan.org.txt

Also read: http://www.karan.org/blog/

jpackage

http://www.jpackage.org/

future

RPMrepo: http://rpmrepo.org/ - merger of rpmforge and atrpms

RPMfusion: http://rpmfusion.org/ - merger of livna, freshrpms, and dribble

Sensors & Controls

lm_sensors

http://lm-sensors.org/

Installation

yum install lm_sensors

Configuration

/usr/sbin/sensors-detect
/etc/sensors.conf
/etc/sysconfig/lm_sensors
/etc/modprobe.conf


Problems & Upgrade

hddtemp

Installation

yum install hddtemp

Configuration /etc/sysconfig/hddtemp

HDDTEMP_OPTIONS="-l 127.0.0.1 --syslog=900 /dev/sda /dev/sdb /dev/sdc"

This logs the drive temperaturs for 3 drives every 15 mins ( i.e. 900 seconds )

cpuspeed

http://www.carlthompson.net/Software/CPUSpeed

Requires a laptop cpu that is capable of scaling.

A CPU capable of scaling its frequency and / or voltage. Many modern mobile CPUs found in laptop computers can do this, including the Mobile AMD Athlon 64, Mobile AMD Athlon XP-M, the Intel Pentium 4M, the Intel Centrino, Mobile AMD Sempron, Mobile AMD Turion 64 and the Transmeta Crusoe. (Note that some laptop computers may actually have desktop CPUs which are not capable of scaling. These CPUs cannot be used and should be avoided when purchasing a new laptop computer.)

rpm

showing package architecture

from http://fedoraproject.org/wiki/Docs/Beats#RPM_multiarch_support_on_64-bit_platforms_.28x86_64.2C_ppc64.29

RPM multiarch support on 64-bit platforms (x86_64, ppc64)

RPM supports parallel installation of multiple architectures of the same package. 
A default package listing such as rpm -qa might appear to include duplicate packages, 
since the architecture is not displayed. Instead, use the repoquery command, 
part of the yum-utils package, which displays architecture by default. 
To install yum-utils, run the following command:

 su -c 'yum install yum-utils'

To list all packages with their architecture using rpm, run the following command:

 rpm -qa --queryformat "%{name}-%{version}-%{release}.%{arch}\n"

You can add this to /etc/rpm/macros (for a system wide setting) 
or ~/.rpmmacros (for a per-user setting). 
It changes the default query to list the architecture:

 %_query_all_fmt         %%{name}-%%{version}-%%{release}.%%{arch}
Personal tools