Questions tagged [tar]

An archiving program for storing and retrieving files as a collection with support for data compression.

An archiving program for storing and retrieving files as a collection with support for data compression. It is mainly used for compacting multiple files into single one, for easy transporting or compression.

Its name comes from Tape ARchive

2690 questions
0
votes
0 answers

The file is not correct when decompress with tar -xvJf xxx.tar.xz?

I was trying to "tar -xvJf binutil-3.6.1.tar.xz" then build it in a cross-compiling project. But when I start the build I found some files such as regex.c (who has 8k+ lines) have lost some codes at the end of the file. It seems to happen in big…
Hi-v
  • 1
0
votes
0 answers

How can I access HuggingFace Dockerfiles?

I want to edit the Dockerfiles that are used to run HuggingFace Spaces. I know how to run them in theory, e.g. for https://huggingface.co/spaces/suno/bark it's docker run -it -p 7860:7860 --platform=linux/amd64 registry.hf.space/suno-bark:latest…
Tom Dörr
  • 859
  • 10
  • 22
0
votes
1 answer

Issue with tar during webrtc fetch inside Docker ubuntu

I'm trying to build webrtc using github actions with Docker Ubuntu container. And receiving bunch of tar: ./usr/lib/i386-linux-gnu/libicui18n.so.67.1: Cannot change ownership to uid 376730, gid 89939: Invalid argument like messages while webrtc…
lfk
  • 57
  • 7
0
votes
1 answer

How can i redirect /dev/tty into file

I want tar command to show progress somehow in the output as I am working with large files and to have some idea what is the status. but I can't use some of the popular tools like pv, because only default programs are allowed on the system. So in…
Alex B
  • 13
  • 4
0
votes
0 answers

PHP Script called multiple times whereas URL only called once

I've got a script to backup a directory on a hosted webserver. The directory should be compressed about 1GB. error_reporting(E_ALL); ini_set('display_errors', 1); include 'Archive/Tar.php'; $dir = realpath(dirname(__FILE__).'/../../dir_to_zip/');…
Chris
  • 1
  • 3
0
votes
0 answers

"ReadError: file could not be opened successfully" when opening '.tgz' with tarfile

I have a task where I need to extract '.tgz' file but I keep getting following error. Code used: tar_path = os.path.join("datasets/housing/housing.tgz") tgz_open =…
0
votes
0 answers

recursive search on tgz file

I have several tgz files with several folders inside each file. I would like to find a file (which is inside one of those folders) with a specific name within all the tgz withouth extracting them. I tried something like: find -r . -name…
0
votes
1 answer

Piping stream data to TAR with popen()

I've been searching for an answer to this problem but haven't found a working solution. Our product has a built in webserver and uses the HTTP POST command to perform software updates. The update is a targz file with two files in it. In response…
n8zrj
  • 1
  • 1
0
votes
0 answers

npm install is throwing an error in terminal

npm install -g n is throwing the following error, what can be done? npm ERR! tar.unpack untar error /Users/ssolanki/.npm/n/9.0.1/package.tgz npm ERR! Darwin 21.6.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "n" npm ERR!…
0
votes
1 answer

Transferring large size files from openshift container to different server

I have a scenario, where we are transferring multiple files from openshift to a different server. It's in Terabytes. Right now using oc client. Tried few options. oc cp podname:source_path target_path oc rsync --exclude="*.txt",".log"…
Raja
  • 507
  • 1
  • 6
  • 24
0
votes
0 answers

Creating tar files then transfer and extract it via ssh/scp to a remote machine

I need a script that will create a tar file then can transfer and extract the file to another linux machine. I am new in shell scripts that's why Im needing assistance on this. Checked other posts here that is similar with my inquiry.
0
votes
0 answers

How to create a zip from command line that preserves macOS metadata but also passes validation tests when > 4GB?

I am looking for a method of creating zip archives of files and folders on macOS that meets the following requirements: Creates zips from command line (not GUI such as Finder or Archive Utility) Properly preserves macOS metadata (resource forks,…
Niel
  • 9
  • 3
0
votes
0 answers

Extract a tar symlink in jenkins file

I have file.tar.gz of which I made a symlink using ln -sf file.tar.gz link. I want to use this link as a general pointer to what I will be working with later, where I want to extract this file.tar.gz using the symlink address. This address is stored…
Shaxey
  • 13
  • 4
0
votes
1 answer

How can I fix the Julia Pkg error for invalid version string for tar file?

I have been using Julia for a while now. Suddenly today when I wanted to update a package I get the following error: This happens for every package, whether it is Pkg.add() or Pkg.update(). Everything worked fine before today. I already tried…
Seraphax
  • 55
  • 4
0
votes
1 answer

lz4 redirect output to /dev/null

I have the following command in my bash script and want to redirect the output to /dev/null but it is not working. What is the right way to achieve this? tar cvf - -C / $SOURCE_DIR | lz4 --best - $ARCHIVE > /dev/null Edit: Example output (I'm…
1 2 3
99
100