我阅读了apt在Softpedia 中添加到1.0的新花式进度条以及如何在此处启用它。但是在运行时sudo apt-get update,我没有看到花哨的进度条。再次阅读第二个链接时,该解决方案明确要求您使用sudo apt update.
因此,我的问题是之间的差异apt和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危险的?