LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-02-2013, 10:58 AM   #1
ift38375
LQ Newbie
 
Registered: Dec 2012
Posts: 21

Rep: Reputation: Disabled
How to Install tar.xz file in Redhat Linux


Hello Experts,

I am trying to install "gnome-disk-utility-3.6.1.tar.xz" in redhat Linux Workstation 4
through TAR command but it is showing some error.

I have tried so many command in terminal like as:

tar xvf gnome-disk-utility-3.6.1.tar.xz
tar xvzf gnome-disk-utility-3.6.1.tar.xz
tar -xvzf gnome-disk-utility-3.6.1.tar.xz
tar zxf gnome-disk-utility-3.6.1.tar.xz
...............
................
...............

But Still having same problem.....

Plz help me
 
Old 01-02-2013, 11:08 AM   #2
linuxpokernut
Member
 
Registered: Jul 2007
Distribution: Slackware 14
Posts: 237
Blog Entries: 8

Rep: Reputation: 59
Quote:
Originally Posted by ift38375 View Post
Hello Experts,

I am trying to install "gnome-disk-utility-3.6.1.tar.xz" in redhat Linux Workstation 4
through TAR command but it is showing some error.

I have tried so many command in terminal like as:

tar xvf gnome-disk-utility-3.6.1.tar.xz
tar xvzf gnome-disk-utility-3.6.1.tar.xz
tar -xvzf gnome-disk-utility-3.6.1.tar.xz
tar zxf gnome-disk-utility-3.6.1.tar.xz
...............
................
...............

But Still having same problem.....

Plz help me
Try the -J flag.
 
Old 01-02-2013, 11:26 AM   #3
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,026

Rep: Reputation: 333Reputation: 333Reputation: 333Reputation: 333
You need the package xz-utils installed, the syntax for the command is:
Code:
tar xz gnome-disk-utility-3.6.1.tar.xz
Regards
 
1 members found this post helpful.
Old 01-02-2013, 12:38 PM   #4
bijo505
Member
 
Registered: Nov 2012
Location: Bangalore
Distribution: Fedora & Ubuntu
Posts: 77

Rep: Reputation: 18
Hi ift38375,
After installing the package xz-utils (It might be there in your system) run the following.

xz -dvk <filename.tar.xz>
--
Thanks,
Bijo
 
Old 01-02-2013, 01:04 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,519

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
EL 4 :

/usr/bin/xz is provided by the package 'xz' :
The rpmforge repo http://repoforge.org/ > http://repoforge.org/use/
The el4 packages http://pkgs.repoforge.org/xz/
Or find the package at http://rpm.pbone.net

'xz' depends on the package 'xz-libs'.


"gnome-disk-utility-3.6.1.tar.xz" can be unpacked with :
1) xz -d gnome-disk-utility-3.6.1.tar.xz
2) tar xvf gnome-disk-utility-3.6.1.tar

.

Last edited by knudfl; 01-02-2013 at 01:12 PM.
 
Old 01-02-2013, 02:11 PM   #6
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,786

Rep: Reputation: 797Reputation: 797Reputation: 797Reputation: 797Reputation: 797Reputation: 797Reputation: 797
Your biggest problem is that you will really, really struggle to resolve all the build dependencies needed for gnome-disk-utility on such an old distro (in fact I'm doubtful it can be done). Why are you using such an old distro and can't you simply upgrade it?

That said, if you really want to try. You could also quickly compile up a XZ decompressor binary and use that to help you open the gnome-disk-utility archive. You don't have to install the full XZ Utils.

Code:
wget http://tukaani.org/xz/xz-5.0.4.tar.bz2
tar xjf xz-5.0.4.tar.bz2
cd xz-5.0.4
./configure \
  --enable-small \
  --disable-xz \
  --disable-lzmadec \
  --disable-shared \
  --disable-nls \
  --disable-encoders \
  --disable-threads \
  --disable-lzmainfo \
  --disable-scripts \
  --disable-lzma-links 
make
strip --strip-unneeded src/xzdec/xzdec
su -c "install -m 755 src/xzdec/xzdec /usr/local/bin/xzdec"
Once this is installed you can open gnome-disk-utility-3.6.1.tar.xz as follows:

Code:
xzdec gnome-disk-utility-3.6.1.tar.xz | tar x

Last edited by ruario; 01-02-2013 at 02:22 PM. Reason: Moved the most important point to the start
 
Old 01-02-2013, 02:27 PM   #7
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,786

Rep: Reputation: 797Reputation: 797Reputation: 797Reputation: 797Reputation: 797Reputation: 797Reputation: 797
Quote:
Originally Posted by ukiuki View Post
Code:
tar xz gnome-disk-utility-3.6.1.tar.xz
That won't work because you wrote 'z' instead of 'f', his tar is too old to automatically detect xz compressed tar archives and because he doesn't have xz installed.
 
Old 01-02-2013, 04:29 PM   #8
John VV
Guru
 
Registered: Aug 2005
Posts: 12,602

Rep: Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677
This is the now unsupported RHEL4 , so....
that is unless the OP is paying red hat a ton of cash for the "extra" extended life support

if at all possible contact your red hat sales rep and buy RHEL6.3
 
Old 01-03-2013, 03:38 AM   #9
ift38375
LQ Newbie
 
Registered: Dec 2012
Posts: 21

Original Poster
Rep: Reputation: Disabled
Hi experts,

I tried all commands given by all of you
but still it is showing two errors :

1. bash : xz:command not found

2. Tar: this does not look like a tar archive
tar: skipping to next header

Note:

I do not want to upgrade existing version of linux
so tell me alter way to rectify this. is there any
possibility to upgrade bash shell or Else which is
related to this command ? Plz Unprofessional members
keep away from this thread............
 
Old 01-03-2013, 04:05 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,519

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
# 9
Quote:
1. bash : xz:command not found
Please read post # 5.
 
Old 01-03-2013, 04:37 AM   #11
ift38375
LQ Newbie
 
Registered: Dec 2012
Posts: 21

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 9


Please read post # 5.

Hi,

Solution Given by you is not Working,
xz command not exists....
Plz Tell me the procedure Step by Step
so that i can do it easily

Last edited by ift38375; 01-03-2013 at 04:41 AM.
 
Old 01-03-2013, 05:24 AM   #12
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,786

Rep: Reputation: 797Reputation: 797Reputation: 797Reputation: 797Reputation: 797Reputation: 797Reputation: 797
Let me reiterate again that even once you open the gnome-disk-utility-3.6.1.tar.xz package you will have a far bigger problem. It has multiple build dependencies that are not found in such an old version of Red Hat. You will struggle to get it to work, particularly if you are already having issues with opening an XZ compressed tar archive (no offence intended). Perhaps you would be better stating why you feel you have to stick with such an old distro and someone could help you get around that (I honestly believe this will be an easier problem to solve than getting gnome-disk-utility-3.6.1 working). Alternatively if you explain why you want gnome-disk-utility-3.6.1, someone here may be able to suggest an alternative that is easier to get running on your old system.

That said, if you really feel you want to try by all means go ahead but when asking for advice it would be much more helpful if you posted the exact (copy and pasted or typed up word for word) error messages at each stage of you attempting to follow the instructions you have been provided, then someone here can see exactly what failed and give you better advice.

knudfl was very clear and yet you have not explained if you were even able to install the XZ packages he linked to or not and if you couldn't install them, why not? What error message did you get?

That said, I'll try again using the links he gave you previously. Firstly, install the xz-libs-4.999.9-0.2.beta.20091007git.el4.rf package and then the xz-4.999.9-0.2.beta.20091007git.el4.rf package

If you use i386, i486, i586 or i686 Linux:
xz-libs-4.999.9-0.2.beta.20091007git.el4.rf.i386.rpm
xz-4.999.9-0.2.beta.20091007git.el4.rf.i386.rpm

If you use x86_64 Linux:
xz-libs-4.999.9-0.2.beta.20091007git.el4.rf.x86_64.rpm
xz-4.999.9-0.2.beta.20091007git.el4.rf.x86_64.rpm

If you are unsure if you are using i[3-6]86 or x86_64, use the following command in a terminal window:

Code:
uname -p
If it prints something other than i386, i486, i586, i686 or x86_64 then please post back here and state what it printed.

If you have problems installing the rpm packages, please post back with the exact error message(s) you received.

Once these are installed you can open gnome-disk-utility-3.6.1.tar.xz as follows:

Code:
xzdec gnome-disk-utility-3.6.1.tar.xz | tar x
or

Code:
tar xf gnome-disk-utility-3.6.1.tar.xz --use-compress-program=xz
or

Code:
unxz gnome-disk-utility-3.6.1.tar.xz
tar xf gnome-disk-utility-3.6.1.tar

Last edited by ruario; 01-03-2013 at 05:49 AM. Reason: added highlighting for clarity
 
Old 01-03-2013, 05:30 AM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,519

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
# 11

Testing the xz install on an old EL4 system :

1) wget http://pkgs.repoforge.org/xz/xz-libs...l4.rf.i386.rpm
2) wget http://pkgs.repoforge.org/xz/xz-4.99...l4.rf.i386.rpm

3) su <password>
4) rpm -Uvh xz-libs-4.999.9-0.2.beta.20091007git.el4.rf.i386.rpm
5) rpm -Uvh xz-4.999.9-0.2.beta.20091007git.el4.rf.i386.rpm
6) exit

7) $ xz --help : 'xz' is present and works.
7a) $ which xz : The reply is : /usr/bin/xz


... And : @ruario is of course right : xz makes no "gnome-disk-utility-3.6.1".
"EL 4" is an ancient OS !


.

Last edited by knudfl; 01-03-2013 at 05:35 AM.
 
Old 01-03-2013, 06:35 AM   #14
ift38375
LQ Newbie
 
Registered: Dec 2012
Posts: 21

Original Poster
Rep: Reputation: Disabled
ruario #

Actually purpose to install this *.tar.xz" file
to create Partion of Linux hardisk in GUI mode
because i do not have access of DRUID window,
DRUID not comes after installation of Linux.

knudfl #

I will let you know after complete
whole procedure....I think "TAR" command
is not used for installation,it is used for
Compress and Decompress the file But you not
mentioned some installation command like
./configure,
make,
make install

I have some general Queries to All of you:

1. How to know the directory / folder of installed
Linux applications / programs like as .rpm, .tar.gz,.tar.xz
whatever. what is exact location where program Installed,
mean to say, /etc or /usr or /var or else.
is it take path itself or can we choose according to ourselves ?

2. What is difference between .rpm and .tar.gz/xz/??


Plz explain with correct commands

Last edited by ift38375; 01-03-2013 at 06:52 AM.
 
Old 01-03-2013, 07:04 AM   #15
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,786

Rep: Reputation: 797Reputation: 797Reputation: 797Reputation: 797Reputation: 797Reputation: 797Reputation: 797
Quote:
Originally Posted by ift38375 View Post
ruario #

Actually purpose to install this *.tar.xz" file
to create Partion of Linux hardisk in GUI mode
because i do not have access of DRUID window,
DRUID not comes after installation of Linux.
The package you want to install is a "source package". It would need to be extracted, and then compiled into binary code to use it. You can't simply install it.

If you want a graphical tool for Linux partitioning use GParted. An old version may be available for RHEL4 and if not it doesn't matter as you don't even need to install GParted, since you could use a Parted Magic LiveCD to boot your machine, do the partitioning and reboot. In fact this is a safer/better way if you intend to re-partition the disk on which your Linux install currently lives.

Partioning is a risky business in any case so before you attempt it remember to backup any important data first.

Quote:
Originally Posted by ift38375 View Post
knudfl #

I will let you know after complete
whole procedure....I think "TAR" command
is not used for installation,it is used for
Compress and Decompress the file But you not
mentioned some installation command like
./install,
make,
make install
I'm not knudfl but I will answer nonetheless. Indeed tar is not typically used directly for installation. It is an archive format (like zip on Windows machines) but before you can compile the software (a.k.a. './configure && make && make install') you would have to extract the contents of the source archive. You do not want to attempt this however with gnome-disk-utility-3.6.1.tar.xz on RHEL4. Use GParted as explained above.

For a bit of background. To compile software you would need to install a compiler (e.g. gcc), various related tools (e.g. make), and some development libraries first. In addition you would need to satisfy all the 'build dependencies' first (other applications that the program you want to compile needs pre-installed first). For something like gnome-disk-utility-3.6.1.tar.xz on RHEL4, this would be a nightmare.

To put this into perspective, Red Hat Enterprise Linux 4 was based on Fedora Core 3, which was first released on the 8th of November 2004. So this distro is based on technology that is over 8 years old. In Linux world where technology moves so fast this is a different era, considering how much has changed. Version 3.6.1 of GNOME Disks (a.k.a. gnome-disk-utility) is the very latest version, released just 2 months ago. To build it you will also need GTK+-3.6.2, Intltool-0.50.2, libsecret-0.11, libpwquality-1.2.0 and UDisks-2.0.0 and all of their dependencies.

Each of these will present problems as they in turn will have multiple dependencies that will not be available on your old system either. Perhaps the worst problem is the Udisks (a.k.a. DeviceKit-disks) requirement because it was designed to replace certain aspects of HAL (Hardware Abstraction Layer), which is what RHEL4 uses. HAL is very low level and not something one would wish to replace within an old distro like RHEL4 as numerous other things will depend on it, each of which will have to be tweaked, updated or replaced, which in turn will have a cascade effect on other components of the OS. Long story short, this will be an incredibly hard and time consuming job as you track down, build and replace various components. Additionally to be able to keep track of all that you would have to replace, you will also need to spend time learning about rpm packaging and make actual packages or the system will quickly become unworkable and unmaintainable.

At the end of all this your distro will be "upgraded" in some sense since it will have various modern components and will not at all resemble other RHEL4 systems out there. Or to put it another way, you either upgrade your distro the traditional (and easier) way or you upgrade it the hard, time consuming way. One way or another you have to upgrade your distro, there is no getting around it if you really wanted version 3.6.1 of GNOME Disks.

Which brings us back to, just use GParted from a LiveCD and save yourself a world of hassle.

Quote:
Originally Posted by ift38375 View Post
I have some general Queries to All of you:

1. How to know the directory / folder of installed
Linux applications / programs like as .rpm, .tar.gz,.tar.xz
whatever. what is exact location where program Installed,
mean to say, /etc or /usr or /var or else.
is it take path itself or can we choose according to ourselves ?
For rpm or deb no you cannot decide the path (technically there is something called a relocatable rpm package but these are very rare so you might as well pretend they don't exist for now). For software you have compiled from source you can generally tweak the directories where applications install but in most cases you would only want to choose between a few common locations.

Also with the exception of some software that installs everything under /opt, most applications do not install all their files into one location on the disk, i.e. some files may be put in /etc (configuration files), others in /usr/bin (executables), others in /usr/lib (libraries, which are like dlls in the Windows world) and so on.

On Windows this might be considered a problem for people who remove software manually (outside of the official uninstall routine). That is generally a bad idea even on Windows (unless you really understand what you are doing) but is an even worse idea under Linux. The packaging managers on Linux are pretty advanced so you need not actually worry about where the various components of the software are installed, just trust the package manager to handle it. Though if you are curious you can also ask the package manager to tell you where various files belonging to a given package have been placed. There are various query commands for this kind of thing.

You only want to worry about where files are installed for software you have installed from source (and even then there are tools to assist you) but installing software from source is an advanced topic and if you are new to Linux I would stick to using official package appropriate for your distro. In the case of Red Hat, that would be rpms.

Quote:
Originally Posted by ift38375 View Post
2. What is difference between .rpm and .tar.gz/xz/??
An rpm is the native install package format for Red Hat Linux and a range of other distros. A tar.{gz,bz2,xz,lz,lzop} is an archive format like zip on Windows. It is just a collection of files.

Last edited by ruario; 01-03-2013 at 07:10 AM. Reason: spelling
 
  


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
[SOLVED] How to install tar file (firefox9.0.1) on Linux jshoner Linux - Software 10 01-30-2012 05:27 PM
.tar.gz install file for linux? finditsol Linux - Software 4 10-09-2009 04:03 AM
How to install tar.gz & tar.bz2 file on Linux min Krishnendu Linux Mint 2 07-16-2009 06:52 AM
How can I install a .tar file in Linux? kamasake Linux - Software 3 05-22-2005 07:13 AM


All times are GMT -5. The time now is 08:44 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration