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 eg. 2:
$ sudo pacman -Sy eg. 3:
always use "-Sy" with a "u" i.e. "pacman -Syu" then "pacman -S ", and never "pacman -Sy ".
I am just confused!
Any ideas?
The sudo apt-get upgrade command downloads and installs the updates for each outdated package and dependency on your system. But just running sudo apt-get upgrade will not automatically upgrade the outdated packages – you'll still have a chance to review the changes and confirm that you want to perform the upgrades.
The equivalent of apt-get update in Arch Linux is pacman -Syy . pacman -Syu is equivalent to apt-get update && apt-get upgrade .
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>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With