Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

how to untar a '.tar.gz' ?

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
14 posts • Page 1 of 1
Author
Message
chrisduck
Apprentice
Apprentice
User avatar
Posts: 283
Joined: Wed Jun 30, 2004 4:47 am
Location: California

how to untar a '.tar.gz' ?

  • Quote

Post by chrisduck » Sat Aug 07, 2004 12:28 am

I've never 'untarred' a file before, outside of the directions that the gentoo installation manual gave me.

I'm trying to install a flash plugin for my firefox browser
macromedia's directions are here...
http://www.macromedia.com/shockwave/dow ... wave-flash

the zipped file downloaded into my user/home directory, and is called
install_flash_player_7_linux.tar.gz

I don't know how to unzip this file, or how to unzip it so that it goes to the appropriate directory.

I've read the directions provided by gzip here...
http://www.gzip.org/#faq6

I've tried typing all kinds of things. I think that if I could learn how to do this, it would make the rest of my linux life easier.

thank you
Top
handsomepete
Guru
Guru
User avatar
Posts: 548
Joined: Sun Apr 21, 2002 4:26 pm
Location: Kansas City, MO

Re: how to untar a '.tar.gz' ?

  • Quote

Post by handsomepete » Sat Aug 07, 2004 12:32 am

chrisduck wrote:I've never 'untarred' a file before, outside of the directions that the gentoo installation manual gave me.

I'm trying to install a flash plugin for my firefox browser
macromedia's directions are here...
http://www.macromedia.com/shockwave/dow ... wave-flash

the zipped file downloaded into my user/home directory, and is called
install_flash_player_7_linux.tar.gz

I don't know how to unzip this file, or how to unzip it so that it goes to the appropriate directory.
Try 'tar xzvf install_flash_player_7_linux.tar.gz' (no quotes) on for size. 'man tar' will give explanations of the switches as well as some examples.
Top
chrisduck
Apprentice
Apprentice
User avatar
Posts: 283
Joined: Wed Jun 30, 2004 4:47 am
Location: California

  • Quote

Post by chrisduck » Sat Aug 07, 2004 12:37 am

I typed in that command, and it replied...

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors

and now the command line is ready to take orders again.
I don't understand why it would not be gzip format. The file ends in .tar.gz

???
Top
Lokheed
Veteran
Veteran
User avatar
Posts: 1295
Joined: Mon Jul 12, 2004 8:38 pm
Location: /usr/src/linux
Contact:
Contact Lokheed
Website

  • Quote

Post by Lokheed » Sat Aug 07, 2004 12:48 am

If you want to unpack a tar.gz you would enter

Code: Select all

tar -xzvf
If you want to unpack a tar.bz2

Code: Select all

tar -xjvf
And finally if you want to unpack a bz2

Code: Select all

bunzip2
Top
dkaplowitz
Guru
Guru
User avatar
Posts: 596
Joined: Sat Nov 22, 2003 2:16 pm
Location: Philadelphia, PA
Contact:
Contact dkaplowitz
Website

  • Quote

Post by dkaplowitz » Sat Aug 07, 2004 12:48 am

I always do it with a "-" b4 the zxvf, so

Code: Select all

tar -zxvf filename.tar.gz
http://dkap.info
Top
chrisduck
Apprentice
Apprentice
User avatar
Posts: 283
Joined: Wed Jun 30, 2004 4:47 am
Location: California

  • Quote

Post by chrisduck » Sat Aug 07, 2004 12:53 am

chrisduck wrote:I typed in that command, and it replied...

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors

and now the command line is ready to take orders again.
I don't understand why it would not be gzip format. The file ends in .tar.gz

???
when I typed in

tar -xvzf install_flash_player_7_linux.tar.gz

I got the response that I posted in the above quote.
Top
handsomepete
Guru
Guru
User avatar
Posts: 548
Joined: Sun Apr 21, 2002 4:26 pm
Location: Kansas City, MO

  • Quote

Post by handsomepete » Sat Aug 07, 2004 12:53 am

chrisduck wrote:I typed in that command, and it replied...

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors

and now the command line is ready to take orders again.
I don't understand why it would not be gzip format. The file ends in .tar.gz

???
Will it not even unzip if you try 'gunzip filename.tar.gz'? Maybe it's corrupt. Just out of curiousity, why not use the ebuild?
Top
chrisduck
Apprentice
Apprentice
User avatar
Posts: 283
Joined: Wed Jun 30, 2004 4:47 am
Location: California

  • Quote

Post by chrisduck » Sat Aug 07, 2004 12:58 am

handsomepete wrote:
chrisduck wrote:I typed in that command, and it replied...

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors

and now the command line is ready to take orders again.
I don't understand why it would not be gzip format. The file ends in .tar.gz

???
Will it not even unzip if you try 'gunzip filename.tar.gz'? Maybe it's corrupt. Just out of curiousity, why not use the ebuild?
I typed the command "gunzip filename"
and it responded...

not in gzip format

I'm not sure how an ebuild is used either... is there an ebuild that will solve my problem?
Top
John5788
Advocate
Advocate
User avatar
Posts: 2140
Joined: Tue Apr 06, 2004 11:38 pm
Location: 127.0.0.1
Contact:
Contact John5788
Website

Re: how to untar a '.tar.gz' ?

  • Quote

Post by John5788 » Sat Aug 07, 2004 1:21 am

chrisduck wrote: I'm trying to install a flash plugin for my firefox browser
do these commands

Code: Select all

# mkdir /etc/portage
# echo "net-www/netscape-flash ~x86" > /etc/portage/package.keywords
# emerge netscape-flash
portage is awesome, is it not?
John5788
Top
Deathwing00
Bodhisattva
Bodhisattva
User avatar
Posts: 4087
Joined: Fri Jun 13, 2003 9:07 pm
Location: Berlin, Germany
Contact:
Contact Deathwing00
Website

  • Quote

Post by Deathwing00 » Sat Aug 07, 2004 7:59 am

chrisduck wrote:
handsomepete wrote:
chrisduck wrote:I typed in that command, and it replied...

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors

and now the command line is ready to take orders again.
I don't understand why it would not be gzip format. The file ends in .tar.gz

???
Will it not even unzip if you try 'gunzip filename.tar.gz'? Maybe it's corrupt. Just out of curiousity, why not use the ebuild?
I typed the command "gunzip filename"
and it responded...

not in gzip format

I'm not sure how an ebuild is used either... is there an ebuild that will solve my problem?
These error messages are shown because the downloaded file is corrupted. BTW, use the above thread's solution.


Moved from Multimedia.
Top
Rafje
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 109
Joined: Wed May 19, 2004 9:27 pm
Location: .be

Re: how to untar a '.tar.gz' ?

  • Quote

Post by Rafje » Sat Aug 07, 2004 8:36 am

John5788 wrote:

Code: Select all

echo "net-www/netscape-flash ~x86" > /etc/portage/package.keywords
Eek! I blindly copy-pasted and executed this, only to realize just as I hit the Enter button, that there's only ">"... Now I lost all my original package.keywords. :(

You could've written

Code: Select all

echo "net-www/netscape-flash ~x86" >> /etc/portage/package.keywords
to protect lazy bastards like me... :)

Cheers
Top
John5788
Advocate
Advocate
User avatar
Posts: 2140
Joined: Tue Apr 06, 2004 11:38 pm
Location: 127.0.0.1
Contact:
Contact John5788
Website

  • Quote

Post by John5788 » Sat Aug 07, 2004 3:08 pm

oh i didnt know that u already had stuff in there. sry bout that
John5788
Top
Rafje
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 109
Joined: Wed May 19, 2004 9:27 pm
Location: .be

  • Quote

Post by Rafje » Sat Aug 07, 2004 5:00 pm

John5788 wrote:oh i didnt know that u already had stuff in there. sry bout that
No problem. I did

Code: Select all

emerge -Davu world
then saw what it wanted to downgrade and put that back into my package.keywords. 8)
Top
oberyno
Guru
Guru
Posts: 467
Joined: Sun Feb 15, 2004 10:39 am
Location: /bin/zsh

  • Quote

Post by oberyno » Sat Aug 07, 2004 7:00 pm

You can always add

Code: Select all

set -o noclobber
to your .bashrc or

Code: Select all

setopt  NO_clobber     
to your .zshrc.
With that set, trying a > on an existing file will return an error. If you really want to overwrite the file you can use >|.
Top
Post Reply

14 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic