What is the command for Arch Linux to update the packages before installing a new package?
For instance, I know that in Ubuntu, I do:
$ sudo apt-get update
$ sudo apt-get <pkg-name>
What about in Arch?
I came across a couple of version, but they don't seem agree with each others. I can't see the consistency there.
eg 1. (it looks tedious to me):
$ sudo pacman -Syy
$ sudo pacman -Su
$ sudo pacman -Sy
always use "-Sy" with a "u" i.e. "pacman -Syu" then "pacman -S ", and never "pacman -Sy ".
I am just confused!
Any ideas?
The equivalent of apt-get update
in Arch Linux is pacman -Syy
.
pacman -Syu
is equivalent to apt-get update && apt-get upgrade
.
Might as well make this complete if it stays...
pacman -S <package>
is apt-get install <package>