相关疑难解决方法(0)

apt 和 apt-get 有什么区别?

我阅读了aptSoftpedia 中添加到1.0的新花式进度条以及如何在此处启用它。但是在运行时sudo apt-get update,我没有看到花哨的进度条。再次阅读第二个链接时,该解决方案明确要求您使用sudo apt update.

因此,我的问题是之间的差异aptapt-get。我以为他们是一回事。

apt

653
推荐指数
4
解决办法
36万
查看次数

'apt-get' 被弃用了吗?

最近看到很多人用

sudo apt
Run Code Online (Sandbox Code Playgroud)

代替

sudo apt-get
Run Code Online (Sandbox Code Playgroud)

此外,Ubuntu 一直告诉我通过以下方式安装东西 sudo apt

The program 'foo' is currently not installed. You can install it by typing:
sudo apt install foo
Run Code Online (Sandbox Code Playgroud)

(请记住,foo 是占位符,而不是应用程序)

因此,在社区中关于使用apt而不是的流行之后apt-get,我开始认为 apt-get 已被弃用并且不能再在我的 bash 程序中使用。

在我的 bash 程序中,

  • 我必须用 替换所有apt-get命令apt吗?
  • apt-get危险的?
  • 我的程序还能用吗?

command-line apt bash 16.04

55
推荐指数
3
解决办法
2万
查看次数

标签 统计

apt ×2

16.04 ×1

bash ×1

command-line ×1