[ start | index | login ]

RHEL 4

Created by yves. Last edited by retep, 216 days ago. Viewed 1,663 times. #3
[diff] [history] [edit] [rdf]
labels
attachments

RHEL - RimuHosting Enterprise Linux 4 notes

Switch To Centos4

RimuHosting build the RPMs for the RimuHosting EL4 distro (based on RedHat's source RPMs).

Due to the number of pending packages and the amount of testing that would be required to ensure there were no 'breakages' it has been a while since we have pushed up new RPMs to the RHEL4 repository.

We recommend that RHEL4 users switch to the Centos4 apt repository instead. This repository is compatible with ours. A number of users have made this change and it is working well. Minimal (just the extra/new/updated) package updates will be required after an apt-get update; apt-get upgrade.

To change the sources.list:

{
# add a centos4 line (includes centosplus with PHP 5.1 and MySQL 5
if ! grep -qai '^rpm "http://mirror.centos.org/centos"' /etc/apt/sources.list ; then
echo 'rpm "http://mirror.centos.org/centos" /4/apt/i386 os updates addons centosplus' >> /etc/apt/sources.list
fi
# comment out the RHEL4 lines
sed --in-place 's%^rpm http://apt.rimuhosting.com rhel/4%#rpm http://apt.rimuhosting.com rhel/4%' /etc/apt/sources.list
sed --in-place 's%^rpm-src http://apt.rimuhosting.com rhel/4%#rpm-src http://apt.rimuhosting.com rhel/4%' /etc/apt/sources.list
apt-get update
apt-get dist-upgrade
}

strange " error: Macro % has illegal name (%define) " messages

If you are getting this message ("error: Macro % has illegal name (%define)") when using RPM or apt-get/apt-cache, this is what we've done to fix it. Any of these would do:

  1. Comment out the last line in /etc/rpm/macros.solve, or;
  2. Remove the package rpmdb-rhel would also do the job, if you don't need that.
Note: the last line in /etc/rpm/macros.solve is:

%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}.rpm       /home/buildcentos/CENTOS/en/4.0/i386/CentOS/RPMS/%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm}
请以发表评论身份登录
Powered by snipsnap.org Found a mistake in a howto? Let us know via an email to p.blikibugs at rimuhosting com.