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:

ADVERTISEMENTS

Install chm viewer

Use apt-get or yum command to install chm viewer:
# apt-get install gnochm
OR
# 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

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallCentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNCentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
23 comments… add one
  • Deepak Mar 23, 2006 @ 2:58

    If you have KDE installed Open the file with Konqueror and naviagate from within.

  • asdf Jul 3, 2007 @ 4:52

    Or you could just use xchm

    $sudo apt-get install xchm

  • nidhi Nov 29, 2007 @ 12:23

    i used konquerer it worked fine thanks

  • sun Mar 9, 2008 @ 22:19

    i installed kchmviewer and it works fine but i prefer konqueror …i tried to open .chm from within the konqueror but it opens it with kchmviewer … i tried right click and open with other application=konqueror ..still it forces it to open with kchviewer …. i actually like the konqueror fonts… please some one ..help..

  • s Apr 30, 2008 @ 23:47

    Currently gnochm doesn’t allow you to do in-page search and change fonts. xchm is better.

  • prabu May 19, 2008 @ 4:21

    Really Good . Excellent

  • Abhishek May 21, 2008 @ 14:17

    Thanks!

  • himadri Jun 18, 2008 @ 9:22

    Thanks for the help /. Konquerer works .. so does kchmviewer …

  • Irudayaraj Aug 2, 2008 @ 15:36

    it very much useful.

    thank you.

  • Mad Big Dave Oct 8, 2008 @ 17:32

    and where are the repositories for the kchmviewer? I ran the update commands and it didn’t find the install packages.

  • Pankaj Apr 9, 2009 @ 3:59

    thanx ….

  • Ziegfried May 11, 2009 @ 13:30

    Thanks a lot! You saved my day!

  • WC Jul 7, 2009 @ 22:27

    Thanks!

  • alpha.scot Jul 11, 2009 @ 5:30

    THANK YOU VERY MUCH

  • macca Sep 6, 2009 @ 8:57

    I installed Gnochm. The layout is excellent unlike xCHM where the main content is squished to the right of the panel. Unfortunately Gnochm crashes & closes after viewing about 10 pages, or sometimes when choosing a Chapter from the left plane.
    Any solutions?

    • Sunny Sep 22, 2010 @ 11:07

      Take the code, debug it and fix it. :-)

  • shashi Sep 25, 2010 @ 3:48

    thanx
    The xchm one worked……..

  • Govindarajan Oct 31, 2010 @ 4:09

    gnochm crashes due to segmentation fault everytime. So i Uninstalled it. You can use chmsee or others mentioned above.

  • SENGO HASSAN Dec 14, 2010 @ 18:59

    Thanks you save my status

  • magnus Jan 7, 2011 @ 3:23

    thanks u very much…

  • Landis Jan 26, 2012 @ 23:08

    does not work. could be that ubuntu 11.10 wont us it.
    thanks though.
    Landis.

  • Landis Jan 26, 2012 @ 23:10

    under KDE (openSuSE), I use and love okular!
    Landis

  • David May 25, 2013 @ 15:58

    Am using kchmviewer and it works fine.

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.