How to Install CentOS 7 (Step by Step with Screenshots)

CentOS (Community Enterprise Operating System) is an open-source Linux distribution based on Red Hat Enterprise Linux. In this tutorial, learn how to install CentOS 7 step by step with Screenshots.


  • Minimum of 10GB of free disk space (Recommended )
  • CentOS 7 ISO file or CentOS 7 DVD
  • Fast Internet Connection

Download CentOS 7

First of all, you need to download CentOS 7 ISO Media located on official CentOS website.

Insert the CentOS 8 Bootable Installation DVD

You need to boot the system from the installation media. You will get the main menu with several options to choose from. Select Install CentOS Linux 7 and hit Enter to start the installation process.

Choose language for installation process

On the ‘Welcome Screen’, please choose your preferred language and click ‘Continue’. We will choose English (United States) here.

Installation Summary of CentOS 7

In the next screen, you will get installation summary of the localization, software, and system configuration. You will configure each of these options here.

  • Date & Time

Set the date and time for your CentOS 7 by selecting the region and city you are in.

  • Keyboard Layout

Here in keyboard section, you need to choose your preferred keyboard type.

  • Installation Source

You need to choose your installation medium. You can select local installation source of via network.

  • Software Selection

Please Select here the Software Selection option under the Software heading. You will get a list of predefined Base Environment options and optional add-ons. This part totally depends on your needs.
Minimal Install: This is the most flexible and least resource-demanding. This is excellent for production environment servers. You have to be prepared for customization.
Predefined Server Options: If you are 100% certain about the role of your server and don’t want to customize it for its role, then please go ahead with this predefined server environments.
GNOME Desktop and KDE Plasma Workspaces: These environments provides a full graphical user interface.

  • Installation Destination

Under System Heading, you need to choose partitioning options. There are two kind of partitioning available.

Automatic Partitioning: Upon selecting this scheme on the disc creates:

  1. 500 MB partition for an XFS file system that contains /boot.
  2. A logical volume for an XFS file system that contains the root file system (/).
  3. A logical volume for an XFS file system that contains the /home file system (if the selected disks are larger than 50 GB in total).
  4. A logical volume for a swap partition.

Manual Partitioning: Select the I will configure partitioning checkbox and choose Done. If you want to use other file systems (such as ext4) and a non-LVM partitioning scheme. This will initiate a configuration pop-up where you can set up your partitioning manually.
This is an advanced option that depends on your requirements.

/boot: This partition contains the kernel allowing centos iso to boot.
/: It is the root partition containing all the filesystem.
/home: This is the partition containing users home directory
swap: This partition is useful it comes as compensation when there is no enough physical memory.
I am going to add 1 more partition but you can skip the creation of this partition.
/var: which contains variable data like system logging files, mail, printer spool directories, temporary files etc.

After providing your installation configuration in manual partitioning, you need to accept the pop regarding changes done.

  • Configuring Kdump

KDUMP is enabled by default. Kdump is a utility that dumps system crash information for analysis in order to determine the cause of system failure. You can also set the memory reservation to an amount you find suitable, manually. Here i am not enabling kdump to save some amount of memory for better system performance.

  • Network & Hostname

Now you will configure network statistics. You need to enable ethernet and provide hostname to the server.

Begin Installation

Once configured all options in “Installation Summary” window you can click on Begin Installation.

After Clicking on Begin Installation, the installation process will start.

Administrator Password and User Creation

You will have to create Administrator nothing but root password. You have to provide strong password with alphanumeric and symbols.

Additionally, you can create new user during installation process. Please provide your preferred username and a strong password for this user. If you want to provide root privileges then you need to select “Make this user administrator“.

Once you configured the credentials of users, then installation process will add these changes in its configuration.

When Installation done, You must reboot the system.

Accept the License Agreement

Now you will get the window prompting to accept license agreement.

Click on License Information and read all instructions if you want to. Please accept this and click on Finish Configuration.

Login to your newly Installed CentOS 7 System

Finally, you can login your newly installed CentOS 7 Machine.

Here, you will get welcome screen. You have to confirm few system configurations in gnome-initial-setup.

Enjoy your fresh CentOS 7 Installation.


Congratulations you have successfully installed CentOS 7 on your machine. Here you have learned how to Install CentOS 7 (Step by Step with Screenshots). Happy Learning. Thanks !!

Read Also : How to install CentOS 8 (With Screenshots)

Share on:

Ravindra Kumar

Hi, This is Ravindra. I am founder of TheCodeCloud. I am AWS Certified Solutions Architect Associate & Certified in Oracle Cloud as well. I am DevOps and Data Science Enthusiast.

Recommended Reading..

Leave a Comment