프로그래밍 기초/리눅스

apt와 apt-get의 차이점

Zero Coding 2022. 7. 5. 09:58
APT(Advanced Packaging Tool) 는 데비안 GNU/리눅스 계열의 패키기 관리 명령도구. apt는 데비안과 그 파생물을위한 주요 명령 줄 패키지 관리자로, 상위 패키지 관리자가 의존 할 수있는 libapt-pkg 및 libapt-inst 라이브러리에서 제공하는 모든 기능에 대한 하위 수준 액세스는 물론 패키지에 대한 정보를 쿼리 할뿐만 아니라 검색 및 관리를위한 명령 줄 도구를 제공함
※ apt와 apt-get은 옵션에 차이있을뿐 사용상에는 큰 차이가 없다!
apt-get --help

apt 2.2.4 (arm64)
Usage: apt-get [options] command
       apt-get [options] install|remove pkg1 [pkg2 ...]
       apt-get [options] source pkg1 [pkg2 ...]

apt-get is a command line interface for retrieval of packages
and information about them from authenticated sources and
for installation, upgrade and removal of packages together
with their dependencies.

Most used commands:
  update - Retrieve new lists of packages
  upgrade - Perform an upgrade
  install - Install new packages (pkg is libc6 not libc6.deb)
  reinstall - Reinstall packages (pkg is libc6 not libc6.deb)
  remove - Remove packages
  purge - Remove packages and config files
  autoremove - Remove automatically all unused packages
  dist-upgrade - Distribution upgrade, see apt-get(8)
  dselect-upgrade - Follow dselect selections
  build-dep - Configure build-dependencies for source packages
  satisfy - Satisfy dependency strings
  clean - Erase downloaded archive files
  autoclean - Erase old downloaded archive files
  check - Verify that there are no broken dependencies
  source - Download source archives
  download - Download the binary package into the current directory
  changelog - Download and display the changelog for the given package
$ apt --help

apt 2.2.4 (arm64)
Usage: apt [options] command

apt is a commandline package manager and provides commands for
searching and managing as well as querying information about packages.
It provides the same functionality as the specialized APT tools,
like apt-get and apt-cache, but enables options more suitable for
interactive use by default.

Most used commands:
  list - list packages based on package names
  search - search in package descriptions
  show - show package details
  install - install packages
  reinstall - reinstall packages
  remove - remove packages
  autoremove - Remove automatically all unused packages
  update - update list of available packages
  upgrade - upgrade the system by installing/upgrading packages
  full-upgrade - upgrade the system by removing/installing/upgrading packages
  edit-sources - edit the source information file
  satisfy - satisfy dependency strings