Installing Microsoft Corefonts on CentOS 5
This is a thing I always have to google when I need to install Microsoft’s fonts in my CentOS installs so I thought I’d post a short dirty note here to remind me how to do it.
First of all we need some tools to build ourselves the RPM for msttcorefonts, so fire up your terminal and
[root@localhost ~]$ yum install cabextract rpm-build
When finished run the following as root
[root@localhost build]$ wget http://corefonts.sourceforge.net/msttcorefonts-2.0-1.spec
[root@localhost build]$ rpmbuild -ba msttcorefonts-2.0-1.spec
[root@localhost build]$ rpm -ivh /usr/src/redhat/RPMS/noarch/msttcorefonts-2.0-1.noarch.rpm
[root@localhost build]$ /sbin/service xfs reload
[root@localhost build]$ rpmbuild -ba msttcorefonts-2.0-1.spec
[root@localhost build]$ rpm -ivh /usr/src/redhat/RPMS/noarch/msttcorefonts-2.0-1.noarch.rpm
[root@localhost build]$ /sbin/service xfs reload
That’s it. You should now have Microsoft’s standard fonts installed and ready to go.
Related posts:
- Getting wireless network working on CentOS 5 and Thinkpad T42 I pulled an old IBM Thinkpad T42 to use...
- From installation to Active Directory client with CentOS 4.2 – Part two This is the second part of an article I started...


Comments
Thanks, your instructions saved me some time!
That’s what they are here for
Saving me and hopefully someone else some time.
This is a thing I’ve found myself googling for over and over again so documenting it on my own site really saves me the time to.
Thanks for your help with this, I seem to be having trouble
I get this error after inserting ‘rpmbuild -ba msttcorefonts-2.0-1.spec’
error: Failed build dependencies:
cabextract is needed by msttcorefonts-2.0-1.noarch
Any ideas?
Thanks again
Did you install cabextract? I don’t think it’s in the normal yum database. So install RPM Forge repository. Here’s how:
http://dag.wieers.com/rpm/FAQ.php#B1
After that run yum install cabextract again.
Thankyou so much for the addition, I am getting much better with linux but it helps to have a little push in the right direction.
Thanks again for the excellent instructions
It takes some time getting used to. But don’t give up. Eventually the world of *NIX will unfold. It just takes some time and a lot of google use
Thanks a lot for sharing your knowledge! It saved a lot of trouble and works fine with CentOS 5.5 too.
Kind regards from Germany
Michael
Thanks for the comment. Good to know it still works on CentOS 5.5.