Linux(CentOS)下的Shockwave Flash shell一键更新脚本

2016年09月26日

原创内容,转载请注明出处: https://www.myzhenai.com.cn/post/2318.html https://www.myzhenai.com/thread-17933-1-1.html
关键字: Shockwave Flash一键更新脚本 Flash一键更新脚本
这个脚本其实是我自己用的, 我的系统里安装了FlashPlayer软件和火狐(firefox)浏览器里安装了Shockwave Flash插件,因为要一个一个来更新显得太麻烦,所以我自己写了这么一个小脚本来快速更新. 原理很简单, 从官方网站上下载FlashPlayer的最新版本到本地覆盖旧版本程序,然后通过flashplayer -v得到最新的版本号,再通过指定的官方下载链接将Shockwave Flash插件下载到本地并安装,在安装之前自动卸载旧版本的Shockwave Flash.

# !/bin/bash
wget https://fpdownload.macromedia.com/pub/flashplayer/updaters/11/flashplayer_11_sa.i386.tar.gz /*下载最新版本文件*/
tar -xzvf flashplayer_11_sa.i386.tar.gz /*解压当前文件*/
mv -f flashplayer /usr/bin/ /*移动当前文件*/
rm -rf LGPL /*删除当前文件目录*/
rm -rf flashplayer_11_sa.i386.tar.gz /*删除下载的源文件*/
killall -9 firefox /*终止火狐浏览器进程*/
yum remove flash-plugin -y /*卸载旧版本的Shockwave Flash插件*/
h=`flashplayer -v|sed '/^$/!h;$!d;g'|sed 's/,/./g'` /*通过flashplayer -v得到当前最新版本的版本号*/
wget https://fpdownload.adobe.com/get/flashplayer/pdc/$h/flash-plugin-$h-release.i386.rpm /*下载最新版本的插件*/
rpm -ivh flash-plugin-$h-release.i386.rpm /*安装最新版本的插件*/

 

# !/bin/bash
wget https://fpdownload.macromedia.com/pub/flashplayer/updaters/11/flashplayer_11_sa.i386.tar.gz
tar -xzvf flashplayer_11_sa.i386.tar.gz
mv -f flashplayer /usr/bin/
rm -rf LGPL
rm -rf flashplayer_11_sa.i386.tar.gz
killall -9 firefox
yum remove flash-plugin -y
h=`flashplayer -v|sed '/^$/!h;$!d;g'|sed 's/,/./g'`
wget https://fpdownload.adobe.com/get/flashplayer/pdc/$h/flash-plugin-$h-release.i386.rpm
rpm -ivh flash-plugin-$h-release.i386.rpm

 

Linux(CentOS)下的Shockwave Flash shell一键更新脚本

Linux(CentOS)下的Shockwave Flash shell一键更新脚本


sicnature ---------------------------------------------------------------------
Your current IP address is: 3.236.234.62
Your IP address location: 美国弗吉尼亚阿什本
Your IP address country and region: 美国 美国
Your current browser is:
Your current system is:
Original content, please indicate the source:
同福客栈论坛 | 蟒蛇科普海南乡情论坛 | JiaYu Blog
sicnature ---------------------------------------------------------------------
Welcome to reprint. Please indicate the source https://myzhenai.com/post/2318.html

没有评论

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注