사용자 도구
관리
로그인
추적:
이 문서는 읽기 전용입니다. 원본을 볼 수는 있지만 바꿀 수는 없습니다. 문제가 있다고 생각하면 관리자에게 문의하세요.
====== dpkg ====== 데비안 패키지 관리 시스템을 위한 프로그램. 우분투의 apt-get와 비슷하다고 보면 된다. ===== 패키지 인스톨 ===== <code bash> $ dpkg -i package-file-name </code> package-file-name에는 deb 확장자의 파일 이름을 입력하면 된다. ''-i''는 install을 뜻한다. ===== 패키지 확인 ===== <code bash> $ dpkg -l | grep '검색할 내용' </code> ''-l'' 옵션으로 install된 패키지 리스트를 볼 수 있다. grep 명령어를 이용하여 검색 가능하다. 다음과 같이 사용하면 된다. <code bash> $ dpkg -l | grep 'tcl' ii tcl8.4 8.4.19-2 Tcl (the Tool Command Language) v8.4 - run-t </code> 이 때 tcl8.4 가 패키지 이름이다. ===== 패키지 삭제 ===== ''-r'' 옵션으로 삭제 가능하다. <code bash> $ dpkg -r package-name </code> 위의 예에서 든 tcl8.4를 제거하려면 다음과 같이 입력하면 된다. <code bash> $ dpkg -r tcl8.4 (Reading database ... 94812 files and directories currently installed.) Removing tcl8.4 ... Processing triggers for man-db ... Processing triggers for menu ... </code> 다시 리스트를 확인하면 다음과 같다. <code bash> $ dpkg -l | grep 'tcl' rc tcl8.4 8.4.19-2 Tcl (the Tool Command Language) v8.4 - run-t </code> 여기서 rc는 'removed ok config-files'를 뜻한다. Remove action은 config 파일은 제거하지 않는다. 설치된 패키지의 상태는 ''/var/lib/dpkg/status''에서 확인 가능하다. <code bash> Package: tcl8.4 Status: deinstall ok config-files Priority: optional Section: interpreters Installed-Size: 3308 </code> ''-P'' 옵션을 통해 config 파일까지 완전히 제거할 수 있다. <code bash> $ dpkg -P tcl8.4 (Reading database ... 94691 files and directories currently installed.) Removing tcl8.4 ... Purging configuration files for tcl8.4 ... Processing triggers for menu ... $ dpkg -l | grep 'tcl' $ </code> ''/var/lib/dpkg/status'' 내용은 다음과 같이 바뀐다. <code bash> Package: tcl8.4 Status: purge ok not-installed Priority: optional Section: interpreters </code>
문서 도구
문서 보기
이전 판
역링크
PDF로 내보내기
맨 위로
PDF Export
내용으로 건너뛰기
OBG WiKi
사이트 도구
검색
최근 바뀜
미디어 관리자
사이트맵