README 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. This GNU tar 1.10. Please send bug reports, etc., to
  2. bug-gnu-utils@prep.ai.mit.edu.
  3. GNU tar is based heavily on John Gilmore's public domain tar, but with
  4. added features. The manual is currently being written. An old
  5. manual, surely riddled with errors, is in tar.texinfo. Please don't
  6. send in bug reports about that manual. In particular, the mechanism
  7. for doing incremental dumps has been significantly changed.
  8. This distribution also includes rmt, the remote tape server (which
  9. must reside in /etc). The mt program is in the GNU cpio distribution.
  10. To compile tar (and rmt, if your system has the needed features) on
  11. Unix-like systems:
  12. 1. Type `./configure'. This shell script attempts to guess correct
  13. values for various system-dependent variables used during compilation,
  14. and creates the file `Makefile'. This takes a couple of minutes.
  15. If you want to compile in a different directory from the one
  16. containing the source code, `cd' to that directory and run `configure'
  17. with the option `+srcdir=DIR', where DIR is the directory that
  18. contains the source code. The object files and executables will be
  19. put in the current directory. This option only works with versions of
  20. `make' that support the VPATH variable. `configure' ignores any other
  21. arguments you give it.
  22. If your system requires unusual options for compilation or linking
  23. that `configure' doesn't know about, you can give `configure' initial
  24. values for variables by setting them in the environment; in
  25. Bourne-compatible shells, you can do that on the command line like
  26. this:
  27. $ CC='gcc -traditional' LIBS=-lposix ./configure
  28. 2. If you want to change the directories where the programs will be
  29. installed, or the optimization options, edit `Makefile' and change
  30. those values. If you have an unusual system that needs special
  31. compilation options that `configure' doesn't know about, and you
  32. didn't pass them in the environment when running `configure', you
  33. should add them to `Makefile' now. Alternately, teach `configure' how
  34. to figure out that it is being run on a system where they are needed,
  35. and mail the diffs to the address listed at the top of this file so we
  36. can include them in the next release.
  37. 3. Type `make'.
  38. 4. If your system needs to link with -lPW to get alloca, but has
  39. rename in the C library (so WANT_RENAME is not used), -lPW might give
  40. you an incorrect version of rename. On HP-UX this manifests itself as
  41. an undefined data symbol called "Error" when linking tar. If this
  42. happens, use `ar x' to extract alloca.o from libPW.a and `ar rc' to
  43. put it in a library liballoca.a, and put that in LIBS instead of -lPW.
  44. This problem does not occur when using gcc, which has alloca built in.
  45. 5. If the programs compile successfully, type `make install' to
  46. install them.
  47. 6. After you have installed the programs, you can remove the binaries
  48. from the source directory by typing `make clean'. Type `make
  49. distclean' if you also want to remove `Makefile', for instance if you
  50. are going to recompile tar next on another type of machine.
  51. makefile.pc is a makefile for Turbo C 2.0 on MS-DOS.
  52. Various people have been having problems using floppies on a NeXT.
  53. I've gotten conflicting reports about what should be done to solve the
  54. problems, and we have no way to test it ourselves.
  55. User-visible changes since 1.09:
  56. Filename to -G is optional. -C works right.
  57. Names +newer and +newer-mtime work right.
  58. -g is now +incremental
  59. -G is now +listed-incremental
  60. Sparse files now work correctly.
  61. +volume is now called +label.
  62. +exclude now takes a filename argument, and +exclude-from does what
  63. +exclude used to do.
  64. Exit status is now correct.
  65. +totals keeps track of total I/O and prints it when tar exits.
  66. When using +label with +extract, the label is now a regexp.
  67. New option +tape-length (-L) does multi-volume handling like BSD dump:
  68. you tell tar how big the tape is and it will prompt at that point
  69. instead of waiting for a write error.
  70. New backup scripts level-0 and level-1 which might be useful to
  71. people. They use a file "backup-specs" for information, and shouldn't
  72. need local modification. These are what we use to do all our backups
  73. at the FSF.