You are not logged in.

#1 2013-10-13 13:43:39

Painless
Member
Registered: 2006-02-06
Posts: 237

manpage for 'tar' missing

Hi,

When I run `man tar`, I get some man page related to calling tar from within Tcl.  Just wondered where the regular tar manpage has gone?  There are a bunch of tar-related manpages installed, mainly C Library Calls, but nothing about plain old tar.  Have I missed something?

Thanks,

Rob

Offline

#2 2013-10-13 14:03:47

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,546
Website

Re: manpage for 'tar' missing

Some discussion here: https://bbs.archlinux.org/viewtopic.php … 0#p1335250

For now, use `info tar` or use bsdtar which has a man page.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2013-10-13 22:13:30

Painless
Member
Registered: 2006-02-06
Posts: 237

Re: manpage for 'tar' missing

Thanks.  Interesting ... well, I like manpages.

Offline

#4 2013-10-13 23:30:23

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: manpage for 'tar' missing

It is one thing to abhor man pages. I like them, personally. But I can see abhorring them. It is another to (1) prefer info and (2) prevent other people from creating and distributing man pages based on the info documents you provide.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#5 2013-10-14 01:39:15

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,673
Website

Re: manpage for 'tar' missing

To clarify, tar upstream never distributed man pages.  I used to pull the one that Debian provides into our package.  But I think we should package as upstream intended and so have stopped "patching" the package to include one.   Also, "tar --help" is essentially a man page in itself.

Offline

#6 2013-10-14 02:55:10

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: manpage for 'tar' missing

Also to clarify, I wasn't intending criticism of the packager but rather of upstream. (And I stand by that even if tar --help does provide a man page.)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#7 2013-10-18 00:40:52

reed1
Member
Registered: 2011-01-14
Posts: 29

Re: manpage for 'tar' missing

strange.. I got one, maybe it's a fake ?

Y2t8Hvrs.png

USER EDIT: I'm using Manjaro, it's a bit behind currently 1.26-4 while latest arch was 1.27-1. Sry for inconvenience,..

Last edited by reed1 (2013-10-18 01:06:13)

Offline

#8 2013-10-18 00:47:45

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: manpage for 'tar' missing

reed1, are you sure it's not the man page for bsdtar?
Is your system up to date?If so, which package provides that manpage?

$ man tar
man: can't resolve /usr/share/man/man1/tar.1.gz: No such file or directory
$ locate bsdtar
/usr/bin/bsdtar
/usr/share/man/man1/bsdtar.1.gz

Please use thumbnails https://wiki.archlinux.org/index.php/Fo … s_and_Code

Last edited by karol (2013-10-18 00:53:26)

Offline

#9 2013-10-18 01:12:07

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: manpage for 'tar' missing

@karol,

It's the bsdtar manpage. 'tar' can be hit as well with:

man 5 tar

on my system. It also belongs to libarchive.

Offline

#10 2013-10-18 01:18:27

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: manpage for 'tar' missing

skottish wrote:

@karol,

It's the bsdtar manpage. 'tar' can be hit as well with:

man 5 tar

on my system. It also belongs to libarchive.

On my system 'man tar' (or 'man 5 tar') says

NAME
     tar — format of tape archive files

Now look at his screenshot - it's completely different, it clearly says 'TAR)1)', that's why I asked where did he get it from. As he's using Manjaro and tar 1.26-4, he's not up to date.

Offline

#11 2013-10-18 01:22:53

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: manpage for 'tar' missing

karol wrote:
skottish wrote:

@karol,

It's the bsdtar manpage. 'tar' can be hit as well with:

man 5 tar

on my system. It also belongs to libarchive.

On my system 'man tar' (or 'man 5 tar') says

NAME
     tar — format of tape archive files

Now look at his screenshot - it's completely different, it clearly says 'TAR)1)', that's why I asked where did he get it from. As he's using Manjaro and tar 1.26-4, he's not up to date.

'man tar' on my system produces the exact same manpage as the above post. 'man 5 tar' does what you say. I can reproduce reed1's output.

TAR(1)                                          BSD General Commands Manual                                          TAR(1)

NAME
     tar — manipulate tape archives

SYNOPSIS
     tar [bundled-flags ⟨args⟩] [⟨file⟩ | ⟨pattern⟩ ...]
     tar {-c} [options] [files | directories]
     tar {-r | -u} -f archive-file [options] [files | directories]
     tar {-t | -x} [options] [patterns]

Last edited by skottish (2013-10-18 01:24:48)

Offline

#12 2013-10-18 01:27:30

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: manpage for 'tar' missing

Me, too. But only because I have bsdtar installed.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#13 2013-10-18 01:30:55

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: manpage for 'tar' missing

@skottish
I'll run mandb and try again. but there's not 'man 1 tar' on my system.

cfr wrote:

Me, too. But only because I have bsdtar installed.

bsdtar is not a separate package.

Offline

#14 2013-10-18 01:33:55

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: manpage for 'tar' missing

I have a hypothesis and since I'm eating dinner, I'll leave this as an exercise to the audience. In my .bashrc, I have this:

if [ "$PS1" ]; then
    complete -cf sudo
    complete -cf man
fi

I'm wondering if bash-completion is responsible?

Last edited by skottish (2013-10-18 01:35:13)

Offline

#15 2013-10-18 01:34:59

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: manpage for 'tar' missing

karol wrote:

@skottish
I'll run mandb and try again. but there's not 'man 1 tar' on my system.

cfr wrote:

Me, too. But only because I have bsdtar installed.

bsdtar is not a separate package.

Sorry. I know. I just meant that the manual page I get with "man tar" is the bsdtar man page i.e. it is not from the tar package.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#16 2013-10-18 01:56:01

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: manpage for 'tar' missing

@skottish
Can you get the left part of the screenshot by reed1?

@cfr
I just wanted to ask you, what do you mean by 'me too' :-)

Offline

#17 2013-10-18 01:59:37

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: manpage for 'tar' missing

karol wrote:

@skottish
Can you get the left part of the screenshot by reed1?

No. I noticed that the right side was the same and that's when I chimed in.

Offline

#18 2013-10-18 23:05:46

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: manpage for 'tar' missing

karol wrote:

@cfr
I just wanted to ask you, what do you mean by 'me too' :-)

I meant that I get a section 1 manual page when I type "man tar" but it is for bsdtar so it is not because I have the tar package installed and it is not a manual page for the GNU version.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#19 2013-10-18 23:52:30

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,546
Website

Re: manpage for 'tar' missing

Just now (FWIW):

$ man tar
man: can't resolve /usr/share/man/man1/tar.1.gz: No such file or directory

tar(n)                                                                         Tar file handling                                                                        tar(n)
... <rest of tcl page> ...

$ sudo mandb
password: 
Purging old database entries in /usr/share/man...
Processing manual pages under /usr/share/man...
... <various warnings and output> ...

$ man tar
TAR(1)                                                                    BSD General Commands Manual                                                                   TAR(1)
... <rest of man page matching right side of screenshot above> ...

I very rarely run mandb, so my mandb was likely very out-of-date at the start of this sequence.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#20 2013-10-19 00:10:01

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: manpage for 'tar' missing

You don't automate it? It used to drive me nuts that OS X only updated it every week or something (until I figured out how to override this without making Apple's software go nuts).


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#21 2013-10-19 00:19:26

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,546
Website

Re: manpage for 'tar' missing

I suspect the last time I updated it was *many* months ago, if not years.  I've never had any issues, until this quirk which I don't really consider an issue: it didn't find a man(1) page for tar, as there isn't one.

I don't like automating tasks like that - I don't even run a cron implementation.  If I want my computer to do something, I'll tell it to, and I'll tell it when to do it.  One of many reasons I love arch is it's one of very few distros on which I can actually control such things.  Contrast to OSX (as you mentioned it) that decides to reindex everything for "spotlight" slowing the system to a crawl (if not a dead stop) only when you actually need to do something else.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#22 2013-10-19 01:42:08

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: manpage for 'tar' missing

Oh, I hate things which insist on doing them. It is possible to kill spotlight, actually. If you are very determined. (I was extremely determined.) But it is obviously much easier if it doesn't try to do it automatically in the first place.

But I also like automating things I want automated on my terms!

EDIT: That's why Arch is easier than OS X. On OS X, I had to both set up the things I wanted and kill off the things I didn't. On Arch, I only have to do the former. (Well, I would only have to do the former if KDE didn't have some obnoxious habits but those are, thankfully, limited and I would use something else if they were too annoying.)

Last edited by cfr (2013-10-19 01:44:13)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

Board footer

Powered by FluxBB