Linux环境:CentOS 6.5
以下安装命令使用root用户权限执行
1、安装epel和remi的repository:
1
2
|
yum localinstall --nogpgcheck
http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
|
1
2
|
yum localinstall --nogpgcheck
http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
|
2、安装rpmfusion的repository:
下面两个rpm包都要安装
1
2
|
yum localinstall --nogpgcheck
http://download1.rpmfusion.org/free/el/updates/6/i386/rpmfusion-free-release-6-1.noarch.rpm
|
1
2
|
yum localinstall --nogpgcheck
http://download1.rpmfusion.org/nonfree/el/updates/6/i386/rpmfusion-nonfree-release-6-1.noarch.rpm
|
3、查看vlc的版本信息:
1
|
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、安装之:
1
|
yum --enablerepo=remi-test install vlc
|
完事之后直接运行输入vlc运行
不幸的是,它会告诉你说vlc不支持root。
退出root用户,使用普通用户执行vlc命令
若没有创建普通用户,使用以下命令创建:
useradd username -p
创建完使用该用户
执行vlc命令
(责任编辑:IT) |