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

That’s it. You should now have Microsoft’s standard fonts installed and ready to go.

Related posts:

  1. Getting wireless network working on CentOS 5 and Thinkpad T42 I pulled an old IBM Thinkpad T42 to use...
  2. From installation to Active Directory client with CentOS 4.2 – Part two This is the second part of an article I started...

Comments

    Mark posted the comment on March 15th, 2009
  1. Thanks, your instructions saved me some time!

  2. Mats Hellman posted the comment on March 16th, 2009
  3. 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.

  4. Daniel Marshall posted the comment on March 25th, 2009
  5. 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

  6. Mats Hellman posted the comment on March 25th, 2009
  7. 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.

  8. Daniel Marshall posted the comment on March 25th, 2009
  9. 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

  10. Mats Hellman posted the comment on March 25th, 2009
  11. 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 ;)

  12. Michael posted the comment on May 20th, 2010
  13. 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

  14. Mats Hellman posted the comment on May 21st, 2010
  15. Thanks for the comment. Good to know it still works on CentOS 5.5.