Linux环境:CentOS 6.5
以下安装命令使用root用户权限执行
1、安装epel和remi的repository:
yum localinstall --nogpgcheck
http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum localinstall --nogpgcheck
http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
2、安装rpmfusion的repository:
下面两个rpm包都要安装
yum localinstall --nogpgcheck
http://download1.rpmfusion.org/free/el/updates/6/i386/rpmfusion-free-release-6-1.noarch.rpm
yum localinstall --nogpgcheck
http://download1.rpmfusion.org/nonfree/el/updates/6/i386/rpmfusion-nonfree-release-6-1.noarch.rpm
3、查看vlc的版本信息:
yum --enablerepo=remi-test info vlc
不出意外的,这条命令下去,结果应该是下面这样子的:
Available Packages
Name : vlc
Arch : i686
Version : 2.0.6
Release : 1.el6
Size : 1.4 M
Repo : rpmfusion-free-updates
Summary : The cross-platform open-source multimedia framework, player and
: server
URL : http://www.videolan.org
License : GPLv2+
Description : VLC media player is a highly portable multimedia player and
: multimedia framework capable of reading most audio and video
: formats as well as DVDs, Audio CDs VCDs, and various streaming
: protocols. It can also be used as a media converter or a server to
: stream in uni-cast or multi-cast in IPv4 or IPv6 on networks.
4、安装之:
yum --enablerepo=remi-test install vlc
完事之后直接运行输入vlc运行
vlc
不幸的是,它会告诉你说vlc不支持root。
退出root用户,使用普通用户执行vlc命令
vlc
若没有创建普通用户,使用以下命令创建:
useradd username -p
#useradd vlc -p123456
创建完使用该用户
su vlc
执行vlc命令
原文参考:http://www.linuxidc.com/Linux/2015-04/116262.htm
感谢博主!