Software & AppsOperating SystemLinux

Where Does Steam Install Games on Ubuntu?

Ubuntu 10

Understanding where Steam installs games on your Ubuntu system can be helpful in managing your game files, troubleshooting issues, and optimizing your gaming experience. This article will guide you through the various locations where Steam might install games on Ubuntu, depending on the version of Steam and the installation method used.

Quick Answer

By default, Steam installs games on Ubuntu in the ~/.local/share/Steam directory. However, depending on the version of Steam and the installation method used, games may also be stored in ~/.steam/steam/SteamApps/common, a custom directory of your choice, or in Wine or Flatpak directories. To find the exact location of your Steam installation directory, you can use the find command in the terminal.

Default Steam Installation Directory

By default, when Steam is installed, it creates a directory in the home folder of the current user. The games you download and install from Steam are typically stored in this directory. Here is the default path:

~/.local/share/Steam

In this path, the tilde (~) represents the home directory of the current user, and the .local/share/Steam is the directory where Steam stores its data, including the installed games.

Newer Steam Versions

In newer versions of Steam, games are often stored in a different directory. The path to this directory is:

~/.steam/steam/SteamApps/common

In some systems, ~/.steam/steam may be a symbolic link to ~/.local/share/Steam.

Custom Steam Installation Directory

If you prefer not to store Steam games in your home directory, you can create a directory elsewhere, such as on a separate partition. Here’s an example of how to do this:

  1. Create a new directory, for example, /opt/SteamFiles.
  2. Give it the appropriate ownership and access rights.
  3. Create a symbolic link from ~/.steam to this new directory.

This method allows for easy sharing of games between multiple Linux installations on the same PC.

Wine Installation Directory

If you are using Wine to run Steam, the directory structure may be different. Wine may not show folder names starting with a “.”, so you may need to navigate to the correct drive letter for your Ubuntu file system (e.g., Z:) and then find the Steam directory within your /home directory.

Flatpak Installation Directory

If you installed the Flatpak version of Steam, the directory can be found at:

~/.var/app/com.valvesoftware.Steam/.steam

How to Find the Steam Directory

If you are unsure where your Steam directory is located, you can use the find command in the terminal. Here’s how to do it:

cd /
sudo find -name steam

In this command, cd / changes the current directory to the root directory, and sudo find -name steam searches for any directories named “steam” on your system.

Conclusion

In summary, Steam games can be installed in various locations on Ubuntu, including ~/.steam/steam/SteamApps/common, ~/.local/share/Steam, /opt/SteamFiles, /home/${USER}/Steam, Wine directories, or the Flatpak directory. The specific location depends on the version of Steam and the installation method used. By understanding where these files are stored, you can better manage your game files and troubleshoot any issues that may arise.

How can I change the default installation directory for Steam games on Ubuntu?

To change the default installation directory for Steam games on Ubuntu, you can create a new directory in the desired location (e.g., /opt/SteamFiles), give it appropriate ownership and access rights, and then create a symbolic link from ~/.steam to this new directory. This allows you to store your Steam games in a different location.

How can I find the Steam directory on my Ubuntu system?

If you are unsure where your Steam directory is located, you can use the find command in the terminal. Open a terminal and enter the command cd / to change the current directory to the root directory. Then, enter sudo find -name steam to search for any directories named "steam" on your system. The command will display the path to the Steam directory.

Can I install Steam games on a separate partition?

Yes, you can install Steam games on a separate partition. To do this, create a new directory on the desired partition (e.g., /mnt/games/Steam), give it appropriate ownership and access rights, and then create a symbolic link from ~/.steam to this new directory. This allows you to store your Steam games on a different partition.

What if I am using Wine to run Steam on Ubuntu?

If you are using Wine to run Steam on Ubuntu, the directory structure may be different. Wine may not show folder names starting with a ".", so you may need to navigate to the correct drive letter for your Ubuntu file system (e.g., Z:) and then find the Steam directory within your /home directory.

Where can I find the Steam directory if I installed the Flatpak version of Steam?

If you installed the Flatpak version of Steam, the directory can be found at ~/.var/app/com.valvesoftware.Steam/.steam. This is where the Flatpak version of Steam stores its data, including the installed games.

Can I share Steam games between multiple Linux installations on the same PC?

Yes, you can share Steam games between multiple Linux installations on the same PC. One way to do this is by creating a custom installation directory for Steam games (e.g., /opt/SteamFiles) and then creating a symbolic link from ~/.steam to this directory. This allows all Linux installations to access and play the same set of Steam games.

Leave a Comment

Your email address will not be published. Required fields are marked *