apt 与 apt-get 的区别

本文最后更新于 2024年4月26日 凌晨

【参考】 Difference Between apt and apt-get Explained - It’s FOSS : https://itsfoss.com/apt-vs-apt-get-difference/

简述

  1. apt-get, apt-cache 相对于 apt 命令相对低级,拥有大量相似的命令与不常用的功能;
  2. aptapt-getapt-cache 的子集,提供相对常用的命令。

细节差异

【参考】apt(8) — apt — Debian jessie — Debian Manpages : https://manpages.debian.org/jessie/apt/apt.8.en.html

  1. 优化终端用户体验
    e.g. 在默认配置下,apt install / remove 会显示进度条;在 upgrade / update 会显示软件包的数量。
  2. 命令差异
    apt command the command it replaces
    apt install apt-get install
    apt remove apt-get remove
    apt update apt-get update
    apt upgrade apt-get upgrade
    apt full-upgrade apt-get dist-upgrade
    apt search apt-cache search
    apt show apt-cache show
  3. apt 限定命令
    new apt command function of the command
    apt list Display a list of package
    apt edit-sources Edits sources list

【扩展】apt.conf(5): config file for APT - Linux man page : https://linux.die.net/man/5/apt.conf
【扩展】Aptitude - Debian Wiki : https://wiki.debian.org/Aptitude


apt 与 apt-get 的区别
https://blog.cc01cc.cn/2023/04/30/linux-apt-apt-get/
作者
零一/cc01cc(zeo)
发布于
2023年4月30日
更新于
2024年4月26日
许可协议