Arch Linux - apt-get update 等效命令? [英] Arch Linux - apt-get update equivalent command?

查看:34
本文介绍了Arch Linux - apt-get update 等效命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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.

eg 1.(看起来很乏味我):

$ sudo pacman -Syy
$ sudo pacman -Su

例如.2:

$ sudo pacman -Sy

例如.3:

总是使用带有u"的-Sy",即pacman -Syu"然后是pacman -S"",而不是pacman -Sy".

always use "-Sy" with a "u" i.e. "pacman -Syu" then "pacman -S ", and never "pacman -Sy ".

我只是糊涂了!

有什么想法吗?

推荐答案

apt-get update 在 Arch Linux 中的等价物是 pacman -Syy.

The equivalent of apt-get update in Arch Linux is pacman -Syy.

pacman -Syu 等价于 apt-get update &&apt-get 升级.

如果它保持完整,还不如让它完整......

Might as well make this complete if it stays...

pacman -S apt-get install

这篇关于Arch Linux - apt-get update 等效命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆