LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices



Reply
 
Search this Thread
Old 04-09-2013, 02:35 PM   #1
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 302

Rep: Reputation: 61
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.
 
Old 04-09-2013, 03:44 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,279

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
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
 
Old 04-09-2013, 05:15 PM   #3
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 870
Blog Entries: 2

Rep: Reputation: 219Reputation: 219Reputation: 219
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

Last edited by linosaurusroot; 04-10-2013 at 01:58 AM.
 
Old 04-09-2013, 05:45 PM   #4
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Devon,UK
Distribution: Linux From Scratch, Slackware64,
Posts: 1,004

Rep: Reputation: 218Reputation: 218Reputation: 218
Lfs doesn't use rpms all the software is compiled from source you seem to have posted to the wrong forum
 
Old 04-09-2013, 07:27 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,279

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
# 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 ".

-

Last edited by knudfl; 04-09-2013 at 07:32 PM.
 
Old 04-10-2013, 03:18 AM   #6
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 302

Original Poster
Rep: Reputation: 61
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 .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ man pages Guest1234 Ubuntu 0 05-11-2005 03:45 AM
What do you mean by MAN pages? inspectreo Linux - Newbie 2 05-08-2005 03:12 PM
Man pages twantrd Solaris / OpenSolaris 5 08-16-2004 04:15 AM
How do I know where the man pages are? narik Linux - General 1 06-15-2004 02:22 PM
man pages spuppett Linux - General 5 02-23-2003 03:28 AM


All times are GMT -5. The time now is 03:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration