The Easiest Method To Install Adobe Flash on CentOS/RHEL

This should be easy, install Adobe Flash on a Linux operating system to watch Youtube videos in Firefox. After an hour or so fighting with Adobe Flash, through every method I could find on the Internet, I finally found one that worked, the first time! There are many who write of downloading a compressed file and extracting the needed file or files to the appropriate plugin directories and so on, and I have tried many of them. Some specifically stated for 32 bit operating systems, others had written of directories that did not exist. One set of instructions worked with success, however, I had to revert the virtual machine back to an earlier state and attempted to install the Flash plugin again and to no avail.

This process is claimed to work with both 32-bit and 64-bit operating systems, works with YUM, and on Fedora 20/19/18/17/16/15/14/13/12, CentOS 6.5/6.4/6.3/6.2/6.1/6/5.10 and Red Hat (RHEL) 6.5/6.4/6.3/6.2/6.1/6/5.10.

#!/bin/bash
# Description: Install Adobe Flash Player 11.2
# For Fedora 20/19/18/17/16/15/14/13/12, CentOS 6.x, Red Hat (RHEL) 6.x, SL 6.x, and Oracle Linux 6.x

# Install Adobe Repository
if [ $(arch) = "i686" ]; then
# 32-bit
rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm
else
# 64-bit
rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm
fi

rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux

# Update Repositories and Install Adobe Flash Player
yum check-update
yum install -y flash-plugin nspluginwrapper alsa-plugins-pulseaudio libcurl

Source(s)
http://www.if-not-true-then-false.com/2010/install-adobe-flash-player-10-on-fedora-centos-red-hat-rhel/