Arch Linux GUI: How to Install a Desktop and Pamac
Arch Linux does not come with a GUI: a fresh install boots to a text console. To get a graphical desktop, pick a desktop profile such as GNOME, KDE Plasma or Xfce in the archinstall installer, or install a desktop environment and a display manager with pacman on an existing system and enable the display manager. For a Manjaro-style graphical package manager on top, install Pamac from the AUR.
This guide covers both parts of an Arch Linux GUI: the desktop you log in to, and the graphical tools for installing and updating software, with Pamac as the main example.
Does Arch Linux have a GUI?
Arch Linux has no default graphical interface. The official installation image starts a root shell, and a manual install following the installation guide ends with a minimal command line system. This is deliberate: Arch ships a small base and lets the user choose every layer above it, including the display server (Xorg or Wayland), the desktop environment or window manager, and the login screen.
That means "Arch Linux with GUI" is something you build, not a separate edition. There are two common routes:
- Choose a desktop profile while installing with archinstall, the guided installer maintained by the Arch project.
- Install a desktop environment later with pacman, then enable a display manager so the system boots to a graphical login.
If you want Arch underneath but a graphical system from the first boot, with Pamac and other GUI tools preconfigured, an Arch-based distribution such as Manjaro is the shortcut. Arch itself stays minimal by design.
How to get a GUI with archinstall
The fastest way to install Arch Linux with a GUI is the Desktop profile in archinstall. The project README describes pre-configured profiles in two categories, Desktop and Server, and the installer handles the desktop packages and the login screen for you.
- Boot the official Arch Linux ISO. You are root in the live environment.
- Connect to the internet, then run
archinstall. If the command is missing or outdated, the README suggestspacman-key --initandpacman -Sy archinstallfirst. - Work through the guided menu (disk, users, locale) and open the Profile option.
- Select Desktop, then pick an environment from the list.
- Finish the installation and reboot. The system now starts to a graphical login screen.
The desktop profiles in the archinstall source include GNOME, KDE Plasma, Xfce, Cinnamon, MATE, Budgie, LXQt, Deepin, Enlightenment, COSMIC and window managers such as Hyprland, Sway, i3, bspwm, Awesome, Qtile, niri, river, labwc and Xmonad. Each profile also sets a default login manager, for example GDM for GNOME and LightDM for Xfce. The same installer works when installing Linux on an external SSD, as long as you select the right target disk.
How to install a desktop environment on an existing Arch install
On an Arch system that already boots to a console, install the desktop environment and a display manager with pacman, enable the display manager with systemctl, and reboot. The table lists the packages archinstall itself uses for the three most popular desktops, paired with their usual login manager.
| Desktop | Packages | Display manager |
|---|---|---|
| GNOME | gnome, gnome-tweaks | gdm |
| KDE Plasma | plasma-meta (or the smaller plasma-desktop) | sddm |
| Xfce | xfce4, xfce4-goodies, pavucontrol, gvfs | lightdm with a greeter such as lightdm-gtk-greeter |
For GNOME, the full sequence looks like this:
- Update the system first, because Arch does not support partial upgrades:
sudo pacman -Syu - Install the desktop:
sudo pacman -S --needed gnome gnome-tweaks - Enable the login screen:
sudo systemctl enable gdm - Enable networking if you have not already:
sudo systemctl enable NetworkManager - Reboot.
Swap in sddm or lightdm for the other desktops. You can install a second desktop later and choose between them in the session menu of the login screen.
What is Pamac?
Pamac is the graphical package manager developed by the Manjaro project, and it is the closest thing to an app store GUI for Arch Linux. In Manjaro it appears in the application menu as Add/Remove Software. It searches, installs, removes and updates packages from the official repositories through libalpm (the library behind pacman), and it can also build packages from the AUR (Arch User Repository) when you enable that option.
Pamac is not in the official Arch repositories. On Arch you install it from the AUR, where the common package is pamac-aur. The AUR is community maintained and not supported by Arch, so treat Pamac on Arch as a convenience layer rather than an official tool. Variants of the AUR package add Flatpak or Snap support; the basic pamac-aur build covers repository and AUR packages.
How to install Pamac on Arch Linux
The simplest way to install Pamac on Arch Linux is through an AUR helper such as yay, which resolves and builds the AUR dependencies in the right order. The 2017 version of this guide used yaourt, which is no longer maintained.
- Update the system:
sudo pacman -Syu - Install the build tools:
sudo pacman -S --needed git base-devel - Build yay:
git clone https://aur.archlinux.org/yay.git, thencd yayandmakepkg -si - Install Pamac:
yay -S pamac-aur - Open Pamac from the application menu (Add/Remove Software) or run
pamacin a terminal.
Without a helper, you can clone and build the dependencies yourself with makepkg (libpamac-aur and the appstream data package before pamac-aur), but a helper saves you from tracking the order. To remove Pamac later, run sudo pacman -Rns pamac-aur.
Pamac and the AUR: what to watch
Pamac makes the AUR feel like a normal repository, but the risks of the AUR stay the same. Before you enable AUR support in Pamac's preferences, keep these points in mind:
- AUR packages are user submitted. Read the PKGBUILD (the build script) before you install anything unfamiliar.
- Builds can fail when a PKGBUILD lags behind its dependencies, and Pamac itself is an AUR package that can break for a while after a major pacman or libalpm update.
- Do not use Pamac to refresh the package database without upgrading the whole system. Arch does not support partial upgrades.
- Keep a terminal fallback. If Pamac stops working,
sudo pacman -Syuand your AUR helper still update the system.
Used this way, Pamac is a comfortable front end for browsing and routine updates while pacman remains the tool of record.
Other graphical package managers for Arch Linux
Pamac is not the only graphical front end for pacman. The Arch Wiki keeps a list of graphical front-ends and utilities, and these are the options most desktop users meet:
- GNOME Software: the GNOME app store, which works with Arch packages through PackageKit and also handles Flatpak.
- KDE Discover: the Plasma software center, also using PackageKit for Arch packages, plus Flatpak and firmware updates.
- Octopi: a Qt based pacman front end with AUR support through a helper, popular on Plasma and LXQt.
- tkPacman: a lightweight Tcl/Tk front end that calls the pacman command line, useful on minimal window manager setups.
If you only want update notifications rather than a full store, a tray or panel indicator that checks for new packages is the lighter choice.
FAQ
Is Manjaro just Arch Linux with a GUI?
Manjaro is based on Arch but uses its own repositories, which hold packages back for extra testing, and ships with a desktop, Pamac and its own tools preinstalled. Arch with a desktop profile gives you a similar desktop on Arch's own, faster moving repositories.
Can I switch desktop environments later?
Yes. Install another desktop with pacman, keep or replace the display manager, and choose the session on the login screen. Remove the old desktop's packages once you are happy with the new one.
Do I need Xorg for a desktop on Arch?
Not always. GNOME and KDE Plasma run on Wayland by default, and compositors such as Sway and Hyprland are Wayland only. Some X11 window managers and older applications still need Xorg or XWayland.
Related: the Tails privacy-focused Linux distribution, tips for the KDE Dolphin file manager, how to view hidden files in Linux
Pacaur is a better and safer tool than Yaourt.
I think it would be helpful for the target users of this article to mention, that for yaourt to work, the dev-group package should be installed (it’s not by default), and for the pamac smooth operation, some authentication tool (polkit) must be installed and started.
I have a question, in addition:
During your ventures into the Linux world, did you find a firewall that is “application-based” so that specific apps can be prevented from accessing the internet, like Comodo or Zone alarm in windows?
@Giron, you might want to try the ufw package, a GUI front end for iptables IIRC. It has several predefined profiles to which you can add predefined rules for ‘some applications’.
@mikef90000, not exactly what I have in mind.
I want something that will allow me to allow/stop an app each time it tries to connect the internet, or set the permission in real time, not pre-defined.
If you know Comodo or Zone alarm, that is what I need.
I looked at all the common options available for Linux, including ufw.
Thanks for answering.
Pacaur is the recommended tool to manage AUR, if you want one of course.
I use pacaur together with Pamac, because I like exploring the repos using a GUI, works for me.
You might want to instruct the user on how to first install Yaourt, since this is another package manager tool that quite a large number of Arch users do not use or are otherwise unfamiliar with.