Changes between Initial Version and Version 1 of docs/vl7/cui-guide/package-management/apt-show


Ignore:
Timestamp:
2013/05/07 22:32:21 (11 years ago)
Author:
yasumichi
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • docs/vl7/cui-guide/package-management/apt-show

    v1 v1  
     1[wiki:docs Vine Linux ドキュメント] / [wiki:../../../ Vine Linux 7.x] / [wiki:../../ CUI ユーザーズガイド] / [wiki:../ プログラムの追加・削除・更新(パッケージ管理)] / apt-cache コマンドによるパッケージ情報の表示 
     2 
     3= apt-cache コマンドによるパッケージ情報の表示 = 
     4 
     5パッケージの情報を知りたい場合は、apt-cache コマンドを用います。 
     6 
     7man apt-cache や apt-cache --help で使い方を見ることができます。 
     8 
     9まず、gencaches で情報を収集しておきます。 
     10 
     11{{{ 
     12#!sh 
     13$ sudo apt-cache gencaches 
     14}}} 
     15 
     16apt-get コマンドで update, upgrade, install, remove などを実行した場合には apt-cache gencaches と同じ処理が行われるので、apt-cache gencaches を頻繁に実行する必要はありません。 
     17 
     18個別のパッケージ情報を知りたい場合は、apt-cache show (パッケージ名)を用います。apt 自身の場合、以下のように表示されます。 
     19 
     20{{{ 
     21#!sh 
     22$ apt-cache show apt 
     23Package: apt 
     24Section: Applications/Administration 
     25Installed Size: 2523758 
     26Packager: Daisuke SUZUKI <daisuke@linux.or.jp> 
     27Version: 0.5.15lorg3.2-0vl8.1 
     28Pre-Depends: fileutils, ldconfig, sed, /bin/sh, /bin/sh 
     29Depends: rpm >= 4.0.4, gnupg, bzip2, readline >= 4.3, vine-keyring, /bin/sh, /bi 
     30n/sh, libapt-pkg-libc6.3-5.so.2, libbz2.so.1, libc.so.6, libc.so.6(GLIBC_2.0), l 
     31ibc.so.6(GLIBC_2.1), libc.so.6(GLIBC_2.1.3), libc.so.6(GLIBC_2.2), libc.so.6(GLI 
     32BC_2.2.3), libc.so.6(GLIBC_2.3), libc.so.6(GLIBC_2.3.4), libdl.so.2, libdl.so.2( 
     33GLIBC_2.0), libdl.so.2(GLIBC_2.1), libgcc_s.so.1, libgcc_s.so.1(GCC_3.0), libm.s 
     34o.6, libm.so.6(GLIBC_2.0), libncurses.so.5, libpopt.so.0, libreadline.so.5, libr 
     35pm-4.4.so, librpmdb-4.4.so, librpmio-4.4.so, libstdc++.so.5, libstdc++.so.5(GLIB 
     36CPP_3.2), libxml2.so.2, libz.so.1 
     37Provides: libapt-pkg-libc6.3-5.so.2, apt = 0.5.15lorg3.2-0vl8.1 
     38Architecture: i386 
     39Size: 1007108 
     40MD5Sum: e250f6a02202d097fb536b19c3d494f9 
     41Filename: apt-0.5.15lorg3.2-0vl8.1.i386.rpm 
     42Summary: RPM を扱える Debian のパッケージツール apt(Advanced Packaging Tool) 
     43Description:  
     44 これはrpm対応の apt です。 apt-getは簡単かつ安全にパッケージ 
     45 のアップグレード,インストールがおこなえるコマンドです。 
     46 apt は依存関係の解決、インストール順序の補完などさまざまな特 
     47 徴があります。 
     48}}} 
     49 
     50Group: !Applications/Administration であるべきところが Section: !Applications/Administration となっていますが、これは現在の仕様です。 
     51 
     52パッケージの依存関係などを知りたい場合は、apt-cache showpkg (パッケージ名) を用います。 
     53 
     54{{{ 
     55#!sh 
     56$ apt-cache showpkg apt 
     57Package: apt 
     58Versions:  
     590.5.15lorg3.2-0vl8.1.i386(/var/state/apt/lists/Vine%20Linux%204.1_Vine_base_pkgl 
     60ist.main)(/var/lib/rpm/Packages) 
     610.5.15lorg3.2-0vl7.i386(/var/state/apt/lists/updates.vinelinux.org_apt_4.1_i386_ 
     62base_pkglist.main) 
     63 
     64Reverse Depends:  
     65  tiny-buildfarm,apt 0.3.19.cnc.52 
     66  cron-apt,apt 
     67  apt-listchanges,apt 0.5.4.cnc.9 
     68  apt-cron,apt 
     69  synaptic,apt 0.5.15lorg3.2-0vl7 
     70  apt-devel,apt 0.5.15lorg3.2-0vl7 
     71  synaptic,apt 0.5.5 
     72Dependencies:  
     730.5.15lorg3.2-0vl8.1 - fileutils (0 (null)) ldconfig (0 (null)) sed (0 (null)) r 
     74pm (2 4.0.4) gnupg (2 (null)) bzip2 (2 (null)) readline (2 4.3) vine-keyring (2  
     75(null)) /bin/sh (2 (null)) /bin/sh (2 (null)) /bin/sh (2 (null)) /bin/sh (2 (nul 
     76l)) libapt-pkg-libc6.3-5.so.2 (2 (null)) libbz2.so.1 (2 (null)) libc.so.6 (2 (nu 
     77ll)) libc.so.6(GLIBC_2.0) (2 (null)) libc.so.6(GLIBC_2.1) (2 (null)) libc.so.6(G 
     78LIBC_2.1.3) (2 (null)) libc.so.6(GLIBC_2.2) (2 (null)) libc.so.6(GLIBC_2.2.3) (2 
     79 (null)) libc.so.6(GLIBC_2.3) (2 (null)) libc.so.6(GLIBC_2.3.4) (2 (null)) libdl 
     80.so.2 (2 (null)) libdl.so.2(GLIBC_2.0) (2 (null)) libdl.so.2(GLIBC_2.1) (2 (null 
     81)) libgcc_s.so.1 (2 (null)) libgcc_s.so.1(GCC_3.0) (2 (null)) libm.so.6 (2 (null 
     82)) libm.so.6(GLIBC_2.0) (2 (null)) libncurses.so.5 (2 (null)) libpopt.so.0 (2 (n 
     83ull)) libreadline.so.5 (2 (null)) librpm-4.4.so (2 (null)) librpmdb-4.4.so (2 (n 
     84ull)) librpmio-4.4.so (2 (null)) libstdc++.so.5 (2 (null)) libstdc++.so.5(GLIBCP 
     85P_3.2) (2 (null)) libxml2.so.2 (2 (null)) libz.so.1 (2 (null))  
     860.5.15lorg3.2-0vl7 - fileutils (0 (null)) ldconfig (0 (null)) sed (0 (null)) rpm 
     87 (2 4.0.4) gnupg (2 (null)) bzip2 (2 (null)) readline (2 4.3) vine-keyring (2 (n 
     88ull)) /bin/sh (2 (null)) /bin/sh (2 (null)) /bin/sh (2 (null)) /bin/sh (2 (null) 
     89) libapt-pkg-libc6.3-5.so.2 (2 (null)) libbz2.so.1 (2 (null)) libc.so.6 (2 (null 
     90)) libc.so.6(GLIBC_2.0) (2 (null)) libc.so.6(GLIBC_2.1) (2 (null)) libc.so.6(GLI 
     91BC_2.1.3) (2 (null)) libc.so.6(GLIBC_2.2) (2 (null)) libc.so.6(GLIBC_2.2.3) (2 ( 
     92null)) libc.so.6(GLIBC_2.3) (2 (null)) libc.so.6(GLIBC_2.3.4) (2 (null)) libdl.s 
     93o.2 (2 (null)) libdl.so.2(GLIBC_2.0) (2 (null)) libdl.so.2(GLIBC_2.1) (2 (null)) 
     94 libgcc_s.so.1 (2 (null)) libgcc_s.so.1(GCC_3.0) (2 (null)) libm.so.6 (2 (null)) 
     95 libm.so.6(GLIBC_2.0) (2 (null)) libncurses.so.5 (2 (null)) libpopt.so.0 (2 (nul 
     96l)) libreadline.so.5 (2 (null)) librpm-4.4.so (2 (null)) librpmdb-4.4.so (2 (nul 
     97l)) librpmio-4.4.so (2 (null)) libstdc++.so.5 (2 (null)) libstdc++.so.5(GLIBCPP_ 
     983.2) (2 (null)) libxml2.so.2 (2 (null)) libz.so.1 (2 (null))  
     99Provides:  
     1000.5.15lorg3.2-0vl8.1 - apt libapt-pkg-libc6.3-5.so.2  
     1010.5.15lorg3.2-0vl7 - apt libapt-pkg-libc6.3-5.so.2  
     102Reverse Provides:  
     103apt 0.5.15lorg3.2-0vl7 
     104apt 0.5.15lorg3.2-0vl8.1 
     105}}} 
     106 
     107ソースパッケージの情報を知りたい場合は、apt-cache showsrc (パッケージ名) を用います。 
     108 
     109一般的に package-devel-(バージョン)-(リリース番号).(アーキテクチャ).rpm のソースパッケージは package-(バージョン)-(リリース番号).src.rpm ですが、このように -(バージョン) より前の部分の名前が異なる場合は showsrc では表示されません。 
     110 
     111{{{ 
     112#!sh 
     113$ apt-cache showsrc apt 
     114Package: apt 
     115Section: Applications/Administration 
     116Installed Size: 1119612 
     117Packager: Daisuke SUZUKI <daisuke@linux.or.jp> 
     118Version: 0.5.15lorg3.2-0vl8.1 
     119Architecture: i386 
     120Size: 1042699 
     121MD5Sum: a670ca043b1668c96e6f5d7496c08047 
     122Filename: apt-0.5.15lorg3.2-0vl7.src.rpm 
     123Summary: RPM を扱える Debian のパッケージツール apt(Advanced Packaging Tool) 
     124Description:  
     125 これはrpm対応の apt です。 apt-getは簡単かつ安全にパッケージ 
     126 のアップグレード,インストールがおこなえるコマンドです。 
     127 apt は依存関係の解決、インストール順序の補完などさまざまな特 
     128 徴があります。 
     129}}}