How to Play Portal 2 on Linux.
Portal 2 is the second game in the Portal series. It follows Chell, a woman trapped in a scientific testing facility, who uses a portal gun to complete the tests. In this guide, we will show you how to play Portal 2 on Linux.
Portal 2 on Linux
Portal 2 is native to Linux and came out on the platform shortly after Valve released Steam for Linux. With that being said, the only way to play the game on Linux is through Steam, so we need to go over how to install the Steam client for Linux.

ubuntu
On Ubuntu, you can install the latest version of Steam using the apt install command below.
sudo apt install steam

Debian
If you are using Debian Linux, Steam is best installed by downloading the Steam DEB package directly from the Valve Steam website, rather than dealing with the “Not Free” Debian Software repository.
To start the Steam download on your Debian Linux PC, use the following wget download command. It will follow the Steam DEB URL and download the DEB package directly to your home folder.

wget https://steamcdn-a.akamaihd.net/client/installer/steam.deb
After downloading the Steam DEB package to your computer, the next step is to install the software. To install Steam on your Debian PC, use the dpkg command below.

sudo dpkg -i steam.deb
Once the Steam DEB package is installed on your computer, you will need to clean up and fix any dependency issues present on the system in order for Steam to run properly. Use the apt-get install -f command.
sudo apt-get install -f

ArchLinux
On Arch Linux, the Steam app is available, but only through the “Multilib” software repository. To configure it, open the /etc/pacman.conf file in a text editor. Once open, locate the “Multilib” line and delete the # symbol, as well as the lines directly below it. Then save and re-sync Pacman with the following command.
sudo pacman -Syy
With everything resynced, you can quickly install the Steam app on your Arch Linux system with the following command.

sudo pacman -S steam
Fedora/OpenSUSE
If you’re using Fedora or OpenSUSE, you can get the latest Steam app up and running by installing it through the software repositories included with your operating system, and it will run the games just fine. However, the Steam Flatpak version seems to work better on these operating systems, and we suggest following those instructions instead.
flat pack
In order for Steam to work on Flatpak, you will first need to enable the Flatpak runtime on your system. Fortunately, it is very easy to configure the Flatpak runtime. To do so, follow our detailed guide on the subject.
After setting up the Flatpak runtime on your computer, you’ll need to enable the Flathub app store. Flathub has many different types of apps available, including Steam. To enable it, use the following flatpak remote-add command below.

flatpak remote-add –if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
With the Flathub app store enabled and ready to go on your Linux PC, Steam can be installed. To install Steam on your Linux PC, use the following flatpak install command below in a terminal window.
flatpak install flathub com.valvesoftware.Steam

Play Portal 2 on Linux
After setting up Steam on your Linux system, open the app and log into your account with your username and password. Once you’ve logged into Steam, follow the step-by-step instructions below for Play Portal 2 on Linux.
Step 1 – Find the Steam “STORE” button at the top of the page and click on it with your mouse. When you select this button, you will be able to access the Steam Storefront.
Once in the Steam Storefront, find the search box and click on it with your mouse. From there, type “Portal 2” in the text box. Press the Enter key to see the search results.
Step 2 – In the search results, select “Portal 2” to access the Steam store page for the game. When you’ve reached the game’s storefront page, look for the green “add to cart” button.
Select the green “add to cart” button to add the game to your cart. Once you are in your cart, click on the cart icon. From there, you will be able to go through the Portal 2 purchase process for your Steam account.
Step 3: Find the “LIBRARY” button on Steam and click on it with your mouse. From there, find your game library for “Portal 2” and click on it with your mouse to access it.
After clicking on “Portal 2” look for the blue “INSTALL” button and select it with the mouse. By clicking this button, the installation of Portal 2 will begin. Sit down, since November Take some time.
Step 4: When the download process is complete, the blue “INSTALL” button will turn into a green “PLAY” button. Select this button to launch Portal 2. Enjoy and happy gaming!
