Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How do you read doc in gz format ??
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
ikshaar
Veteran
Veteran


Joined: 23 Jul 2002
Posts: 1339
Location: Baltimore, MD

PostPosted: Tue May 13, 2003 5:18 pm    Post subject: How do you read doc in gz format ?? Reply with quote

Hi,

It's stupid for sure :roll: but my problem is : I installed afsdoc, documentation for openafs, and the only thing installed is *.gz files in /usr/share/doc. How do I read them ? I tried man, yelp, info...nothing worked...

Any ideas ??
_________________
"May God stands between you and harm in all the empty places where you must walk" - Babylon 5
Back to top
View user's profile Send private message
Oopsz
Guru
Guru


Joined: 08 Oct 2002
Posts: 340

PostPosted: Tue May 13, 2003 5:22 pm    Post subject: Reply with quote

zless textfile.gz

:)
Back to top
View user's profile Send private message
ikshaar
Veteran
Veteran


Joined: 23 Jul 2002
Posts: 1339
Location: Baltimore, MD

PostPosted: Tue May 13, 2003 5:35 pm    Post subject: Reply with quote

But it's not only one file, it's a complete structure, with directory, images, etc...
Code:
> ls
AdminGd   QkBegin   UserGd         books.gif.gz  index.gif.gz  index.html.gz  prev.gif.gz  top.gif.gz
AdminRef  RelNotes  banner.gif.gz  bot.gif.gz    index.htm.gz  next.gif.gz    toc.gif.gz


So i need some sort of browser for doc.... any other ideas ?
_________________
"May God stands between you and harm in all the empty places where you must walk" - Babylon 5
Back to top
View user's profile Send private message
popopo_
n00b
n00b


Joined: 15 Mar 2003
Posts: 21

PostPosted: Tue May 13, 2003 5:36 pm    Post subject: Reply with quote

Various programs have built-in support for .gz files.
Just try vi (vim, gvim, etc...), or less (no need for zless). I guess it works also for emacs.

edit : you can also gunzip *.gz of course
Back to top
View user's profile Send private message
ikshaar
Veteran
Veteran


Joined: 23 Jul 2002
Posts: 1339
Location: Baltimore, MD

PostPosted: Tue May 13, 2003 5:50 pm    Post subject: Reply with quote

There is directory and subdirectories... so I don't think this is the best way to do... besides, if the ebuild does not unpack help for such package and you cannot read without doing so, there is a serious logic problem here for the guy who wrote that ebuild...
_________________
"May God stands between you and harm in all the empty places where you must walk" - Babylon 5
Back to top
View user's profile Send private message
tlauder
n00b
n00b


Joined: 24 Feb 2003
Posts: 10

PostPosted: Tue May 13, 2003 6:40 pm    Post subject: Reply with quote

Edited out as this wasn't the place to post it.

Try the --recursive option to gunzip


Last edited by tlauder on Tue May 13, 2003 8:01 pm; edited 2 times in total
Back to top
View user's profile Send private message
ikshaar
Veteran
Veteran


Joined: 23 Jul 2002
Posts: 1339
Location: Baltimore, MD

PostPosted: Tue May 13, 2003 7:17 pm    Post subject: Reply with quote

(no comment on the rant here)

afsdoc is pure documentation. So if you emerge it, you probably intend to read it.

you may be right for the space, but gunzip will not work on subdirectory so the method to unzip all the doc is not straighforward. Therefore, my point remains true.
_________________
"May God stands between you and harm in all the empty places where you must walk" - Babylon 5
Back to top
View user's profile Send private message
DefconAlpha
Apprentice
Apprentice


Joined: 25 Feb 2003
Posts: 151
Location: Alabama

PostPosted: Tue May 13, 2003 7:18 pm    Post subject: gunzip doc viewing Reply with quote

Code:
gunzip -C /usr/share/doc/prog/file.gz | less


or more, or redirect it to a file: whichever you like...
_________________
In the end, the love you get is equal to the love you make
--John Lennon & Paul McCartney (The End - Abbey Road,
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum