Debian-Tips


Debian管理情報

aptの使い方

aptパッケージ情報の更新

#apt-get update

パッケージの説明を見る

  • #apt-cache show パッケージ名

パッケージの検索

  • #apt-cache [--full] serch "keyword"

依存関係の調査

  • #apt-cache depends パケージ名

install

  • #apt-get [-s] [-d] install パッケージ名
    • sオプションは流れだけでinstallはしない
    • 途中で失敗したらapt-get -f installしてから
    • #apt-get reinstall install パッケージ名

update

  • #apt-get [-s] [-d] upgrade
    • これはインストール済みの全てのパッケージをupgradeをします

woodyからのアップグレード

  • #apt-get dist-upgrade
    • ただし現在の最新はwoodyである

パッケージのホールド

  • 基幹業務として使用しているものypbindなどに使用する
  • echo パッケージ名 hold | dpkg --set-selections
  • ホールドを削除する
  • echo パッケージ名 install | --set-selections

dpkgの使い方


update-alternatives

update-alternatives は Debian の alternatives システムを成
すシンボリックリンクを生成・削除・管理したり、リンクの情報
を表示したりする。
  • 詳しくはmanあー長