LoginSignup
0
0

More than 3 years have passed since last update.

aptチートシート

Last updated at Posted at 2018-09-12

取得したパッケージのローカルリポジトリ(キャッシュ)をクリアする

sudo apt-get clean

不要になった依存パッケージを削除する

sudo apt-get autoremove

パッケージのバージョンを確認する

例としてdashのバージョンを確認してみる。

apt-cache policy dash

パッケージの依存関係を見る

apt-cache depends packageでpackage 依存しているパッケージを、apt-cache rdepends packageでpackage 依存しているパッケージの一覧を見れる。

パッケージの依存関係をグラフ化する

debtreeを使う。

apt-get install debtree
debtree gnuplot-nox | dot -T png -o out.png

参考: https://iww.hateblo.jp/entry/20120503/debtree

apt-get install でインストールしたファイルの一覧を見る(インストール先を確認する)

dpkg -L パッケージ名

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0