LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-17-2020, 09:15 PM   #1
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,831
Blog Entries: 1

Rep: Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069
extract correctly from mozilladotorg.bz2


Mc can no longer competently extract from mozilla.org's .bz2 files.
https://midnight-commander.org/ticket/1952

e.g. using http://ftp.mozilla.org/pub/firefox/r...9.0esr.tar.bz2 Mc changes all the dates to epoch.

If I use tar -xjf instead, ordinary files get extracted correctly, but directories get current timestamps. Bunzip2 -k does the same thing, as does 'bzip2 -cd firefox-68.9.0esr.tar.bz2 | tar xvf -'

The reason this comes up is I have multiple Firefox versions at all times. The content of these bz2 archives is in a firefox subdirectory. I want the content of each'es firefox/ extracted to a directory name of my choosing, e.g. ./ffe68/, without nesting it in a firefox/ directory, which used to be very simple with mc by simply "entering" the archive.

Has mozilla.org broken its .bz2 files? What's the right cmdline tool for competently extracting contents from .bz2 files (without affecting the .bz2 file itself)?
 
Old 06-18-2020, 04:25 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,930

Rep: Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320
tar is responsible for restoring permissions and other attributes.
You can check the original content with tar tvf. Probably it depends on the type of the filesystem. Probably the directories [themselves] are not handled by tar at all. tar xf never modifies the original input file.
 
Old 06-18-2020, 07:38 AM   #3
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,831

Original Poster
Blog Entries: 1

Rep: Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069
pan64, you are right about the directories, something I never dreamed was possible of any so-called "archive". The issue was isolated to the Firefox publication process as a consequence of my reporting this on Mozilla's bug tracker.
 
  


Reply

Tags
shell, terminal



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
how to extract a "tar.bz2" file? deWin Linux - Newbie 14 08-09-2016 08:49 AM
[SOLVED] Difference between "tar.bz2" and ".bz2" ? steak1987 Linux - Newbie 4 09-14-2014 10:11 PM
extract .tar.bz2 EcceVery Debian 3 11-24-2004 12:39 PM
Extract multiple bz2 files hq4ever Linux - Newbie 4 06-24-2004 12:03 AM
How to extract tar.bz2 files? akihandyman Linux - Newbie 3 12-21-2003 03:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:10 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
Open Source Consulting | Domain Registration