Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Arch Linux - apt-get update equivalent command?

Tags:

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?

like image 989
Run Avatar asked Mar 30 '17 17:03

Run


People also ask

What is apt-get update command?

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.

How do I sudo apt update in Arch?

The equivalent of apt-get update in Arch Linux is pacman -Syy . pacman -Syu is equivalent to apt-get update && apt-get upgrade .


1 Answers

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>

like image 159
Deanie Avatar answered Sep 16 '22 23:09

Deanie