Skip to main content

Installing Flash on RHEL

I created this post for someone that is new to Red Hat that asked about installing the Flash plugin.  The Flash plugin is actually a really good example to learn with (in my opinion).  It is available from Red Hat as well as Adobe.  And may cause a problem for you when you attempt to do updates.

Which is the first lesson: you have to be selective what non-Red Hat REPOs you add to your system.  I have not encountered an issue with package incompatibilities in quite some time using on Red Hat REPOs.  I cannot say the same about some of the 3rd-party REPOs out there.

NOTE: I am going to intentionally break my system, then correct it.

Add Adobe's REPO
[jradtke@apoc ~]$ wget http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm
--2014-02-09 10:29:46--  http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm
Resolving linuxdownload.adobe.com... 192.150.16.37
Connecting to linuxdownload.adobe.com|192.150.16.37|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4256 (4.2K) [application/x-rpm]
Saving to: “adobe-release-x86_64-1.0-1.noarch.rpm”

100%[======================================>] 4,256       --.-K/s   in 0.05s  

2014-02-09 10:29:47 (82.3 KB/s) - “adobe-release-x86_64-1.0-1.noarch.rpm” saved [4256/4256]

[jradtke@apoc ~]$ sudo yum localinstall ./adobe-release-x86_64-1.0-1.noarch.rpm
Loaded plugins: product-id, rhnplugin, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Local Package Process
Examining ./adobe-release-x86_64-1.0-1.noarch.rpm: adobe-release-x86_64-1.0-1.noarch

View the available versions of flash-plugin

You will now notice there are 2 versions available.  One is an i686 package, the other x86_64.  I have found that the package available from Adobe is functional more consistently than the i686 rpm.  Hence the reason I go through this procedure.
[jradtke@apoc ~]$ sudo yum list flash-plugin
Loaded plugins: product-id, rhnplugin, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
This system is receiving updates from RHN Classic or RHN Satellite.
Available Packages
flash-plugin.x86_64   11.2.202.336-release    adobe-linux-x86_64               
flash-plugin.i686     11.2.202.336-1.el6      rhel-x86_64-server-supplementary-6

Cool - simple enough - let's install flash-plugin
[jradtke@apoc ~]$ sudo yum -y install flash-plugin
Loaded plugins: product-id, rhnplugin, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package flash-plugin.x86_64 0:11.2.202.336-release will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package         Arch      Version                  Repository             Size
================================================================================
Installing:
 flash-plugin    x86_64    11.2.202.336-release     adobe-linux-x86_64    6.9 M

Transaction Summary
================================================================================
Install       1 Package(s)

Total download size: 6.9 M
Installed size: 19 M
Downloading Packages:
flash-plugin-11.2.202.336-release.x86_64.rpm             | 6.9 MB     00:03   
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : flash-plugin-11.2.202.336-release.x86_64                     1/1
  Verifying  : flash-plugin-11.2.202.336-release.x86_64                     1/1

Installed:
  flash-plugin.x86_64 0:11.2.202.336-release                                  

Complete!
Again - everything seems to be going great.

Now, let's update our system.
[jradtke@apoc ~]$ sudo yum -y update
Loaded plugins: product-id, rhnplugin, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package flash-plugin.x86_64 0:11.2.202.336-release will be updated
---> Package flash-plugin.i686 0:11.2.202.336-1.el6 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package      Arch Version             Repository                          Size
================================================================================
Updating:
 flash-plugin i686 11.2.202.336-1.el6  rhel-x86_64-server-supplementary-6 5.3 M

Transaction Summary
================================================================================
Upgrade       1 Package(s)

Total download size: 5.3 M
Downloading Packages:
flash-plugin-11.2.202.336-1.el6.i686.rpm                 | 5.3 MB     00:00   
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : flash-plugin-11.2.202.336-1.el6.i686                         1/1
  Verifying  : flash-plugin-11.2.202.336-1.el6.i686                         1/2
flash-plugin-11.2.202.336-release.x86_64 was supposed to be removed but is not!
  Verifying  : flash-plugin-11.2.202.336-release.x86_64                     2/2

Updated:
  flash-plugin.i686 0:11.2.202.336-1.el6                                      

Failed:
  flash-plugin.x86_64 0:11.2.202.336-release                                  

Complete!

Why did it add the i686 version, when I already have the x86_64 version?  (That was not rhetorical, I actually DON'T know why that happens)
 There are potentially several methods which this could be corrected (yum-priorities for example) but since this is a single package and probably has no significant use other than for the browser, I am going to do the following:
Remove the i686 version of flash-plugin
[jradtke@apoc ~]$ sudo yum remove flash-plugin.i686

Add the line in bold to /etc/yum.conf (to ignore the Red Hat version)
[jradtke@apoc ~]$ cat /etc/yum.conf
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=3

exclude=flash-plugin* 

Now, everything is well again ;-)
[jradtke@apoc ~]$ sudo yum -y update
Loaded plugins: product-id, rhnplugin, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Update Process
No Packages marked for Update
[jradtke@apoc ~]$

Comments

Popular posts from this blog

P2V using dd for KVM-QEMU guest

Preface: I have certainly not exhaustively tested this process.  I had a specific need and found a specific solution that worked. Situation:  I was issued a shiny new laptop running Red Hat Enterprise Linux 7 (with Corp VPN, certs, Authentication configuration, etc...)  The image was great, but I needed more flexibility on my bare metal.  So, my goal was to P2V the corporate image so I could just run it as a VM. * Remove corporate drive and install new SSD * install corp drive in external USB-3 case * Install RHEL 7 on new SSD * dd old drive to a disk-image file in a temp location which will be an image which is the same size as your actual drive (unless you have enough space in your destination to contain a temp and converted image) * convert the raw disk-image to a qcow file while pushing it to the final location - this step should reduce the disk size - however, I believe it will only reduce/collapse zero-byte blocks (not just free space - i.e. if you de...

Extending SNMP to run arbitrary shell script

Why are we here... This is not likely something I would have pursued under normal circumstances.  I happen to be working for a customer/client who is not afforded a lot of flexibility to accomplish their goals.  In this case, the rigor is justified.  They have to sometimes be fairly creative with how they solve problems. In this case they would like to utilize an existing snmp implementation to execute a command (or shell script) on a remote system.  They came to me with the idea of using Net-SNMP extend. https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/sect-System_Monitoring_Tools-Net-SNMP-Extending.html NOTE:  This is NOT a good implementation strategy in the "real world"  it will simply allow you to test the functionality.  There are a TON of security implications which would need to be taken in to consideration. Implementation Steps: [root@rh7tst01 ~]# yum -y install net-snmp net-snmp-utils ...

RHN Satellite Server (spacewalk) repomd.xml not found

"repomd.xml not found" If you add a channel, or if your RHN cache gets corrupted, and one of your guests complains that it cannot find repomd.xml for jb-ews-2-x86_64-server-5-rpm (for example) - you need to rebuild your repodata cache. Normally this is an automated job - which is exemplified by the fact that you have obviously built out your entire Satellite environment and never had to do any of the steps you are about to do. So - some prep work: Open 3 terminals to your Satellite Server and run: # Term 1 cd /var/cache/rhn watch "ls -l | wc -l" # Term 2 pwd cd /var/log/rhn tail -f rhn_taskomatic_daemon.log # Term 3 satellite-sync --channel=jb-ews-2-x86_64-server-5-rpm Once the satellite-sync has completed, you >should< see the count increment by one.  If you are unlucky (like me) you will not. You then need to login to the Satellite WebUI as the satellite admin user. Click on the Admin tab (at the top) Task Schedules (on the left) fin...