I want to update my emacs on CentOS 5.5 to 23 but I can't find any rpms or yum repos that have it?
3 Answers
I spent quite a bit of time trying to build emacs on RHEL5.7, to no avail. Then, back to the google, and I found a repo with emacs23 RPMs for CentOS/RHEL 5.x.
http://puias.princeton.edu/data/puias/unsupported/5.7/x86_64/
To use it, use the bundled emacs21 to create a text file in /etc/yum.repos.d/puias-unsupported.repo
.
It should have these contents:
[puias-unsupported]
name=PUIAS Unsupported $releasever
baseurl=http://puias.princeton.edu/data/puias/unsupported/5/$basearch/
enabled=0
gpgcheck=0
Then, use it like this:
sudo yum --disablerepo="*" --enablerepo=puias-unsupported install emacs23
The RPMs are:
If you install it this way, it will be placed into /usr/emacs23/
. It does not replace the existing emacs21.
There is also a nox version of emacs23 in that repo. And a bunch of other stuff.
Additionally, to make it work correctly and prevent warnings, I did the following:
cd /usr/share/emacs/
ln -s /usr/emacs23/share/emacs/23.2
mkdir 23.2/leim
mkdir -p /usr/libexec/emacs/23.2/x86_64-redhat-linux-gnu
You could grab the source RPMS from a recent Fedora (or RHEL6) release and then rebuild them yourself.
- 41,276
- 13
- 117
- 170
-
grab them from where? I can't find them anywhere I have been searching Google for the last hour with no luck. – Jun 23 '11 at 17:49
-
From a Fedora mirror. Try searching for `fedora mirrors`. This will get you to a source for all Fedora packages, such as http://mirror.seas.harvard.edu/fedora/linux/releases/15/Fedora/source/SRPMS/. – larsks Jun 23 '11 at 17:57
The latest version of Emacs on RHEL5 is 21. Essentially, RHEL/CentOS is aimed at the enterprise server market, which is far more concerned with stability than bleeding edge functionality.
See this other post for a bit more explanation.
--Christopher Karel
- 6,442
- 1
- 26
- 34
-
2I know all this, I am looking for a 3rd party repository that has an up to date `emacs` rpm that I can point `yum` at ... – Jun 23 '11 at 19:55
-
I'd personally avoid that sort of thing. Utilizing third party repositories can easily get Yum into dependency loops, making upgrades extremely difficult. I'd recommend just compiling from source. – Christopher Karel Jun 23 '11 at 20:00