Aptitude 는 메뉴 방식이고, Advanced Packaging Tool (APT) 시스템의 텍스트 기반 프론트 엔드 입니다. 설치, 삭제, 그리고 업그레이드와 같은 많은 일반적인 패키지 관리 기능을 Aptitude 에서는 단일 키 명령, 보통 소문자를 사용하여 수행할 수 있습니다.
Aptitude is best suited for use in a non-graphical terminal environment to ensure proper functioning of the command keys. You may start Aptitude as a normal user with the following command at a terminal prompt:
sudo aptitude
Aptitude를 시작하고, 여러분은 화면의 가장 위에 메뉴 막대를, 그 메뉴 막대 밑에 두 개의 부분 창을 보게 됩니다. 윗쪽의 부분 창은 새 패키지 와 설치되지 않은 패키지 와 같은 패키지 분류를 가집니다. 아래의 부분 창은 패키지와 패키지 분류에 관련된 정보를 가집니다.
Using Aptitude for package management is relatively straightforward, and the user interface makes common tasks simple to perform. The following are examples of common package management functions as performed in Aptitude:
패키지 설치: 패키지를 설치하려면, 설치되지 않은 패키지 분류를 통하여 패키지에 위치하고, 예를 들어, 키보드의 화살표 키와 ENTER 키를 사용하여, 설치하고자 하는 패키지를 선택(하이라이팅으로 강조됨) 합니다. 설치하고자 하는 패키지의 선택 후, + 키를 누르면, 그 패키지 항목은 녹색 으로 색상이 바뀌고, 이것은 설치를 위하여 표시되었음을 알려 줍니다. 이제 패키지 동작의 요약을 보이기 위해 g 키를 누릅니다. 다시 한번 g 키를 누르면, 설치를 끝내기 위해 root가 되기위한 프롬프트를 보게 됩니다. ENTER 키를 누르면 암호 프롬프트를 보게되고, 여러분의 사용자 암호를 입력하여 root(시스템 관리를 하는 사용자)가 됩니다. 마지막으로, g 키를 한 번 더 누르고 패키지의 다운로드를 알리는 프롬프트를 보게 됩니다. 계속 프롬프트에서 ENTER 키를 누르면, 패키지의 내려받기와 설치가 시작 됩니다.
패키지 삭제: 패키지를 삭제하려면, 설치된 패키지 분류를 통하여 패키지에 위치하고, 예를 들어, 키보드의 화살표 키와 ENTER 키를 사용하여, 삭제하고자 하는 패키지를 선택 합니다. 삭제하고자 하는 패키지의 선택 후, - 키를 누르면, 그 패키지 항목은 분홍색 으로 색상이 바뀌고, 이것은 삭제를 위하여 표시되었음을 알려 줍니다. 이제 패키지 동작의 요약을 보이기 위해 g 키를 누릅니다. 다시 한번 g 키를 누르면, 삭제를 끝내기 위해 root가 되기위한 프롬프트를 보게 됩니다. ENTER 키를 누르면 암호 프롬프트를 보게되고, 여러분의 사용자 암호를 입력하여 root가 됩니다. 마지막으로, g 키를 한 번 더 누르고 패키지의 삭제를 알리는 프롬프트를 보게 됩니다. 계속 프롬프트에서 ENTER 키를 누르면, 패키지의 삭제가 시작 됩니다.
Update Package Index: To update the package index, simply press the u key and you will be prompted to become root to complete the update. Press ENTER which will result in a Password: prompt. Enter your user password to become root. Updating of the package index will commence. Press ENTER on the OK prompt when the download dialog is presented to complete the process.
Upgrade Packages: To upgrade packages, perform the update of the package index as detailed above, and then press the U key to mark all packages with updates. Now press g whereby you'll be presented with a summary of package actions. Press g again, and you will be prompted to become root to complete the installation. Press ENTER which will result in a Password: prompt. Enter your user password to become root. Finally, press g once more, and you'll be prompted to download the packages. Press ENTER on the Continue prompt, and upgrade of the packages will commence.
위쪽 부분 창의 패키지 목록에 보여진 정보의 첫 항목(행)은, 패키지의 현재 상태를 패키지 목록에 실제 보이는 것이고, 패키지 상태를 기술하는 것은 다음의 키를 사용 합니다:
i: Installed package
c: 설치되지 않은 패키지이지만, 설정이 시스템에 남아있는 패키지
p: 시스템에서 깨끗히 삭제된 패키지
v: 가상 패키지
B: 잘못된 패키지
u: 풀려진 파일, 그러나 아직 설정이 안된 패키지
C: Half-configured - Configuration failed and requires fix
H: Half-installed - Removal failed and requires fix
Aptitude를 종료하려면, 간단히 q 키를 누르고 종료한다는 것을 확인 합니다. 많은 다른 기능들은 Aptitude 메뉴에서 F10 키를 눌러 보실 수 있습니다.