Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.'
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?
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,679
Rep:
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.