Four Ways To Install Software On Linux


New to Linux?  Here’s some information that might be useful.

Linux is different from Windows in how software is installed. In Windows, starting with a CD, DVD, or an executable file, you run an executable file and install the software, usually via a GUI with prompts.

 

Redhat Desktop

Redhat Desktop

 

However, in Linux, there are at least 3 or 4 different ways to install software:

rpm packages
yum (related to rpm)
Unzip a file into a directory
Run an executable file or script  

 

——————————–

rpm:

With an rpm, you have a package rpm file, and run the rpm command to install it onto the Linux operating system.

Example:
rpm -ivf opera-12.12-1707.x86_64.rpm

warning: opera-12.12-1707.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 30c18a2b: NOKEY
Preparing packages for installation…
opera-12.12-1707

which opera
/usr/bin/opera

See another post involving rpm:

https://rodgersnotes.wordpress.com/2012/01/09/installing-virtual-box-4-1-4-on-redhat-5-5/
– part of this install used rpm

——————————–

yum:

yum is related to rpm. yum installs a package, via the internet. After connecting to the appropriate server on the web, yum downloads and installs packages onto the Linux operating system.

Examples:

yum info gdm-plugin-smartcard

yum install gdm-plugin-smartcard

See another post involving yum:
https://rodgersnotes.wordpress.com/2012/01/09/installing-virtual-box-4-1-4-on-redhat-5-5/
– another part of the same install used yum.

 

yum can also be configured to do automatic updates to packages, similar to Windows Update.

 

——————————–

Unzip:

A lot of software on Linux is simply extracted from a zip file, into a directory. The executable files are usually in a ../bin directory. And, on Linux, usually requires that java is installed, and the environment variables, PATH, JAVA_PATH, JAVA_HOME are configured correctly.

Examples:

sqlite
NEO4J
gephi

pwd
/gephi

ls -l
total 40064
-rw-r–r–. 1 oracle dba 41024381 Jun 22 00:39 gephi-0.8.2-beta.tar.gz

gunzip gephi-0.8.2-beta.tar.gz -l
total 72304
-rw-r–r–. 1 oracle dba 74039296 Jun 22 00:39 gephi-0.8.2-beta.tar

tar -xvf gephi-0.8.2-beta.tar

gephi/
gephi/bin/
gephi/bin/gephi
….

See the complete instructions for Gephi here:

Installing Gephi On 64 bit Machines
https://rodgersnotes.wordpress.com/2013/07/08/installing-gephi-on-64-bit-machines/

 

——————————–

Executable Files Or Scripts:

Only a fraction of the software that I’ve installed on Linux involved an executable file, similar to Windows. Sometimes, the installer is a GUI, with window prompts, and places to fill in parameters or other information.

Examples:
NVIDIA drivers on Redhat
Oracle and Oracle Applications

See some of my other posts involving executable files:

Oracle Apps R12 Install on Redhat 64 – The Big Picture
https://rodgersnotes.wordpress.com/2011/12/09/oracle-apps-r12-install-on-redhat-64-the-big-picture/
– runs the Oracle Universal Installer

Installing NVidia Drivers on Redhat 6.4 and Removing Nouveau
https://rodgersnotes.wordpress.com/2013/07/07/installing-nvidia-drivers-on-redhat-6-4-and-removing-nouveau/
– runs Linux scripts

——————————–

What bothers me is my usual complaint: documentation is incorrect, or non-existent. Leaving you to “figure it out yourself”. And it doesn’t seem to matter which method is used.

Hey guys, document your software. Especially the installs. It’s just cut and paste, (or screen shots). Not difficult at all!

 

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: