LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 11-12-2016, 11:13 AM   #1
Przemas
LQ Newbie
 
Registered: Sep 2016
Posts: 9

Rep: Reputation: Disabled
Is there a way to extract .run file?


I have a self extracting archive packaged as .run file, but as it wants to write in the system area I'd love to extract it first and look at the contents. Is there a way to do it?

Unzip / tar won't extract straight away. When I opened the file in the text editor I can see the installation script - but it is a bit complex one for me and I haven't figured the things out.
 
Old 11-12-2016, 11:53 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 7,569

Rep: Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697
There's usually a script and an archive in them, but the format and the script varies. They often accept --help, and in the script look out for lines beginning with '#' where you may find the info you require. In many there are options like 'explode,' 'extract' or 'uninstall.'
 
Old 11-12-2016, 12:11 PM   #3
Habitual
LQ Addict
 
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM17.1/Xfce4.11.8
Posts: 7,166
Blog Entries: 10

Rep: Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979
Quote:
Originally Posted by Przemas View Post
I'd love to extract it first and look at the contents. Is there a way to do it?
...When I opened the file in the text editor I can see the installation script
What is the problem?
You see it but don't understand it?

Do you know how to run it, assuming you did understand it?
 
Old 11-12-2016, 01:28 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,822

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
if this UNKNOWN run file is the nvidia driver
please see the HELP option
Code:
NVIDIA-Linux*.run -h
there is a option to extract only
 
Old 11-12-2016, 01:40 PM   #5
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,004

Rep: Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620
The simple answer to the question is no. It is not possible to in somw way extract a human-readable file. The bit you cannot ready is a "binary blob". Take it or leave it.
 
Old 11-12-2016, 04:24 PM   #6
Przemas
LQ Newbie
 
Registered: Sep 2016
Posts: 9

Original Poster
Rep: Reputation: Disabled
so in short - it is not possible, right?
Strange, as basically I thought it is simply a combined script and an archive - thus I assumed you can bypass install script.
Other than that installer works - but I just wanted to see where it actually puts the files (and which ones) which would help me in troubleshooting where it messes things I have already installed.
 
Old 11-12-2016, 04:29 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,822

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
well WHAT IS THIS .run file!!!!!!

it's name please and where did you get it ?

and did you see it there are ANY OPTIONS in the help menu!!!!!!

for a run like the nvidia driver you CAN EXTRACT IT with out installing
Code:
sh *.run -h

NVIDIA-Linux-x86_64-340.98.run [options]

This program will install the NVIDIA Accelerated Graphics Driver for
Linux-x86_64 340.98 by unpacking the embedded tarball and executing
the ./nvidia-installer  installation utility.

Below are the most common options; for a complete list use
'--advanced-options'.

--info
  Print embedded info (title, default target directory) and exit.

--check
  Check integrity of the archive and exit.

-x, --extract-only
  Extract the contents of NVIDIA-Linux-x86_64-340.98.run, but do not
  run 'nvidia-installer'.


The following arguments will be passed on to the ./nvidia-installer
utility:

  -a, --accept-license
      Bypass the display and prompting for acceptance of the
      NVIDIA Software License Agreement.  By passing this option
      to nvidia-installer, you indicate that you have read and
      accept the License Agreement contained in the file
      'LICENSE' (in the top level directory of the driver
      package).

  --update
      Connect to the NVIDIA FTP server '
      ftp://download.nvidia.com ' and determine the latest
      available driver version.  If there is a more recent driver
      available, automatically download and install it.  Any
      other options given on the commandline will be passed on to
      the downloaded driver package when installing it.

  -v, --version
      Print the nvidia-installer version and exit.

  -h, --help
      Print usage information for the common commandline options
      and exit.

  -A, --advanced-options
      Print usage information for the common commandline options
      as well as the advanced options, and then exit.

Last edited by John VV; 11-12-2016 at 04:31 PM.
 
Old 11-12-2016, 05:22 PM   #8
Przemas
LQ Newbie
 
Registered: Sep 2016
Posts: 9

Original Poster
Rep: Reputation: Disabled
it's not nvidia driver - it is a package with assets for the 3d app I use. That's why I assumed those .run files are easy in nature, a combination of extraction script (with options) and archive.
 
Old 11-12-2016, 05:24 PM   #9
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
Execute it in chroot.
 
  


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
Extract .run during make injijagwalaafq Linux - Software 3 02-18-2016 01:38 PM
How to do search & replace on a text file--need to extract URLs from a sitemap file Mountain Linux - General 4 08-07-2015 11:52 AM
Where to extract, install, and run a program TSynergy Linux - Newbie 7 03-10-2006 09:09 PM
Can't run blender 3d under mandrake 10 after I extract it. How come? bkcrane Linux - Newbie 4 08-15-2004 11:52 PM
I get errors when trying to run tar to extract gschrade Linux - Newbie 9 11-10-2003 12:32 PM


All times are GMT -5. The time now is 08:34 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration