Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Creating a tarball on Solaris issue with errors Post 303032457 by jim mcnamara on Monday 18th of March 2019 04:24:22 PM
Old 03-18-2019
The pax available on hp-ux uses ustar format by default, the extended interchange format with support for files > 2GB ("largefiles"). So there is no problem on the receiving end.
pax example usage: How to use pax - Wiki-UX.info
These 2 Users Gave Thanks to jim mcnamara For This Post:
 

10 More Discussions You Might Find Interesting

1. Solaris

Solaris 9 lroundf errors

When I want to install some softwares from source with gcc/4.3 on a sparc solaris 9 I always have errors like this one : (example with lapack-3.2) ../../lapack_SUN4.a(slacn2.o): In function `slacn2_': slacn2.f:(.text+0x1b0): undefined reference to `lroundf' slacn2.f:(.text+0x370): undefined... (0 Replies)
Discussion started by: wolfhurt
0 Replies

2. Solaris

Solaris Zone errors

after booting up my zone i get following error # zlogin -C DB_zone Sep 29 09:18:46 svc.startd: Could not log for svc:/system/filesystem/root:default: write(51) failed with I/O error. Sep 29 09:18:47 svc.startd: Could not log for svc:/system/installupdates:default: write(17) failed with... (5 Replies)
Discussion started by: fugitive
5 Replies

3. UNIX for Dummies Questions & Answers

Is there any way to add to a tarball made in this fashion

Hello, I am wondering if there is an easy way to add a file to a tarball rather than extracting, adding, then remaking the tarball. The tarball was made in this way: tar -cpvzf .wine.tar.gz .wine/If I had a file to the .wine/ dir (or if I just wanted to add a file to the tarball), I would... (4 Replies)
Discussion started by: Narnie
4 Replies

4. Shell Programming and Scripting

Unpack individual files from tarball

Say you don't want to unpack the whole thing, just individual files or directories within a .tgz. How to do this? (1 Reply)
Discussion started by: stevensw
1 Replies

5. Shell Programming and Scripting

tarball of current directory

I wanna make a backup tarball. I wanna write a script that makes tarball of the current directory. There are lots of files so I cant type all files, I wanna make the tarball by excluding few files. Like there 1000 files in a directory I wanna create a tarball containing 98 files of that... (1 Reply)
Discussion started by: nishrestha
1 Replies

6. Solaris

apache 2.2.22 Solaris errors

Hi, I have installed apache 2.2.22 on solaris machine and trying to do some basic testing, but it is failing for one of the scenario. Seeing below in the error logs But noy sure why there is a need for AuthUserFile when i mentioned AuthldapURL. Please advise Thanks (1 Reply)
Discussion started by: prash358
1 Replies

7. Shell Programming and Scripting

Creating subset of compilation errors

I am compiling a fortran program using gfortran and the result looks as below I want to write a bash or awk script that will scan the information and output only problems within a range of line numbers Example: If I specify the file createmodl.f08, start line 1000 and end line 1100, I will... (8 Replies)
Discussion started by: kristinu
8 Replies

8. Shell Programming and Scripting

Extract compressed tarball to folder?

This is for Red Hat Enterprise Linux Client release 5.7 (Tikanga). Wanna extract entire contents of a tar.gz to a folder of my choosing. Thanks (2 Replies)
Discussion started by: stevensw
2 Replies

9. Shell Programming and Scripting

Self extracting tarball

I was wondering if anyone can point me to some topics, material, or tutorials that can help me write a shell script that creates a second script that is a Self-extracting tarball. Don't want any actual code obviously because this is a school project, but I feel my teacher didn't well cover the... (3 Replies)
Discussion started by: canes27
3 Replies

10. UNIX for Advanced & Expert Users

Issue while creating RPM

I am trying to create an RPM that basically creates a JBOss container. At the end it copies folders and files in a particular directory structure. /root/rpmbuild/SOURCES # tree cac-1.0 cac-1.0 └── opt └── msdp └── ca └── iam_cac ... (1 Reply)
Discussion started by: Junaid Subhani
1 Replies
LIBARCHIVE(3)						   BSD Library Functions Manual 					     LIBARCHIVE(3)

NAME
libarchive -- functions for reading and writing streaming archives OVERVIEW
The libarchive library provides a flexible interface for reading and writing archives in various formats such as tar and cpio. libarchive also supports reading and writing archives compressed using various compression filters such as gzip and bzip2. The library is inherently stream-oriented; readers serially iterate through the archive, writers serially add things to the archive. In particular, note that there is currently no built-in support for random access nor for in-place modification. When reading an archive, the library automatically detects the format and the compression. The library currently has read support for: o old-style tar archives, o most variants of the POSIX ``ustar'' format, o the POSIX ``pax interchange'' format, o GNU-format tar archives, o most common cpio archive formats, o ISO9660 CD images (including RockRidge and Joliet extensions), o Zip archives, o ar archives (including GNU/SysV and BSD extensions), o Microsoft CAB archives, o LHA archives, o mtree file tree descriptions, o RAR archives, o XAR archives. The library automatically detects archives compressed with gzip(1), bzip2(1), xz(1), lzip(1), or compress(1) and decompresses them transpar- ently. It can similarly detect and decode archives processed with uuencode(1) or which have an rpm(1) header. When writing an archive, you can specify the compression to be used and the format to use. The library can write o POSIX-standard ``ustar'' archives, o POSIX ``pax interchange format'' archives, o POSIX octet-oriented cpio archives, o Zip archive, o two different variants of shar archives, o ISO9660 CD images, o 7-Zip archives, o ar archives, o mtree file tree descriptions, o XAR archives. Pax interchange format is an extension of the tar archive format that eliminates essentially all of the limitations of historic tar formats in a standard fashion that is supported by POSIX-compliant pax(1) implementations on many systems as well as several newer implementations of tar(1). Note that the default write format will suppress the pax extended attributes for most entries; explicitly requesting pax format will enable those attributes for all entries. The read and write APIs are accessed through the archive_read_XXX() functions and the archive_write_XXX() functions, respectively, and either can be used independently of the other. The rest of this manual page provides an overview of the library operation. More detailed information can be found in the individual manual pages for each API or utility function. READING AN ARCHIVE
See libarchive_read(3). WRITING AN ARCHIVE
See libarchive_write(3). WRITING ENTRIES TO DISK
The archive_write_disk(3) API allows you to write archive_entry(3) objects to disk using the same API used by archive_write(3). The archive_write_disk(3) API is used internally by archive_read_extract(); using it directly can provide greater control over how entries get written to disk. This API also makes it possible to share code between archive-to-archive copy and archive-to-disk extraction operations. READING ENTRIES FROM DISK
The archive_read_disk(3) supports for populating archive_entry(3) objects from information in the filesystem. This includes the information accessible from the stat(2) system call as well as ACLs, extended attributes, and other metadata. The archive_read_disk(3) API also supports iterating over directory trees, which allows directories of files to be read using an API compatible with the archive_read(3) API. DESCRIPTION
Detailed descriptions of each function are provided by the corresponding manual pages. All of the functions utilize an opaque struct archive datatype that provides access to the archive contents. The struct archive_entry structure contains a complete description of a single archive entry. It uses an opaque interface that is fully doc- umented in archive_entry(3). Users familiar with historic formats should be aware that the newer variants have eliminated most restrictions on the length of textual fields. Clients should not assume that filenames, link names, user names, or group names are limited in length. In particular, pax inter- change format can easily accommodate pathnames in arbitrary character sets that exceed PATH_MAX. RETURN VALUES
Most functions return ARCHIVE_OK (zero) on success, non-zero on error. The return value indicates the general severity of the error, ranging from ARCHIVE_WARN, which indicates a minor problem that should probably be reported to the user, to ARCHIVE_FATAL, which indicates a serious problem that will prevent any further operations on this archive. On error, the archive_errno() function can be used to retrieve a numeric error code (see errno(2)). The archive_error_string() returns a textual error message suitable for display. archive_read_new() and archive_write_new() return pointers to an allocated and initialized struct archive object. archive_read_data() and archive_write_data() return a count of the number of bytes actually read or written. A value of zero indicates the end of the data for this entry. A negative value indicates an error, in which case the archive_errno() and archive_error_string() functions can be used to obtain more information. ENVIRONMENT
There are character set conversions within the archive_entry(3) functions that are impacted by the currently-selected locale. SEE ALSO
tar(1), archive_entry(3), archive_read(3), archive_util(3), archive_write(3), tar(5) HISTORY
The libarchive library first appeared in FreeBSD 5.3. AUTHORS
The libarchive library was originally written by Tim Kientzle <kientzle@acm.org>. BUGS
Some archive formats support information that is not supported by struct archive_entry. Such information cannot be fully archived or restored using this library. This includes, for example, comments, character sets, or the arbitrary key/value pairs that can appear in pax interchange format archives. Conversely, of course, not all of the information that can be stored in an struct archive_entry is supported by all formats. For example, cpio formats do not support nanosecond timestamps; old tar formats do not support large device numbers. The ISO9660 reader cannot yet read all ISO9660 images; it should learn how to seek. The AR writer requires the client program to use two passes, unlike all other libarchive writers. BSD
March 18, 2012 BSD
All times are GMT -4. The time now is 10:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy