# How to Install Gentoo Linux 

**URL:** https://www.compsmag.com/blogs/how-to-install-gentoo-linux/
**Author:** Ayushi Chauhan
**Published:** 2022-04-22
**Updated:** 2022-04-22
**Categories:** Blogs
**Tags:** Blogs Daily, Computer Guides, guiderobert, Guides and Tutorials, guiding12, How To Guide, How To Guides, internet tips and tutorials, Linux Guides, Software tips and tutorials, Tips, Tricks
**Reading Time:** 5 min

---

This tip is about the how to Install Gentoo Linux . So read this free guide, How to Install Gentoo Linux  step by step. If you have query related to same article you may contact us.

## How to Install Gentoo Linux  - Guide

Gentoo Linux is a computer operating system that uses either Linux or Free BSD as its kernel.  It is free and open source software.  It's called meta-distribution because of its ease of use, portability, and modular architecture.  Gentoo Linux was developed using a technology known as Portage, which allows Gentoo Linux to be configured for different environments and requirements functions.  It can be installed and configured as a standard server, high-end gaming machine, desktop for professional/personal use and much more.

It allows users to select features and services that are essential and tailored to your hardware (and can easily omit non-essential programs and services to speed up up system response).  Due to its portability, Gentoo Linux can be installed on popular processor infrastructures including x86, IA-64, PA-RISC and more.  Today, most Linux distributions offer precompiled packages.  This means that the distribution creates the packages on the developer's machine.

While compiling packages is not necessarily an issue in today's high-bandwidth world, there are several issues to consider with this distribution model.  Compiled binaries mean you have no control over how the program is compiled and what features are included in the program.

## How to    Install Gentoo Linux

### Download Gentoo DVD Image and Prepare Network Settings

Before proceeding with the installation, go to the Gentoo download page and grab the latest released LiveDVD image.

After burning the ISO image, put the DVD into the system DVD drive, restart the computer, select the bootable DVD, and the Gentoo LiveDVD prompt should appear on the screen.  Select the first option (Gentoo x86_64) which boots the default Gentoo Kernel and press Enter key to continue.

After the Gentoo DVD content is loaded, you will be prompted with the main Gentoo login screen, which provides the default credentials for the live session.  Press Enter to login and go to KDE start button and open a Terminal window.

Now it's time to verify your network configuration and internet connectivity using the ifconfig command and ping a domain.  If you are behind a DHCP server, your network card should be automatically configured for you, otherwise use net-setup or pppoe-setup and pppoe-start or dhcpcd eth0 commands (replace it with the cable connected to the NIC) in case your NIC has problems with automatically detecting the DHCP settings.

### Create disk partitions and file systems

Once network connectivity is established and confirmed, it's time to prepare the hard drive.  The following GPT partition layout will be used, but the same partition scheme can also be applied to an MBR BIOS disk using the fdisk utility.

/dev/sda1 – 20M size – unformatted = BIOS boot partition

/dev/sda2 – size 500M – filesystem ext2 = boot partition

/dev/sda3 – 1000M size – Swap = Swap partition

/dev/sda4 – rest of space – filesystem ext4 = root partition

To create the system disk partition, switch to the root account and run the Parted utility with optimal alignment.

$ sudo su –

# parted -a ideal /dev/sda

After entering the parted CLI interface, set the GPT label on your hard disk.

Use print to show the current state of the disk partition and remove any partitions (if any) using the rm partition number command.  Then give parted with the MB or mib size drive, create the first partition with the primary mkpart, give it a name and set the boot flag on this partition.

(broken) MB drive

(party) mkpart primary 1 20

(parted) name 1 grub

(parted) set 1 bios_grub in

(party) print

Then create all partitions using the same method as above.

### boot partition

(party) mkpart primary 21 500

(parted) name 2 boot

### switch partition

(party) mkpart primary 501 1501

(parted) name 3 swap

### root partition

(party) mkpart primary 1502 -1

(parted) name 4 root

Now it's time to format partitions using a specific Linux file system, activate the Swap file and mount the Root and Boot partitions in the /mnt/gentoo path.

# mkfs.ext2 /dev/sda2

# mkfs.ext4 /dev/sda4

# mkswap /dev/sda3

# swapon /dev/sda3

### Download and extract the Gentoo Stage 3 Tarball

Before downloading the Gentoo Stage 3 Tarball, check your system's time and date using the date command, and if there is a large time out of sync, use the following syntax to synchronize the time.

# date MMDDhhmmYYYY ##(month, day, hour, minute and year)

Now it's time to download Tarball Gentoo Stage 3. Proceed to /mnt/gentoo path and use the links command to navigate to the Gentoo Mirror list and select your closest country mirrors -> releases -> amd64 (or your system architecture ) -> current-iso -> stage3-cpu-architecure-release-date.tar.bz2.

# cd /mnt/gentoo

# links http://www.gentoo.org/main/en/mirrors.xml

After selecting Tarball, press [Enter] key, select OK, wait for the download to finish and exit the links.

In the next step, extract the Stage 3 Tarball file using the following command.

# tar xvjpf stage3-amb64-20140522.tar.bz2

## Final note

I hope you like the guide How to Install Gentoo Linux . In case if you have any query regards this article you may ask us. Also, please share your love by sharing this article with your friends.

---

*End of Article*