LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   No man-pages for tar (http://www.linuxquestions.org/questions/linux-from-scratch-13/no-man-pages-for-tar-4175457529/)

Lennie 04-09-2013 02:35 PM

No man-pages for tar
 
I just realized I don't have the man-pages for tar. I recompiled tar, but still no man-pages. If I type 'man tar' it opens 'man (5) tar' which I got from libarchive, but I want 'man (1) tar'. How can I get it? I have installed the man-pages package, but no man-page for tar there.

I know one can read the man-pages on the Internet, but I'm used to run 'man <program>' when I want to find out what different flags are for, or whatever I want to know at the moment.

knudfl 04-09-2013 03:44 PM

Welcome to LQ.

The file /usr/share/man/man1/tar.1.bz2 is either generated with 'help2man'
or is included in an extended source package, like tar-1.26-5.fc17.src.rpm
http://dl.fedoraproject.org/pub/fedo...5.fc17.src.rpm

linosaurusroot 04-09-2013 05:15 PM

Mine comes in the tar package

rpm -qf /usr/share/man/man1/tar.1.gz
tar-1.26-5.3.1.x86_64

edit: didn't see the forum while reading the zero reply threads - my example is from SuSE

Keith Hedger 04-09-2013 05:45 PM

Lfs doesn't use rpms all the software is compiled from source you seem to have posted to the wrong forum

knudfl 04-09-2013 07:27 PM

# 4 .
Quote:

Lfs doesn't use rpms all the software is compiled from source
The package tar-1.26-5.fc17.src.rpm is not a "binary rpm package",
but source only : { tar-1.26.tar.xz + the file 'tar.1.bz2' }.

Is just an example where to find the tar man page file.

There are two perl scripts which can generate the man page :
Besides the already mentioned help2man, there is "tarman"
http://ftp.de.debian.org/debian/pool....debian.tar.gz
Quote : " tarman - make tar man page from src/tar.c ".

-

Lennie 04-10-2013 03:18 AM

Thanks to all of you who have answered. Now I have learned that those distros that distributes man-pages for tar have added them to their packages. I checked the sources and build instructions for both Arch and Slackware, and they both have added the manpages. This is from the man-page added by Arch:

Quote:

The GNU folks, in general, abhor man pages, and create info documents instead.
Unfortunately, the info document describing tar is licensed under the GFDL with
invariant cover texts, which makes it impossible to include any text
from that document in this man page.
Most of the text in this document was automatically extracted from the usage
text in the source.
It may not completely describe all features of the program.
From Slackware (I guess they got it from Debian...):
Quote:

The GNU folks, in general, abhor man pages, and create info documents instead.
The maintainer of tar falls into this category. This man page is neither
complete, nor current, and was included in the Debian Linux packaging of tar
entirely to reduce the frequency with which the lack of a man page gets
reported as a bug in our defect tracking system.

If you really want to understand tar, then you should run info and read the
tar info pages, or use the info mode in emacs.
I copied the man-page from Slackware, and felt like I was cheating. But after reading this I feel quite good about cheating ;) .


All times are GMT -5. The time now is 07:35 PM.