sudo apt-get install과 sudo apt install의 차이점은 무엇입니까?

sudo apt-get install과 sudo apt install의 차이점은 무엇입니까?

에서 많은 패키지를 설치했지만 sudo apt-get install입력했을 때 sudo apt --help다음을 통해 설치를 수행하는 직접 옵션이 제공되었습니다 sudo apt install [package name]. 그렇다면 둘 사이의 차이점은 무엇입니까? 'apt'와 함께 'get'을 사용하지 않으면 문제가 있나요?

답변1

별로. 여러 기능을 하나의 명령으로 병합 apt하는 새로운 명령입니다 . 여전히 가장자리가 약간 거칠지만 다음의 명령 목록이 있습니다 .apt-getapt-cache--help

Basic commands: 
 list - list packages based on package names
 search - search in package descriptions
 show - show package details

 update - update list of available packages

 install - install packages
 remove  - remove 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

동등한 기능은 비슷한 방식으로 작동하도록 설계되었지만 프록시 명령이 아니므로(이전 명령을 호출하지 않고 Apt 라이브러리에 직접 연결되는 새로운 인터페이스임) 일부 극단적인 경우 변경이 있을 수 있습니다.

고급 사용자가 놓칠 수 있는 몇 가지 명백한 누락( , 등)도 있고 download문서화 policy되지 않은 명령도 많이 있습니다( purge여전히 작동하지만 아무것도 찾을 수 없습니다).

16.04 업데이트:이제 많은 누락 사항이 포함되었지만 아직 문서화되지 않았으며 Bash 완성도 없습니다. 코드베이스에 이미 존재하는 기능을 구현하는 데 이렇게 오랜 시간이 걸린다는 것은 유감스러운 일이지만, 뭐 그렇죠. 내 조언은 명령에 익숙하다면 apt-{get,cache}시도해 보라는 것입니다 apt. 효과가 있을 수도 있습니다.


DIFFERENCES TO APT-GET(8)페이지 에는 man apt흥미로운 섹션 도 있습니다 .

   The apt command is meant to be pleasant for end users and does
   not need to be backward compatible like apt-get(8). Therefore
   some options are different:

   ·   The option DPkgPM::Progress-Fancy is enabled.

   ·   The option APT::Color is enabled.

   ·   A new list command is available similar to dpkg --list.

   ·   The option upgrade has --with-new-pkgs enabled by default.

그리고 Bash 완성을 원한다면 나는완료 파일을 작성하려는 시도그것을 위해 이미. 이는 이후 Ubuntu 설치에 포함됩니다.

관련 정보