# 패키지와 파일의 의존성 확인하기

**URL:** <https://discourse.ubuntu-kr.org/t/topic/15703>\
**Category:** 자유 게시판\
**Tags:** 팁\_공유\
**Created:** [6월 10, 2011, 2:50오전 UTC](https://discourse.ubuntu-kr.org/t/topic/15703 "2011-06-10T02:50:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![protochaos](https://discourse.ubuntu-kr.org/letter_avatar_proxy/v4/letter/p/c0e974/32.png) [@protochaos](https://discourse.ubuntu-kr.org/u/protochaos)\
**Post date:** [6월 10, 2011, 2:50오전 UTC](https://discourse.ubuntu-kr.org/t/topic/15703/1 "2011-06-10T02:50:01Z")

</div>

- 패키지의 의존성 확인하기  
sudo apt-get install apt-rdepends  
apt-redepends 패키지

- 파일의 의존성 확인하기  
실행파일이 어떤 라이브러리에 의존하는지 알고 싶으시다면  
ldd 실행경로  
명령으로 확인해 볼 수 있습니다.

예)  
ldd /usr/bin/nano  
linux-vdso.so.1 =\> (0x00007fff459cf000)  
libncursesw.so.5 =\> /lib/libncursesw.so.5 (0x00007ff94c59f000)  
libc.so.6 =\> /lib/x86\_64-linux-gnu/libc.so.6 (0x00007ff94c20b000)  
libdl.so.2 =\> /lib/x86\_64-linux-gnu/libdl.so.2 (0x00007ff94c006000)  
/lib64/ld-linux-x86-64.so.2 (0x00007ff94c81e000)

nano를 많이 쓰지만 역시나 라이브러리 의존성 관계로 initramfs 램이미지에는 포함되지 않았나 봅니다.
