Ceci est une ancienne révision du document !
Install all e-smith/smeserver packages on EL6
These are just my notes to get a EL6 system booting with all the e-smith and smeserver packages installed. As soon as I get it to boot, I'll put this info into contribs.org wiki.
- Start from a minimal el6 installation (I just installed a few utilities like htop, screen, rsync, vim, openssh-clients etc…)
- Disable graphical boot, it will be easier to see what's going on
sed -i -e 's/rhgb quiet//g' /boot/grub/menu.lst
- Disable SELinux:
sed -i -e 's/SELINUX=.*/SELINUX=disabled/g' /etc/sysconfig/selinux
- Remove selinux-policy-targeted and authconfig, they conflict with some e-smith/smeserver packages
yum remove selinux-policy-targeted authconfig
- Enable the EPEL repo
rpm -Uvh http://fr2.rpmfind.net/linux/epel/6/i386/epel-release-6-8.noarch.rpm
- Enable the ATrpms repo
rpm -Uvh http://dl.atrpms.net/el6-x86_64/atrpms/stable/atrpms-repo-6-6.el6.x86_64.rpm
- Enable RPMForge
rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
- Configure SME repository (EL5 version for now)
cat<<'EOF' >> /etc/yum.repos.d/sme.repo [smeaddons] enabled=1 mirrorlist=http://mirrorlist.contribs.org/mirrorlist/smeaddons-8 name=SME Server - addons gpgcheck=1 enablegroups=1 [smecontribs] enabled=0 mirrorlist=http://mirrorlist.contribs.org/mirrorlist/smecontribs-8 name=SME Server - contribs gpgcheck=1 enablegroups=1 [smedev] enabled=0 mirrorlist=http://mirrorlist.contribs.org/mirrorlist/smedev-8 name=SME Server - dev gpgcheck=1 enablegroups=1 [smeextras] enabled=1 mirrorlist=http://mirrorlist.contribs.org/mirrorlist/smeextras-8 name=SME Server - extras gpgcheck=1 enablegroups=1 [smeos] enabled=1 mirrorlist=http://mirrorlist.contribs.org/mirrorlist/smeos-8 name=SME Server - os gpgcheck=1 enablegroups=1 [smetest] enabled=0 mirrorlist=http://mirrorlist.contribs.org/mirrorlist/smetest-8 name=SME Server - test gpgcheck=1 enablegroups=1 [smeupdates] enabled=1 mirrorlist=http://mirrorlist.contribs.org/mirrorlist/smeupdates-8 name=SME Server - updates gpgcheck=1 enablegroups=1 [smeupdates-testing] enabled=0 mirrorlist=http://mirrorlist.contribs.org/mirrorlist/smeupdates-testing-8 name=SME Server - updates testing gpgcheck=1 enablegroups=1 EOF
- install yum-plugin-priorities
yum install yum-plugin-priorities
- Configure yum priorities
- Set the base, updates and extras repo in /etc/yum.repos.d/CentOS-Base.repo a high priority (respectivly 50, 40, 50)
[...] [base] name=CentOS-$releasever - Base mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 priority=50 #released updates [updates] name=CentOS-$releasever - Updates mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 priority=40 #additional packages that may be useful [extras] name=CentOS-$releasever - Extras mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras #baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 priority=50 [...]
- Set Epel to a priority of 60 in /etc/yum.repos.d/epel.repo
[epel] name=Extra Packages for Enterprise Linux 6 - $basearch #baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch failovermethod=priority enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 priority=60
- Set RPMForge to a priority of 65 in /etc/yum.repos.d/rpmforge.repo
[rpmforge] name = RHEL $releasever - RPMforge.net - dag baseurl = http://apt.sw.be/redhat/el6/en/$basearch/rpmforge mirrorlist = http://apt.sw.be/redhat/el6/en/mirrors-rpmforge #mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge enabled = 1 protect = 0 gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag gpgcheck = 1 priority=65
- Set atrpms to priority of 70 in /etc/yum.repos.d/atrpms.repo
[atrpms] name=Red Hat Enterprise Linux $releasever - $basearch - ATrpms failovermethod=priority baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/stable enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-atrpms priority=70