【Fundamental Tech】/Operating System

[Ubuntu] 의존성 포함 deb 패키지 다운로드

[一日一學, 一日一新] 2024. 9. 4.
  • deb만 다운로드 하고 싶을 경우
    • 아래 Command를 실행하면 /var/cache/apt/archives 디렉토리에 deb 파일을 다운로드
$sudo apt reinstall --download-only -y [패키지명]

 

  • 모든 의존성 패키지를 다운로드
$sudo apt-cache depends [패키지명] | grep "Depends" | awk '{print $2}' | xargs apt-get download

 

반응형

댓글