diff --git a/install.py b/install.py index 74c296a..65de56b 100755 --- a/install.py +++ b/install.py @@ -211,9 +211,19 @@ class Installer: this_stderr: Optional[int] = subprocess.DEVNULL if self.hide_commands else None ui.info_2("Installing packages...") + + if self.operating_system == "arch": + subprocess.run( + "sudo pacman -Syu", + check=True, + shell=True, + stdout=this_stdout, + stderr=this_stderr, + ) + for i, package in enumerate(packages): if self.operating_system == "arch": - command = "sudo pacman -Syu --needed --noconfirm {}".format(package) + command = "sudo pacman -S --needed --noconfirm {}".format(package) elif self.operating_system == "debian": command = "sudo apt install -y {}".format(package)