본문 바로가기
Linux/Linux Shell Command

aptitude - 설치 패키지 정보 확인하기

by 드로니뚜벅이 2022. 8. 16.

사용자 인터페이스를 추가하해 사용자가 대화형으로 패키지를 검색해 설치 및 제거할 수 있는 High-level 패키지 관리 도구입니다. 데비안을 위해 만들어졌지만 rpm 기반 패키지까지 확장되었습니다.

apt-get과 apt-cache 기능을 포함합니다.

특징으로는,

1) 어떤 패키지를 삭제할 때 사용되지 않는 패키지까지 삭제해 줍니다.

2) 'why', 'why-not' 명령어를 사용해 어떤 동작이 왜 안되고 되는지를 확인해 볼 수 있습니다.

3) 설치/제거 시 충돌이 발생할 경우 해결 방법을 제시해 줍니다.

 

기본 명령어가 아니기 때문에 사용을 위해서는 설치를 해야 합니다.

$ sudo apt update
$ sudo apt install aptitude

 

설치 패키지 정보를 확인하려면 "show" 옵션을 사용합니다.

$ aptitude show g++
Package: g++                      
Version: 4:9.3.0-1ubuntu2
State: installed
Automatically installed: no
Priority: optional
Section: devel
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Uncompressed Size: 16.4 k
Depends: cpp (= 4:9.3.0-1ubuntu2), gcc (= 4:9.3.0-1ubuntu2), g++-9 (>= 9.3.0-3~), gcc-9 (>=
         9.3.0-3~)
Suggests: g++-multilib
Conflicts: g++:i386
Provides: c++-compiler, g++-x86-64-linux-gnu (= 4:9.3.0-1ubuntu2), g++:amd64 (= 4:9.3.0-1ubuntu2)
Description: GNU C++ compiler
 This is the GNU C++ compiler, a fairly portable optimizing compiler for C++. 
 
 This is a dependency package providing the default GNU C++ compiler.

'Linux > Linux Shell Command' 카테고리의 다른 글

ifconfig - 네트워크 인터페이스 정보  (1) 2022.09.28
wget - 인터넷에서 파일 다운로드  (0) 2022.08.21
ss (socket statistics)  (0) 2022.07.14
lsof  (0) 2022.07.01
mkdir - 디렉토리(폴더) 생성하기  (0) 2022.05.12