wikiからの移植です。
apt-get
apt-getは、パッケージの一括管理システム新しいパッケージの導入
検索語を使って導入するパッケージ名を探すapt-cache search 検索語
パッケージの状態を調べてどのようなパッケージに依存しているかをチェック
apt-cache show パッケージ名
パッケージのインストール
apt-get install パッケージ名
usr/share/doc/パッケージ名/README.Debianにreadmeがある。その他ドキュメントもusr/share/doc/パッケージ名/にあるのでチェックする
パッケージの削除
apt-get remove パッケージ名
deborphan(必要のなくなったパッケージを調べる) それらもapt-get removeで削除する
コマンドのまとめ
- apt-get dist-upgrade
- システムを自動的に新バージョンにアップグレードする
- apt-get install パッケージ名
- パッケージをインストールする
- apt-get remove パッケージ名
- パッケージをアンインストールする
- apt-get update
- 入手可能なパッケージリストを調べデータベースを更新
- apt-get upgrade
- パッケージをアップグレードする
apt-lineの編集
etc/apt/sources.list を編集
先頭に'#'でコメントアウトが可能
deb http://近くのサーバ/archives/linux/debian/debian woody main contrib non-free deb http://近くのサーバ/archives/linux/debian/debian-non-US woody/non-US main contrib non-free deb http://security.debian.org/ woody/updates main contrib non-free