CentOS and Corefonts

The ms-corefonts are fonts done by Microsoft – which aren’t included with CentOS by default – just like many other useful packages. If you want to install them, you can either fetch an RPM file from someone else or just do the stunts on your own. It’s pretty easy as you just need cabextract, rpm-build and a spec file. But let’s start with installing cabextract and rpm-build first:

# yum install cabextract rpm-build

If those tools are available already, we fetch the spec-file which we use that with rpmbuild:

# wget http://corefonts.sourceforge.net/msttcorefonts-2.0-1.spec
# rpmbuild -ba msttcorefonts-2.0-1.spec

The result of that command is an RPM file which can be installed just the way you used to – just use yum or rpm:

# rpm -ivh /usr/src/redhat/RPMS/noarch/msttcorefonts-2.0-1.noarch.rpm

If you are running the XFS (X Font Server), it is recommended to restart it now.

# /sbin/service xfs reload

And that’s all folks – you just did your own corefonts package and installed it.

Author:

Leave a Reply

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail. You can also subscribe without commenting.