## page was renamed from UbuntuTips/Application/PackageManagementSystem/HowToSearchOrInstallOrRemovePackagesWithAptitude ## page was renamed from UbuntuTips/Application/HowToSearchOrInstallOrRemovePackagesWithAptitude #title aptitude の使い方 * '''対象とするUbuntuのバージョン''' * 8.04以降すべて ## 以下にTipsを記述 ||<>|| == 概要 == 「aptitude」の基本的な使い方を説明します。 == インタラクティブモード == {{{aptitude}}} を[[UbuntuTips/Others/HowToUseTerminal|端末]]から引数なしで実行するとインタラクティブモードで起動します。 [[attachment:Screenshot-aptitude-インタラクティブ-起動.png|{{attachment:Screenshot-aptitude-インタラクティブ-起動.png||width=400}}]] === メニューの表示 === Ctrl+t を押すとメニューを表示します。 [[attachment:Screenshot-aptitude-インタラクティブ-メニュー.png|{{attachment:Screenshot-aptitude-インタラクティブ-メニュー.png||width=400}}]] === ヘルプの表示 === ? (日本語106キーボードならShift+/)を押すとヘルプを表示します。 [[attachment:Screenshot-aptitude-インタラクティブ-ヘルプ.png|{{attachment:Screenshot-aptitude-インタラクティブ-ヘルプ.png||width=400}}]] === 終了 === q を押すと終了します。 [[attachment:Screenshot-aptitude-インタラクティブ-終了.png|{{attachment:Screenshot-aptitude-インタラクティブ-終了.png||width=400}}]] == コマンドラインモード == [[UbuntuTips/Others/HowToUseTerminal|端末]]で引数を付けて実行するとコマンドラインモードになります。 ||'''項目'''||<:>'''コマンド'''(端末で実行、"$"は入力しない)||<:30%>'''備考'''|| ||<#DBBA75-3>'''更新'''|| ||データベースの更新||$ sudo aptitude update|| || ||パッケージの更新||$ sudo aptitude safe-upgrade||データベースの更新を先に行なうこと || ||<#DBBA75-3>'''パッケージの検索'''|| ||検索語を情報に含むパッケージを探す||$ aptitude search ''検索語''|| || ||あるパッケージの情報を表示する||$ aptitude show ''パッケージの名称''|| || ||パッケージのインストール ||$ sudo aptitude install ''パッケージの名称''||初期状態でaptitudeは推奨パッケージをインストールする。この挙動はインタラクティブモードで メニュー → オプション → Preferences → Dependency handling で変更可能。|| || ||<#DBBA75-3>'''パッケージの削除'''|| ||通常の削除||$ sudo aptitude remove ''パッケージの名称''|| || ||設定ファイル<>を含めて削除||$ sudo aptitude purge ''パッケージの名称''|| || == おまけ == === インタラクティブモード === メニューからマインスイーパを起動して遊べる。 [[attachment:Screenshot-aptitude-インタラクティブ-マインスイーパ.png|{{attachment:Screenshot-aptitude-インタラクティブ-マインスイーパ.png||width=300}}]] === コマンドラインモード === 次のコマンドを実行すると,最終行に不思議なメッセージが現れる。 {{{ aptitude --help }}} '''''この aptitude にはスーパー牛さんパワーなどはありません。''''' これは,[[http://ja.wikipedia.org/wiki/イースター・エッグ_(コンピュータ)|イースター・エッグ]]と呼ばれるプログラマーの遊び心を反映した隠し機能の一例。 以下のコマンドで,面白いメッセージが見られます。 {{{ aptitude moo }}} {{{ aptitude -v moo }}} {{{ aptitude -vv moo }}} {{{ aptitude -vvv moo }}} {{{ aptitude -vvvv moo }}} {{{ aptitude -vvvvv moo }}} {{{ aptitude -vvvvvv moo }}} == より詳しい説明 == === aptitude の組み込みヘルプ === {{{ aptitude help }}} === Man ページ === {{{ man aptitude }}} ## http://manpages.ubuntu.com/cgi-bin/search.py?ie=UTF-8&q=aptitude === info ページ === {{{ info aptitude }}} === ドキュメントのパッケージ === apt:aptitude-doc-ja * file:///usr/share/doc/aptitude/html/ja/index.html にインストールされます。 == リンク == * [[https://help.ubuntu.com/community/AptitudeSurvivalGuide|AptitudeSurvivalGuide - Ubuntu Documentation]] * [[http://www.debian.org/doc/manuals/reference/ch02.ja.html#_basic_package_management_operationsDebian|Debianリファレンス#パッケージ管理]] * [[http://www.debian.org/doc/manuals/debian-faq/ch-pkg_basics.en.html|The Debian GNU/Linux FAQ Chapter 7 - Basics of the Debian package management system (英語)]] * [[http://debian.fam.cx/index.php?AptGet|2ch Debian GNU/Linux スレッドテンプレ のパッケージシステム]] ## リンク切れ ## パッケージについて:: ##'''Debian リファレンスの Debian パッケージ管理システムの項''' ##http://www.debian.org/doc/manuals/reference/ch-system.ja.html#s-pkg-basics ----