LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-19-2003, 12:48 PM   #1
OneDragonWon
LQ Newbie
 
Registered: Jan 2003
Distribution: Mandrake 8.2
Posts: 13

Rep: Reputation: 0
Unpacking files


I downloaded a java compiler. i am running under gnome. i attempted to run the file, but it opens as a text document, and all i see is code, and some of the liscence agreement. i tried to open it with nautilus, but it says that nautilus cant handle the code. what could be wrong
 
Old 02-19-2003, 12:54 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
what kind of file is it?
 
Old 02-19-2003, 01:17 PM   #3
OneDragonWon
LQ Newbie
 
Registered: Jan 2003
Distribution: Mandrake 8.2
Posts: 13

Original Poster
Rep: Reputation: 0
file

the file is called j2sdk-1_4_0_03-linux-i586-rpm.bin .
 
Old 02-19-2003, 01:19 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
open a terminal and run

chmod +x j2sdk-1_4_0_03-linux-i586-rpm.bin
./j2sdk-1_4_0_03-linux-i586-rpm.bin
 
Old 02-22-2003, 01:49 AM   #5
Crunch
Member
 
Registered: Feb 2003
Location: York, PA
Distribution: Slackware, FreeBSD, OpenBSD
Posts: 162

Rep: Reputation: 30
So wait, you might have answered this already acid but still i want to know; So how do you just normally unpack RPM files?
 
Old 02-22-2003, 01:53 AM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
If you don't want to install the RPM file, and just want to "unpack" it to see what's in the RPM, you have a few options:

1. You can locate and install a program called rpm2tgz which will convert the RPM to a tarball, then you can unpack the tarball to any location and view the files inside.

2. Looking at the manpage, I think that by:
rpm --relocate NEWPATH OR --prefix NEWPATH you can specify where to send the RPM to.

Here's the quote:
Quote:
--prefix NEWPATH
For relocateable binary packages, translate all
file paths that start with the installation prefix
in the package relocation hint(s) to NEWPATH.
Quote:
--relocate OLDPATH=NEWPATH
For relocatable binary packages, translate all file
paths that start with OLDPATH in the package relo_
cation hint(s) to NEWPATH. This option can be used
repeatedly if several OLDPATH's in the package are
to be relocated.
Cool
 
  


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
Unpacking files=Cannot mkdir: Read-only file system Regenten Linux - Newbie 5 09-08-2004 04:23 AM
rpm only unpacking ? sneezesnoeze Linux - Newbie 6 04-02-2004 10:28 AM
unpacking .tar.gz files crazibri Linux - Newbie 5 03-24-2004 03:19 AM
Unpacking.tgz files lachlan Linux - Software 4 05-30-2003 07:31 AM
unpacking multiple .tar.gz files illtbagu Linux - General 5 01-18-2003 06:43 PM


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