- dpkg
- 아래 툴들의 기반 툴
- apt
- apt-get
- apt-file
- synaptic
- GUI 툴
GUI 툴은 직관적으로 사용가능.
패키지 설치
apt-get install 패키지 이름
- 파일 설치 시에 임시로 다운받은 .deb 파일들은 /var/cache/apt/archives에 저장된다.
dpkg -i deb 파일
설치된 파일로 패키지 이름 찾기
apt-file search /path/to/file
apt-file search 는 /path/to/file문자열이 포함된 모든 패키지를 찾는다.
예) apt-file search /bin/ls
base: /usr/lib/plan9/bin/ls
arb: /usr/lib/arb/bin/lsadt
bilibop-rules: /bin/lsbilibop
canna-utils: /usr/bin/lsdic
cgroup-bin: /usr/bin/lscgroup
cgroup-bin: /usr/bin/lssubsys
cmtk: /usr/lib/cmtk/bin/lsba
coreutils: /bin/ls
...
정확히 /bin/ls가 포함된 패키지 만을 찾으려면
apt-file -F search /path/to/file
위와 같이 -F옵션을 사용한다.
dpkg -S /path/to/file
설치된 파일로 패키지가 설치한 파일 목록보기
apt-file -F search `which ls` | awk -F':' '{print $1}' | xargs apt-file -F list
dpkg -S `which ls` | awk -F':' '{print $1}' | xargs dpkg -L
댓글
댓글 쓰기