Skip to content

Instantly share code, notes, and snippets.

@kjunichi
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kjunichi/bd58a74408717d181b3e to your computer and use it in GitHub Desktop.
Save kjunichi/bd58a74408717d181b3e to your computer and use it in GitHub Desktop.
dpkgメモ

絶対覚えないといけない-Sオプション

割と、上手い事言ってる環境と、ドハマりの環境を比較するシチュエーションで役立ってきた。

dpkg -S /what/pkg/is/this/file/belogs/to

指定したファイルがどのパッケージに属しているかが分かる。

-Lでインストールしちゃったパッケージがどんなファイルをばらまいたかが分かる

dpkg -L ninix-aya

現在どれだけapt-get installしたかを調べるには

dpkg -l

パッケージ名が長くて、かけてしまう場合

COLUMNS=150 dpkg -l|grep libmagick++  
dpkg -l|cut -f3 -d' '

関連Gist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment