I've been trying out Arch Linux again and the thing that always surprises me is pacman. The way it works seems so unintuitive to me coming from the apt, yum, and dnf worlds.
I know I will get it and it will become internalized but I just wonder what the designer was thinking when making the flags/commands.
-Syu
, not subcommands likeinstall
, but I think it's still better. You can do more at once.-Syy
pacman
. I think it means downgrade, so the opposite of one y?pacman -S firefox
, you might not get the newest Firefox version if your local database is outdated. For the latest, you'd needpacman -Sy firefox
, which refreshes your database first, then installs Firefox.pacman -R firefox
just removes Firefox from your systempacman -Ss firefox
searches for any packages with "firefox" in the namepacman -Qs firefox
searches for any installed package with "firefox" in the name-S
Sync makes no sense to me for install.-s
Search makes sense but I'm not sure why its lowercase-y
makes no sense for refreshing.-u
makes sense but why lower case-Q
Query makes sense but why upper case and query being local doesn't. Why not lowercase for local and upper for searching?pacman -U ~/firefox.tar.gz
will download all the dependencies for firefox specified in the tar.gz, but then install the version in your .tar.gz not the one in the sync db.