Table of Contents
In this article, I will show you simple and easy steps to install ffmpeg on RHEL/CentOS 7/8. ffmpeg is a free and open source command line tool in Linux based servers for handling video, audio and other multimedia files. ffmpeg contains audio/video codec library and other important libraries to encode and decode multimedia files. It is very frequently used by Multimedia Organizations to convert large RAW audio/video files to platform specific format file such as mpeg, mkv, webm, ogg etc. Here we will look into the steps in detail with examples to install ffmpeg utility on RHEL/CentOS 7/8.
Simple and Easy Steps to Install FFMPEG on RHEL/CentOS 7/8
Also Read: 10 Easy Steps to Install psacct or acct User Activity Monitoring Tool on RHEL/CentOS 7/8
Step 1: Prerequisites
a) You need to have a running RHEL/CentOS 7/8
System.
b) You should have yum
tool installed in your Server. You can check Top 22 YUM command examples in RedHat/CentOS 7 to know more about yum
command.
c) You need to have root
or sudo
access to run privileged commands. Please Check How to Add User to Sudoers to know more about providing sudo
access to the User.
Step 2: Update your Server
Before going through the steps to install ffmpeg on RHEL/CentOS 7/8 it is always recommended to update your server using yum update -y
command as shown below.
[root@localhost ~]# yum update -y Resolving Dependencies --> Running transaction check ---> Package ansible.noarch 0:2.9.10-1.el7 will be updated ---> Package ansible.noarch 0:2.9.14-1.el7 will be an update ---> Package ca-certificates.noarch 0:2019.2.32-76.el7_7 will be updated ---> Package ca-certificates.noarch 0:2020.2.41-70.0.el7_8 will be an update ---> Package curl.x86_64 0:7.29.0-57.el7 will be updated ---> Package curl.x86_64 0:7.29.0-57.el7_8.1 will be an update ---> Package dbus.x86_64 1:1.10.24-13.el7_6 will be updated ---> Package dbus.x86_64 1:1.10.24-14.el7_8 will be an update ---> Package dbus-libs.x86_64 1:1.10.24-13.el7_6 will be updated ---> Package dbus-libs.x86_64 1:1.10.24-14.el7_8 will be an update ---> Package grub2.x86_64 1:2.02-0.81.el7.centos will be updated ---> Package grub2.x86_64 1:2.02-0.86.el7.centos will be an update ---> Package grub2-common.noarch 1:2.02-0.81.el7.centos will be updated ---> Package grub2-common.noarch 1:2.02-0.86.el7.centos will be an update ---> Package grub2-pc.x86_64 1:2.02-0.81.el7.centos will be updated ---> Package grub2-pc.x86_64 1:2.02-0.86.el7.centos will be an update ---> Package grub2-pc-modules.noarch 1:2.02-0.81.el7.centos will be updated ---> Package grub2-pc-modules.noarch 1:2.02-0.86.el7.centos will be an update ---> Package grub2-tools.x86_64 1:2.02-0.81.el7.centos will be updated ---> Package grub2-tools.x86_64 1:2.02-0.86.el7.centos will be an update ---> Package grub2-tools-extra.x86_64 1:2.02-0.81.el7.centos will be updated ---> Package grub2-tools-extra.x86_64 1:2.02-0.86.el7.centos will be an update ---> Package grub2-tools-minimal.x86_64 1:2.02-0.81.el7.centos will be updated
Step 3: Install RPM Fusion
Once server is updated with the latest updates you now need to install the RPM Fusion package using below yum localinstall
command. Below command will install and enable the RPM Fusion repository from where you need to install the ffmpeg package.
[root@localhost ~]# yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm -y Loaded plugins: fastestmirror rpmfusion-free-release-7.noarch.rpm | 6.3 kB 00:00:00 Examining /var/tmp/yum-root-C8BIl5/rpmfusion-free-release-7.noarch.rpm: rpmfusion-free-release-7-4.noarch Marking /var/tmp/yum-root-C8BIl5/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 Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : rpmfusion-free-release-7-4.noarch 1/1 Verifying : rpmfusion-free-release-7-4.noarch 1/1 Installed: rpmfusion-free-release.noarch 0:7-4 Complete!
Step 4: Install ffmpeg Package on RHEL/CentOS 7/8
Next step is to install ffmpeg package using yum install ffmpeg ffmpeg-devel
command as shown below. This command will download and install the ffmpeg package from enabled yum repository.
[root@localhost ~]# yum install ffmpeg ffmpeg-devel Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: centos.mirrors.estointernet.in * epel: download.nus.edu.sg * extras: centos.mirrors.estointernet.in * rpmfusion-free-updates: mirrors.piconets.webwerks.in * updates: centos.mirrors.estointernet.in 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 ffmpeg.x86_64 0:3.4.8-1.el7 will be installed --> Processing Dependency: ffmpeg-libs(x86-64) = 3.4.8-1.el7 for package: ffmpeg-3.4.8-1.el7.x86_64 --> Processing Dependency: libswscale.so.4(LIBSWSCALE_4)(64bit) for package: ffmpeg-3.4.8-1.el7.x86_64 --> Processing Dependency: libswresample.so.2(LIBSWRESAMPLE_2)(64bit) for package: ffmpeg-3.4.8-1.el7.x86_64 --> Processing Dependency: libpostproc.so.54(LIBPOSTPROC_54)(64bit) for package: ffmpeg-3.4.8-1.el7.x86_64 --> Processing Dependency: libavutil.so.55(LIBAVUTIL_55)(64bit) for package: ffmpeg-3.4.8-1.el7.x86_64 --> Processing Dependency: libavresample.so.3(LIBAVRESAMPLE_3)(64bit) for package: ffmpeg-3.4.8-1.el7.x86_64 --> Processing Dependency: libavformat.so.57(LIBAVFORMAT_57)(64bit) for package: ffmpeg-3.4.8-1.el7.x86_64 --> Processing Dependency: libavfilter.so.6(LIBAVFILTER_6)(64bit) for package: ffmpeg-3.4.8-1.el7.x86_64 --> Processing Dependency: libavdevice.so.57(LIBAVDEVICE_57)(64bit) for package: ffmpeg-3.4.8-1.el7.x86_64 --> Processing Dependency: libavcodec.so.57(LIBAVCODEC_57)(64bit) for package: ffmpeg-3.4.8-1.el7.x86_64 --> Processing Dependency: libOpenCL.so.1(OPENCL_1.0)(64bit) for package: ffmpeg-3.4.8-1.el7.x86_64 --> Processing Dependency: libswscale.so.4()(64bit) for package: ffmpeg-3.4.8-1.el7.x86_64 --> Processing Dependency: libswresample.so.2()(64bit) for package: ffmpeg-3.4.8-1.el7.x86_64 --> Processing Dependency: libpostproc.so.54()(64bit) for package: ffmpeg-3.4.8-1.el7.x86_64 --> Processing Dependency: libavutil.so.55()(64bit) for package: ffmpeg-3.4.8-1.el7.x86_64 --> Processing Dependency: libavresample.so.3()(64bit) for package: ffmpeg-3.4.8-1.el7.x86_64 --> Processing Dependency: libavformat.so.57()(64bit) for package: ffmpeg-3.4.8-1.el7.x86_64 --> Processing Dependency: libavfilter.so.6()(64bit) for package: ffmpeg-3.4.8-1.el7.x86_64 --> Processing Dependency: libavdevice.so.57()(64bit) for package: ffmpeg-3.4.8-1.el7.x86_64 --> Processing Dependency: libavcodec.so.57()(64bit) for package: ffmpeg-3.4.8-1.el7.x86_64 --> Processing Dependency: libSDL2-2.0.so.0()(64bit) for package: ffmpeg-3.4.8-1.el7.x86_64 --> Processing Dependency: libOpenCL.so.1()(64bit) for package: ffmpeg-3.4.8-1.el7.x86_64 ---> Package ffmpeg-devel.x86_64 0:3.4.8-1.el7 will be installed --> Running transaction check ---> Package SDL2.x86_64 0:2.0.10-1.el7 will be installed ---> Package ffmpeg-libs.x86_64 0:3.4.8-1.el7 will be installed --> Processing Dependency: libva.so.1(VA_API_0.33.0)(64bit) for package: ffmpeg-libs-3.4.8-1.el7.x86_64 --> Processing Dependency: libzvbi.so.0()(64bit) for package: ffmpeg-libs-3.4.8-1.el7.x86_64 --> Processing Dependency: libxvidcore.so.4()(64bit) for package: ffmpeg-libs-3.4.8-1.el7.x86_64 --> Processing Dependency: libx265.so.165()(64bit) for package: ffmpeg-libs-3.4.8-1.el7.x86_64 --> Processing Dependency: libx264.so.148()(64bit) for package: ffmpeg-libs-3.4.8-1.el7.x86_64 --> Processing Dependency: libvpx.so.1()(64bit) for package: ffmpeg-libs-3.4.8-1.el7.x86_64 --> Processing Dependency: libvo-amrwbenc.so.0()(64bit) for package: ffmpeg-libs-3.4.8-1.el7.x86_64 --> Processing Dependency: libvidstab.so.1.1()(64bit) for package: ffmpeg-libs-3.4.8-1.el7.x86_64 --> Processing Dependency: libvdpau.so.1()(64bit) for package: ffmpeg-libs-3.4.8-1.el7.x86_64 --> Processing Dependency: libva.so.1()(64bit) for package: ffmpeg-libs-3.4.8-1.el7.x86_64 --> Processing Dependency: libva-x11.so.1()(64bit) for package: ffmpeg-libs-3.4.8-1.el7.x86_64 --> Processing Dependency: libva-drm.so.1()(64bit) for package: ffmpeg-libs-3.4.8-1.el7.x86_64 --> Processing Dependency: libspeex.so.1()(64bit) for package: ffmpeg-libs-3.4.8-1.el7.x86_64 --> Processing Dependency: libsoxr.so.0()(64bit) for package: ffmpeg-libs-3.4.8-1.el7.x86_64 --> Processing Dependency: libopenjp2.so.7()(64bit) for package: ffmpeg-libs-3.4.8-1.el7.x86_64 --> Processing Dependency: libopencore-amrwb.so.0()(64bit) for package: ffmpeg-libs-3.4.8-1.el7.x86_64 --> Processing Dependency: libopencore-amrnb.so.0()(64bit) for package: ffmpeg-libs-3.4.8-1.el7.x86_64 --> Processing Dependency: libmp3lame.so.0()(64bit) for package: ffmpeg-libs-3.4.8-1.el7.x86_64 --> Processing Dependency: libmodplug.so.1()(64bit) for package: ffmpeg-libs-3.4.8-1.el7.x86_64 --> Processing Dependency: libmfx.so.0()(64bit) for package: ffmpeg-libs-3.4.8-1.el7.x86_64 --> Processing Dependency: libbluray.so.1()(64bit) for package: ffmpeg-libs-3.4.8-1.el7.x86_64 --> Processing Dependency: libass.so.5()(64bit) for package: ffmpeg-libs-3.4.8-1.el7.x86_64
Step 5: Verify ffmpeg Package Installation
You can verify the ffmpeg package installation by querying the RPMDB using rpm -qa | grep -i ffmpeg command as shown below.
[root@localhost ~]# rpm -qa | grep -i ffmpeg ffmpeg-3.4.8-1.el7.x86_64 ffmpeg-devel-3.4.8-1.el7.x86_64 ffmpeg-libs-3.4.8-1.el7.x86_64
Step 6: Check ffmpeg Version
If you want to check ffmpeg version then you need to use ffmpeg --version
command as shown below. As shown in below output, current ffmpeg version is 3.4.8
.
[root@localhost ~]# ffmpeg -version ffmpeg version 3.4.8 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-39) configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro ' --extra-cflags=' ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libcdio --enable-libdrm --enable-indev=jack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopus --disable-encoder=libopus --enable-libpulse --enable-librsvg --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzvbi --enable-avfilter --enable-avresample --enable-libmodplug --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect libavutil 55. 78.100 / 55. 78.100 libavcodec 57.107.100 / 57.107.100 libavformat 57. 83.100 / 57. 83.100 libavdevice 57. 10.100 / 57. 10.100 libavfilter 6.107.100 / 6.107.100 libavresample 3. 7. 0 / 3. 7. 0 libswscale 4. 8.100 / 4. 8.100 libswresample 2. 9.100 / 2. 9.100 libpostproc 54. 7.100 / 54. 7.100
Step 7: Convert mp4 file to mkv file
Since we have ffmpeg installed now we can take a small file.mp4 file and then convert it to mkv format using default parameter by running ffmpeg -i file.mp4 output.mkv command as shown below.
[root@localhost ~]# ffmpeg -i file.mp4 output.mkv ffmpeg version 3.4.8 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-39) configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro ' --extra-cflags=' ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libcdio --enable-libdrm --enable-indev=jack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopus --disable-encoder=libopus --enable-libpulse --enable-librsvg --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzvbi --enable-avfilter --enable-avresample --enable-libmodplug --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect libavutil 55. 78.100 / 55. 78.100 libavcodec 57.107.100 / 57.107.100 libavformat 57. 83.100 / 57. 83.100 libavdevice 57. 10.100 / 57. 10.100 libavfilter 6.107.100 / 6.107.100 libavresample 3. 7. 0 / 3. 7. 0 libswscale 4. 8.100 / 4. 8.100 libswresample 2. 9.100 / 2. 9.100 libpostproc 54. 7.100 / 54. 7.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf58.19.102 Duration: 00:03:48.51, start: 0.000000, bitrate: 230 kb/s Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 426x240 [SAR 1:1 DAR 71:40], 96 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default) Metadata: handler_name : ISO Media file produced by Google Inc. Created on: 01/27/2019. Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default) Metadata: handler_name : ISO Media file produced by Google Inc. Created on: 01/27/2019. Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (aac (native) -> vorbis (libvorbis)) Press [q] to stop, [?] for help [libx264 @ 0x14a9940] using SAR=1/1 [libx264 @ 0x14a9940] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX LZCNT [libx264 @ 0x14a9940] profile High, level 2.1 [libx264 @ 0x14a9940] 264 - core 148 r2795 aaa9aa8 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, matroska, to 'output.mkv': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf57.83.100 Stream #0:0(und): Video: h264 (libx264) (H264 / 0x34363248), yuv420p(progressive), 426x240 [SAR 1:1 DAR 71:40], q=-1--1, 25 fps, 1k tbn, 25 tbc (default) Metadata: handler_name : ISO Media file produced by Google Inc. Created on: 01/27/2019. encoder : Lavc57.107.100 libx264 Side data: cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1 Stream #0:1(und): Audio: vorbis (libvorbis) (oV[0][0] / 0x566F), 44100 Hz, stereo, fltp (default) Metadata: handler_name : ISO Media file produced by Google Inc. Created on: 01/27/2019. encoder : Lavc57.107.100 libvorbis frame= 5711 fps= 93 q=28.0 Lsize= 6884kB time=00:03:48.49 bitrate= 246.8kbits/s speed=3.71x video:5122kB audio:1637kB subtitle:0kB other streams:0kB global headers:4kB muxing overhead: 1.844492% [libx264 @ 0x14a9940] frame I:32 Avg QP:19.11 size: 11932 [libx264 @ 0x14a9940] frame P:1899 Avg QP:23.34 size: 1844 [libx264 @ 0x14a9940] frame B:3780 Avg QP:30.25 size: 360 [libx264 @ 0x14a9940] consecutive B-frames: 4.5% 17.3% 13.0% 65.1% [libx264 @ 0x14a9940] mb I I16..4: 19.9% 30.2% 49.9% [libx264 @ 0x14a9940] mb P I16..4: 2.2% 2.9% 1.5% P16..4: 28.2% 14.8% 7.0% 0.0% 0.0% skip:43.4% [libx264 @ 0x14a9940] mb B I16..4: 0.1% 0.1% 0.1% B16..8: 30.2% 4.8% 0.8% direct: 0.6% skip:63.3% L0:44.2% L1:47.3% BI: 8.5% [libx264 @ 0x14a9940] 8x8 transform intra:41.1% inter:45.0% [libx264 @ 0x14a9940] coded y,uvDC,uvAC intra: 43.5% 47.3% 20.5% inter: 6.8% 4.8% 0.7% [libx264 @ 0x14a9940] i16 v,h,dc,p: 34% 39% 7% 20% [libx264 @ 0x14a9940] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 38% 22% 19% 3% 3% 4% 3% 4% 4% [libx264 @ 0x14a9940] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 30% 11% 3% 5% 5% 4% 4% 4% [libx264 @ 0x14a9940] i8c dc,h,v,p: 48% 26% 19% 7% [libx264 @ 0x14a9940] Weighted P-Frames: Y:2.9% UV:1.5% [libx264 @ 0x14a9940] ref P L0: 66.5% 17.0% 12.0% 4.4% 0.1% [libx264 @ 0x14a9940] ref B L0: 88.9% 9.6% 1.4% [libx264 @ 0x14a9940] ref B L1: 97.5% 2.5% [libx264 @ 0x14a9940] kb/s:183.65
-i : input file name. More on ffmpeg Man Page.
Now if you check the output file, it will show as output.mkv file.
[root@localhost ~]# ls -lrt output.mkv -rw-r--r-- 1 root root 7049139 Oct 31 10:06 output.mkv
Step 8: Uninstall ffmpeg Package
Once you are done using ffmpeg tool you can simply remove it from the server by using yum remove ffmpeg -y command as shown below.
[root@localhost ~]# yum remove ffmpeg -y Loaded plugins: fastestmirror Resolving Dependencies --> Running transaction check ---> Package ffmpeg.x86_64 0:3.4.8-1.el7 will be erased --> Finished Dependency Resolution Dependencies Resolved ======================================================================================================================================================================== Package Arch Version Repository Size ======================================================================================================================================================================== Removing: ffmpeg x86_64 3.4.8-1.el7 @rpmfusion-free-updates 2.2 M Transaction Summary ======================================================================================================================================================================== Remove 1 Package Installed size: 2.2 M Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Erasing : ffmpeg-3.4.8-1.el7.x86_64 1/1 Verifying : ffmpeg-3.4.8-1.el7.x86_64 1/1 Removed: ffmpeg.x86_64 0:3.4.8-1.el7 Complete!
Popular Recommendations:-
How to Install PIP3 Utility on Linux(RHEL/CentOS 7/8){Easy Steps}
Solved: ModuleNotFoundError: No module named 'requests' in Python 3
How to Properly Search PHP Modules Using YUM tool in Linux(RHEL/CentOS 7/8)
How to Install and Configure Squid Proxy Server on RHEL/CentOS 7/8
Primitive Data Types in Java - int, char, byte, short, long, float, double and boolean
5 Best Ways to Become root user or Superuser in Linux (RHEL/CentOS/Ubuntu)