How to Install VLC Media Player on CentOS 7 Linux
September 26, 2020
This post will show you how to install VLC Media Player on your CentOS 7 Linux. How do I install the latest VLC Player version through command line on the latest CentOS 7 operating system? This guide will show step by step instruction to install VLC Media Player in CentOS 7 Linux.
Table of Contents
What is VLC Media Player?
VLC is a free and open source cross-platform multimedia player and framework that plays most multimedia files as well as DVDs, Audio CDs, VCDs and various streaming protocols. It supports most of the common video formats, so it is very popular in the Linux world.
VLC Media Player is also available for Desktop operating systems and mobile platforms, such as: Window phone, Android, IOS and Tizen.
Before installing VLC Media Player on your CentOS 7 Linux system, and you need to make sure that you are logged in as a user with sudo privilege so that to be able to install packages.
Before launch VLC Player, you need to make sure that a graphical environment is installed on your CentOS 7 system, so that you can be able to use VLC media player.
Install VLC Media Player on CentOS 7
To install VLC Media Player on your CentOS 7 Linux system, and just do the following steps:
Step1: install EPEL Repository
Since VLC packages are available in the RPM Fusion repository. And the RPM Fusion repository depends on the EPEL repository. To install EPEL repository, just do the following steps:
$ sudo yum install epel-release -y
Once epel package is installed, it will create epel repository files under /etc/yum.repos.d/ directory.
[devops@localhost ~]$ cat /etc/yum.repos.d/epel.repo [epel] name=Extra Packages for Enterprise Linux 7 - $basearch #baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch&infra=$infra&content=$contentdir failovermethod=priority enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 [epel-debuginfo] name=Extra Packages for Enterprise Linux 7 - $basearch - Debug #baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch/debug metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-7&arch=$basearch&infra=$infra&content=$contentdir failovermethod=priority enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 gpgcheck=1 [epel-source] name=Extra Packages for Enterprise Linux 7 - $basearch - Source #baseurl=http://download.fedoraproject.org/pub/epel/7/SRPMS metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-source-7&arch=$basearch&infra=$infra&content=$contentdir failovermethod=priority enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 gpgcheck=1
Step2: install RPM Fusion Repository
You need to install RPM Fusion repository package on your CentOS 7 Linux for installing VLC media player, type:
$ sudo yum install https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm
Outputs:
[devops@localhost ~]$ sudo yum install https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm
Loaded plugins: fastestmirror, langpacks
Repository epel is listed more than once in the configuration
Repository epel-debuginfo is listed more than once in the configuration
Repository epel-source is listed more than once in the configuration
rpmfusion-free-release-7.noarch.rpm | 6.3 kB 00:00:00
Examining /var/tmp/yum-root-qXxyZY/rpmfusion-free-release-7.noarch.rpm: rpmfusion-free-release-7-4.noarch
Marking /var/tmp/yum-root-qXxyZY/rpmfusion-free-release-7.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package rpmfusion-free-release.noarch 0:7-4 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
============================================================================================================================================================================================
Package Arch Version Repository Size
============================================================================================================================================================================================
Installing:
rpmfusion-free-release noarch 7-4 /rpmfusion-free-release-7.noarch 3.6 k
Transaction Summary
============================================================================================================================================================================================
Install 1 Package
Total size: 3.6 k
Installed size: 3.6 k
Is this ok [y/d/N]:
Installed:
rpmfusion-free-release.noarch 0:7-4
Complete!
Once it is installed successfully. One RPM Fusion repo file should be created under the /etc/yum.repos.d/
directory.
You can verify all repo list by run the below command:
$ yum repolist
Outputs:
[devops@localhost ~]$ yum repolist Loaded plugins: fastestmirror, langpacks Repository epel is listed more than once in the configuration Repository epel-debuginfo is listed more than once in the configuration Repository epel-source is listed more than once in the configuration Determining fastest mirrors * base: mirrors.aliyun.com * centos-sclo-rh: mirrors.163.com * centos-sclo-sclo: mirrors.cn99.com * elrepo: mirrors.tuna.tsinghua.edu.cn * extras: mirrors.aliyun.com * rpmfusion-free-updates: mirrors.piconets.webwerks.in * updates: mirrors.aliyun.com rpmfusion-free-updates | 3.7 kB 00:00:00 (1/2): rpmfusion-free-updates/x86_64/group_gz | 1.4 kB 00:00:00 (2/2): rpmfusion-free-updates/x86_64/primary_db | 253 kB 00:00:01 repo id repo name status base/7/x86_64 CentOS-7 - Base - mirrors.aliyun.com 10,070 centos-sclo-rh/x86_64 CentOS-7 - SCLo rh 6,943 centos-sclo-sclo/x86_64 CentOS-7 - SCLo sclo 802 elrepo ELRepo.org Community Enterprise Linux Repository - el7 122 epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 13,446 extras/7/x86_64 CentOS-7 - Extras - mirrors.aliyun.com 413 mysql-connectors-community/x86_64 MySQL Connectors Community 165 mysql-tools-community/x86_64 MySQL Tools Community 115 mysql57-community/x86_64 MySQL 5.7 Community Server 444 rpmfusion-free-updates/x86_64 RPM Fusion for EL 7 - Free - Updates 247 updates/7/x86_64 CentOS-7 - Updates - mirrors.aliyun.com 1,134 repolist: 33,901
From the above outputs, you can see that rpmfusion-free-updates repo has been enabled.
Step3: install VLC Media Player on CentOS 7
Now you can install VLC Media player package using yum command on your CentOS 7 Linux system, type the following command:
$ sudo yum install vlc
Outputs:
[devops@localhost ~]$ sudo yum install vlc [sudo] password for devops: Loaded plugins: fastestmirror, langpacks Repository epel is listed more than once in the configuration Repository epel-debuginfo is listed more than once in the configuration Repository epel-source is listed more than once in the configuration Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * centos-sclo-rh: mirrors.aliyun.com * centos-sclo-sclo: mirror.bit.edu.cn * elrepo: mirrors.tuna.tsinghua.edu.cn * extras: mirrors.aliyun.com * rpmfusion-free-updates: mirrors.ustc.edu.cn * updates: mirrors.aliyun.com rpmfusion-free-updates | 3.7 kB 00:00:00 (1/2): rpmfusion-free-updates/x86_64/group_gz | 1.4 kB 00:00:01 (2/2): rpmfusion-free-updates/x86_64/primary_db | 253 kB 00:00:02 Resolving Dependencies --> Running transaction check ---> Package vlc.x86_64 1:3.0.11.1-3.el7 will be installed Total download size: 34 M Installed size: 137 M Is this ok [y/d/N]: Complete!
Once VLC is installed successfully on your system, and you can use the following rpm
command with -q
option to verify it.
$ rpm -q vlc
Outputs:
[devops@localhost ~]$ rpm -q vlc vlc-3.0.11.1-3.el7.x86_64
Step4: launch the VLC Media Player on CentOS 7
You can now launch the VLC player either from the command line interface by running the followingvlc
command or by clicking onApplications
menu, then click on “Sound & video
” menu, click on “VLC media player
” icon to start VLC.
$ vlc
Updating VLC Media Player on CentOS 7
If you would like to update VLC Media Player to the latest version or a new version is released from its official side, and you can update it through your desktop software update tool or just run the following command in your terminal interface:
$ sudo yum udpate vlc
Outputs:
[devops@localhost ~]$ sudo yum update vlc
[sudo] password for devops:
Loaded plugins: fastestmirror, langpacks
Repository epel is listed more than once in the configuration
Repository epel-debuginfo is listed more than once in the configuration
Repository epel-source is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* centos-sclo-rh: mirrors.aliyun.com
* centos-sclo-sclo: mirror.bit.edu.cn
* elrepo: mirrors.tuna.tsinghua.edu.cn
* extras: mirrors.aliyun.com
* rpmfusion-free-updates: mirrors.ustc.edu.cn
* updates: mirrors.aliyun.com
No packages marked for update
Now the latest stable version is 3.0.11. so no packages need to be updated.
Conclusion
You should know that how to install VLC Media Player on CentOS 7 Linux system. and if you want to get more details about VLC, and you can visit its official page.
0 Comments