Monday, April 20, 2009

Open / view .chm file under Linux or FreeBSD

Chm file is a Microsoft Compressed HTML Help file in a proprietary format for online help files. Under Linux/FreeBSD or UNIX you can open .chm file using following three different programs which makes it possible to browse native Windows CHM files:

Install chm viewer

Use apt-get or yum command to install chm viewer:

Fedora :

First you have to login as root :
$ su
Password:
# yum search gnochm
Loaded plugins: refresh-packagekit
================ Matched: gnochm ==========
gnochm.noarch : CHM file viewer
python-chm.i386(package name) : Python package for CHM files handling
# yum install -y python-chm.i386(package name)

Ubuntu :

For Gnome :
# apt-get install gnochm
OR for KDE
# apt-get install kchmviewer

Gnome Desktop User

Use gnochm program as follows
$ gnochm file.chm

KDE Desktop User

Use kchmviewer (very nice and highly recommended) program as follows
$ kchmviewer file.chm

Other tool

xchm program is quite outdated but works:
$ xchm file.chm

Source(Ubuntu part) & modifed by me for Fedora

No comments: