LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-18-2016, 12:56 PM   #1
cajunchief
Member
 
Registered: Sep 2010
Posts: 231

Rep: Reputation: 0
TAR and CentOS


To all:

I am attempting to install the 'tar' program onto my CentOS 6.7 cpu so I can install some tar programs like vorbis and others. During my attempt at the install of 'xz' I get this message:

to perform this command.
[cajunchief@172 ~]$ sudo yum install xz
[sudo] password for cajunchief:
Loaded plugins: fastestmirror, kabi, refresh-packagekit, security
Loading support for CentOS kernel ABI
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirror.us.leaseweb.net
* epel: mirror.us.leaseweb.net
* extras: mirror.us.leaseweb.net
* remi-safe: remi.check-update.co.uk
* updates: mirror.us.leaseweb.net
Package xz-4.999.9-0.5.beta.20091007git.el6.i686 already installed and latest version
Nothing to do

therefore I try to install a .tar progam like this:

unxz gcc-4.6-20110916.tar.xz
unxz: gcc-4.6-20110916.tar.xz: No such file or directory

and get the no such file or directory message??????????????????????

What am i doing wrong or need to do? Thanks mates!!

cajunchief
 
Old 04-18-2016, 01:00 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 18,918

Rep: Reputation: 2849Reputation: 2849Reputation: 2849Reputation: 2849Reputation: 2849Reputation: 2849Reputation: 2849Reputation: 2849Reputation: 2849Reputation: 2849Reputation: 2849
Try:

tar xf gcc-4.6-20110916.tar.xz
 
Old 04-18-2016, 10:26 PM   #3
cajunchief
Member
 
Registered: Sep 2010
Posts: 231

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
Try:

tar xf gcc-4.6-20110916.tar.xz
Michaelk,

I tried it and this is what i got:

tar xf gcc-4.6-20110916.tar.xz
tar: gcc-4.6-20110916.tar.xz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now

cajunchief
 
Old 04-19-2016, 12:42 AM   #4
tshikose
Member
 
Registered: Apr 2010
Location: Kinshasa, Democratic Republic of Congo
Distribution: RHEL, Fedora, CentOS
Posts: 471

Rep: Reputation: 89
Hi,

I am really surprised that tar is not installed by default on your CentOS system.
As you seem to have a working Internet connection and well configured repositories, launch the command below.

sudo yum install tar

Last edited by tshikose; 04-19-2016 at 03:15 AM. Reason: typos
 
Old 04-19-2016, 02:19 AM   #5
mistabatu
LQ Newbie
 
Registered: Apr 2016
Posts: 2

Rep: Reputation: Disabled
great thanks
 
Old 04-19-2016, 05:50 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 18,918

Rep: Reputation: 2849Reputation: 2849Reputation: 2849Reputation: 2849Reputation: 2849Reputation: 2849Reputation: 2849Reputation: 2849Reputation: 2849Reputation: 2849Reputation: 2849
Is your current working directory where gcc-4.6-20110916.tar.xz is located?
 
Old 04-19-2016, 10:22 AM   #7
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Yawnstown, Ohio
Distribution: Mojave
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by cajunchief View Post
Package xz-4.999.9-0.5.beta.20091007git.el6.i686 already installed and latest version
Nothing to do
Stop.
Code:
whereis tar
tar: gcc-4.6-20110916.tar.xz: Cannot open: No such file or directory
tar is installed so unless you are attempting some gcc4.6-2 code wizardy, I suggest you stop.
 
Old 04-20-2016, 12:38 PM   #8
cajunchief
Member
 
Registered: Sep 2010
Posts: 231

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by tshikose View Post
Hi,

I am really surprised that tar is not installed by default on your CentOS system.
As you seem to have a working Internet connection and well configured repositories, launch the command below.

sudo yum install tar
Tshikose san,

I ran your yum install command and got this message: Package 2:tar-1.23-13.el6.i686 already installed and latest version
Nothing to do

So how can I use the tar command?

cajunchief
 
Old 04-20-2016, 12:56 PM   #9
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133
Quote:
Originally Posted by cajunchief View Post
Tshikose san,

I ran your yum install command and got this message: Package 2:tar-1.23-13.el6.i686 already installed and latest version
Nothing to do

So how can I use the tar command?

cajunchief
You already did, you misunderstood the error.

It wasn't telling you tar couldn't be found, it was telling you the file called "gcc-4.6-20110916.tar.xz" couldn't be found. Same when you used unxz:
Code:
unxz: gcc-4.6-20110916.tar.xz: No such file or directory
That is "unxz" telling you that "gcc-4.6-20110916.tar.xz" is not a valid file or directory name.

Code:
tar: gcc-4.6-20110916.tar.xz: Cannot open: No such file or directory
That is "tar" telling you that "gcc-4.6-20110916.tar.xz" is not a valid file or directory name.

Both programs are working, you're just feeding them a non-existent file name.

Last edited by suicidaleggroll; 04-20-2016 at 12:57 PM.
 
Old 04-30-2016, 10:40 PM   #10
cajunchief
Member
 
Registered: Sep 2010
Posts: 231

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by suicidaleggroll View Post
You already did, you misunderstood the error.

It wasn't telling you tar couldn't be found, it was telling you the file called "gcc-4.6-20110916.tar.xz" couldn't be found. Same when you used unxz:
Code:
unxz: gcc-4.6-20110916.tar.xz: No such file or directory
That is "unxz" telling you that "gcc-4.6-20110916.tar.xz" is not a valid file or directory name.

Code:
tar: gcc-4.6-20110916.tar.xz: Cannot open: No such file or directory
That is "tar" telling you that "gcc-4.6-20110916.tar.xz" is not a valid file or directory name.

Both programs are working, you're just feeding them a non-existent file name.
Suicidaleggroll,

Thank you that makes sense!

cajunchief
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 02:48 AM
Ubunut to CentOS with tar =) ochieman2000 Linux - Newbie 1 10-24-2011 06:05 AM
How to build an RPM from tar.gz on CentOS 4.5? thatguyinss Linux - Software 3 01-12-2009 08:30 PM
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 02:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:02 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration