LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-02-2002, 06:31 AM   #1
nautilus_1987
Member
 
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750

Rep: Reputation: 30
Lightbulb archives


Hi there!

Could someone give me a link or some info about unpacking archives(tar,gz,zip,bz2...etc) under console.

thnx
 
Old 09-02-2002, 10:00 AM   #2
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 46
For Tar archive try

man tar

For gZip archive try

man gzip

For bZip2 archive try

man bzip2


You can also use the "info" command on the above if you prefer. For compressed tar archives you can gunzip with argument -z and for bunzip2 use the argument -j under Slack 8.1. For earlier versions it was -y if recall correctly.
 
Old 09-02-2002, 01:24 PM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
standard tar.gz files:
tar xvzf filename.tar.gz

standard .tar.bz2 can be done 2 ways:
bzcat filename.tar.bz2 | tar xv OR
tar xvjf filename.tar.bz2

.tgz can be done the same way as .tar.gz

zip:
unzip

Cool
 
Old 09-02-2002, 01:50 PM   #4
nautilus_1987
Member
 
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750

Original Poster
Rep: Reputation: 30
But aren't there a lot of other archives?

PS. I thought that tgz: gzip -cd filename|tar xvf -
thanks anyway!
 
Old 09-02-2002, 03:01 PM   #5
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 46
Well, I suppose there be a lot of different archive formats out there. The types listed above are the ones most common under Linux as nondistro type archives. There are special ones like pkgtool, and rpm, etc. But whatever the flavor, I would suggest just trying the archive type with the "man" command and see if it brings up any info. For example, "man rpm" will bring info on the RedHat Package Manager. If it is not found then most likely no support for it is installed. You would then need to research who produced the archive to see if Linux support is available.

Just to see what it would produce I googled "Archive" and received 48 million possiblities. No, I did not go through them all. Just the first page.
 
  


Reply



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
Libevent Corrupt Archives? $ave Linux - Newbie 5 10-19-2005 05:04 PM
Ace archives Jeebizz Slackware 3 08-14-2005 03:42 AM
Where are the powerswitch archives? yeri63 Linux - General 2 07-08-2003 09:03 AM
Upacking archives Stephanie Linux - General 2 05-23-2003 04:03 PM
Is it possible to combine archives with ar? Griffon26 Linux - Software 2 07-02-2002 02:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:55 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