Arch Linux-apt-get更新等效命令? [英] Arch Linux - apt-get update equivalent command?
问题描述
Arch Linux在安装新软件包之前更新软件包的命令是什么?
What is the command for Arch Linux to update the packages before installing a new package?
例如,我知道在Ubuntu中,我这样做:
For instance, I know that in Ubuntu, I do:
$ sudo apt-get update
$ sudo apt-get <pkg-name>
在Arch中怎么样?
我遇到了几个版本,但他们似乎彼此不同意.我看不到那里的一致性.
I came across a couple of version, but they don't seem agree with each others. I can't see the consistency there.
例如1.(我):
$ sudo pacman -Syy
$ sudo pacman -Su
例如. 2 :
$ sudo pacman -Sy
例如. 3 :
始终将"-Sy"与"u"(即"pacman -Syu")和"pacman -S"一起使用 ",而不是"pacman -Sy".
always use "-Sy" with a "u" i.e. "pacman -Syu" then "pacman -S ", and never "pacman -Sy ".
我只是感到困惑!
有什么想法吗?
推荐答案
Arch Linux中apt-get update
的等效项是pacman -Syy
.
The equivalent of apt-get update
in Arch Linux is pacman -Syy
.
pacman -Syu
等同于apt-get update && apt-get upgrade
.
如果保持不变,也可以使它完整...
Might as well make this complete if it stays...
pacman -S <package>
是apt-get install <package>
这篇关于Arch Linux-apt-get更新等效命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!