|
|||||||||||
|
Re: debian how-to
From: Daniel Burrows <dburrows(at)debian.org>
Date: Mon Dec 31 2007 - 16:49:25 EST
> On Mon, 31 Dec 2007 08:13:31 -0500, Even when Policy is followed, it isn't necessarily that simple. For instance, today I wanted to read up on git hook scripts. I checked the manual page git(1), and saw the note: Read hooks[9] for more details about each hook. ...
9. hooks
hooks.html
Being an experienced Debian user, I knew that I needed to look in /usr/share/doc/git to find the rest of the documentation. Except that's not right, because there is no "git" package. Luckily, I also know about dpkg -S $(which git) which tells me that git is in the "git-core" package. So I check there:
daniel@alpaca:~$ ls /usr/share/doc/git-core/hooks.html
ls: /usr/share/doc/git-core/hooks.html: No such file or directory
So I check the source package for git-core to see if the docs got split out somehow:
daniel@alpaca:~$ apt-cache showsrc git-core
Package: git-core
Binary: git-daemon-run, git-core, git-cvs, gitweb, git-gui, git-email, git-arch, git-svn, git-doc, gitk
Aha, there's a git-doc package! And indeed, that's where hooks.html lives:
daniel@alpaca:~$ ls /usr/share/doc/git-doc/hooks.html
/usr/share/doc/git-doc/hooks.html
That took me a minute or two. But there are at least four things I had to know which a new user of Debian won't know. I think the biggest problem is that documentation is organized by package and not by command, or at least that there's no interface for searching *all* the documentation by command. There's also no consistency in where the documentation ends up, although this may be a matter of Policy compliance. To take the first three packages I looked at:
A secondary issue is that there's no consistency in file formats between different documentation packages. To read documentation, you need to be able to handle:
This wouldn't be as much of an issue if there was a way for a user to easily access all the documentation related to a command; PDF viewers are fairly easy to deal with, for instance (although a lot of packages compress their PDF documentation, which means you have to manually uncompress it somewhere). I don't have time to do this, but I think it is something that should be fixed at some point. doc-base was an effort to at least build a central documentation registry (in the non-Windows sense :) ), but AFAIK it's not used much these days. Daniel -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.orgReceived on Mon Dec 31 17:30:33 2007 This archive was generated by hypermail 2.1.8 : Fri Feb 29 2008 - 15:55:38 EST |
||||||||||
|
|||||||||||