[ 이전 ] [ 차례 ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 7 ] [ 8 ] [ 9 ] [ 10 ] [ 11 ] [ 12 ] [ 13 ] [ 다음 ]


APT HOWTO
6 - 패키지에 대한 정보 얻기


설치가 가능하거나 이미 설치되었거나 어떤 패키지가 어느 섹션에 있는지 우선 순위가 어떻게 되는지 패키지에 설명이 무엇인지 등에 관해서 패키지에 대한 내용을 쉽게 얻을 수 있게 도와주는 것이 APT 시스템의 프론트엔드 프로그램 들이다.

하지만 우리의 목적은 순수한 APT를 사용하는 방법을 배우는 것이다. 설치하고자 하는 패키지의 이름을 어떻게 찾을 수 있나 

That's what this chapter intends to answer. Let's check out our options.


6.1 패키지 이름 찾아내기

예를 들어 Atari 2600를 사용하고 싶은 경우에 Atari 에뮬레이터를 설치하여 사용하고자 하고 몇개의 게임을 다운로드 하고자 한다면. 이렇게 할 수 있다:

     $ aptitude search atari
     p   atari-fdisk-cross               - Partition editor for Atari (running on no
     p   atari800                        - Atari emulator for X/curses/SDL
     p   console-keymaps-atari           - Keymaps for Atari keyboards.

We find several packages related to what we're looking for, together with brief descriptions. The p letter at the begining of the line is similar to the notation used inside the curses UI aptitude uses. It means, thus, that the package is not installed. Important to notice that aptitude only searches package names by default. You can use all the search options provided by aptitude, which you can discover by reading the aptitude's User Manual. To search the descriptions, for example, you could use:

     $ aptitude search ~datari 
     p   aranym                          - Atari Running on Any Machine
     p   atari-fdisk-cross               - Partition editor for Atari (running on no
     p   atari800                        - Atari emulator for X/curses/SDL
     p   circuslinux                     - The clowns are trying to pop balloons to
     p   circuslinux-data                - Data files for circuslinux
     p   console-keymaps-atari           - Keymaps for Atari keyboards.
     [...]
     p   stella                          - Atari 2600 Emulator for SDL & X windows
     [...]

Now, that returned many more packages, as we can see. Now that we found a list of possible solutions to our problem, let's go deeper into them:

     $ aptitude show stella
     Package: atari-fdisk-cross
     Version: 0.7.1-5
     Priority: extra
     Section: otherosfs
     Maintainer: Roman Hodek <roman@hodek.net$gt;
     Uncompressed Size: 106k
     Description: Partition editor for Atari (running on non-Atari)
      Atari-fdisk allows you to create and edit the partition table of a disk
      partitioned in Atari format. It supports both the AHDI 5.0 and ICD variations
      of the Atari format. It is an interactive tool with a menu similar to PC
      fdisk, and also supports most options of PC fdisk.

이 결과에서 보면 우리가 설치하고자 하거나 설치하고자 하지 않는 패키지에 대한 많은 자세한 정보를 패키지의 설명과 함께 자세히 나와있다. 패키지가 이미 여러분의 시스템에 설치되어 있고 새로운 버젼이라면 무든 버젼에 관한 정보도 볼 수 있다. 예를 들면:

     $ apt-cache show muine
     Package: muine
     Version: 0.5.0-1
     Priority: optional
     Section: gnome
     Maintainer: Link Dupont <link@subpop.net>
     Depends: gstreamer-gconf (>= 0.6.4), libatk1.0-0 (>= 1.4.1), libbonobo2-0 (>= 2.4.3), libc6 (>= 2.3.2.ds1-4), libflac4, libgconf2-4 (>= 2.4.0.1), libgdbm3, libglib2.0-0 (>= 2.2.3), libgnomevfs2-0 (>= 2.4.1), libgnomevfs2-common (>= 2.4.1), libgstreamer0.6-0 (>= 0.6.1-2), libgtk2.0-0 (>= 2.2.1), libid3tag0 (>= 0.15.0b), libogg0 (>= 1.1.0), liborbit2 (>= 1:2.8.0), libpango1.0-0 (>= 1.2.1), libvorbis0a (>= 1.0.1), libvorbisfile3 (>= 1.0.1), libxml2 (>= 2.6.7), zlib1g (>= 1:1.2.1), gconf2 (>= 2.4.0), mono-jit (>= 0.30) | cli-virtual-machine, gtk-sharp (>= 0.17), gconf-sharp (>= 0.17), gnome-sharp (>= 0.17)
     Architecture: i386
     Filename: ./pool/main/m/muine/muine_0.5.0-1_i386.deb
     Size: 164314
     Installed-Size: 692
     MD5sum: 9885f13e5ef4f76b3bf6fe7bb3ea8634
     Description: Simple music player
      Muine is an innovative music player. It has a simple interface designed to
      allow the user to easily construct playlists from albums and/or single songs.
      Its goal is to be simply a music player, not to become a robust music
      management application.
      
     Package: muine
     Priority: optional
     Section: gnome
     Installed-Size: 492
     Maintainer: Link Dupont <link@subpop.net>
     Architecture: i386
     Version: 0.4.0-8
     Depends: gstreamer-gconf (>= 0.6.4), libatk1.0-0 (>= 1.4.1), libbonobo2-0 (>= 2.4.3), libc6 (>= 2.3.2.ds1-4), libflac4, libgconf2-4 (>= 2.4.0.1), libgdbm3, libglib2.0-0 (>= 2.2.3), libgnomevfs2-0 (>= 2.4.1), libgnomevfs2-common (>= 2.4.1), libgstreamer0.6-0 (>= 0.6.1-2), libgtk2.0-0 (>= 2.2.1), libid3tag0 (>= 0.15.0b), libogg0 (>= 1.1.0), liborbit2 (>= 1:2.8.0), libpango1.0-0 (>= 1.2.1), libvorbis0a (>= 1.0.1), libvorbisfile3 (>= 1.0.1), libxml2 (>= 2.6.6), zlib1g (>= 1:1.2.1), gconf2 (>= 2.4.0), mono-jit (>= 0.30) | cli-virtual-machine, gtk-sharp (>= 0.16), gconf-sharp (>= 0.16), gnome-sharp (>= 0.16)
     Filename: pool/main/m/muine/muine_0.4.0-8_i386.deb
     Size: 139864
     MD5sum: e746709ad6a6fcc1e9c46b46b3d6e5b2
     Description: Simple music player
      Muine is an innovative music player. It has a simple interface designed to
      allow the user to easily construct playlists from albums and/or single songs.
      Its goal is to be simply a music player, not to become a robust music
      management application.

패키지에 대한 정보 얻기

     # apt-cache showpkg penguin-command
     Package: penguin-command
     Versions: 
     1.4.5-1(/var/lib/apt/lists/download.sourceforge.net_debian_dists_unstable_main_binary-i386_Packages)(/var/lib/dpkg/status)
     
     Reverse Depends: 
     Dependencies: 
     1.4.5-1 - libc6 (2 2.2.1-2) libpng2 (0 (null)) libsdl-mixer1.1 (2 1.1.0) libsdl1.1 (0 (null)) zlib1g (2 1:1.1.3) 
     Provides: 
     1.4.5-1 - 
     Reverse Provides:

패키지가 어떤 패키지에 의존하고 있는지 찾으려면:

     [root]@[/] # apt-cache depends penguin-command
     penguin-command
       Depends: libc6
       Depends: libpng2
       Depends: libsdl-mixer1.1
       Depends: libsdl1.1
       Depends: zlib1g

요약하면 우리가 원하는 패키지 이름을 찾는데 이용하는 범위의 도구를 갖고 있는 셈이다.


6.2 Using dpkg to find package names

패키지 이름을 정하는 방법중의 한가지는 패키지내에서 발견된 중요한 파일들의 이름을 아는 것이다. 예를 들면 컴파일에 필요한 특정한 ".h" 파일을 제공하는 패키지를 찾기 위해서는 다음을 실행한다:

     [root]@[/] # dpkg -S stdio.h
     libc6-dev: /usr/include/stdio.h
     libc6-dev: /usr/include/bits/stdio.h
     perl: /usr/lib/perl/5.6.0/CORE/nostdio.h

or:

     [root]@[/] # dpkg -S /usr/include/stdio.h
     libc6-dev: /usr/include/stdio.h

Notice that this method only works to find package names of packages that are installed in your system. You'll have to use auto-apt (see "on demand" 패키지 설치하는 방법, 7.1) or apt-file (see 하나의 파일이 속한 패키지 찾기, 6.3) to search for files on packages which are not installed. You can also take a look at the http://packages.debian.org/ website. To list the names of packages installed on your system, which is useful, for example, if you plan to clean up your hard drive, you can run:

     [root]@[/] # dpkg -l | grep mozilla
     ii  mozilla-browse 0.8-0.1        Mozilla Web Browser

이 명령의 문제점은 패키지 이름이 "잘릴 수" 있다는 것이다. 위의 예에서 패키지의 정확한 이름은 mozilla-browser이다. 이를 수정하기 위해서 COLUMNS 환경변수를 이용하면 된다:

     [kov]@[couve] $ COLUMNS=132 dpkg -l | grep mozilla
     ii  mozilla-browser             0.9.6-7                     Mozilla Web Browser - core and browser

6.3 하나의 파일이 속한 패키지 찾기

패키지를 설치하고자 하고 apt-cache로 찾기가 안되는 경우 단지 파일 이름만 알고 있는 경우거나 패키지가 속한 파일 이름만을 아는 경우라면 apt-file는 패키지 이름을 말해줄 것이다. 다음과 갈이 하면 된다.

     $ apt-file search filename

이는 dpkg -S 처럼 되지만 파일을 포함한 설치되지 않는 패키지도 보여준다고 할 수 있다. 이는 컴파일 시에 필요한 프로그램이 포함되어 있는 지를 알아보는데 이용될 수 있다. 하지만 auto-apt이 훨씬 더 나은 기능을 제공한다. 자세한 내용은 "on demand" 패키지 설치하는 방법, 7.1를 참조하라.

다음과 같이 실행하여 패키지의 내용을 볼 수 있다:

     $ apt-file list packagename

apt-file은 모든 패키지가 포함하고 있는 DB에 계속 유지하게 해준다. 이는 auto-apt가 하는 것과 비슷하고 최신의 것으로 업데이트 할 필요가 있다. 다음과 같이 실행한다:

     # apt-file update

기본적으로, apt-file는 auto-apt가 사용하는 동일한 DB를 이용한다. 자세한 내용은 "on demand" 패키지 설치하는 방법, 7.1를 참조하라.


6.4 패키지에 대한 정보 얻기

There are lots of web resources with informations about the packages available in the Debian distribution, most of them directed mainly towards Debian Developers, but many of them may be useful for users, too.

The Debian Packages Pages lets you search for packages that are available on the various architectures Debian supports and, also, search for the contents of all the Debian packages. There are information regarding dependencies and other relationships with packages. There are also links to download the source package and the binary package for all architectures. You can use a shortcut like http://packages.debian.org/packagename to have quick access links to a package.

The Package Tracking System provides information about what happened to the package recently, what are the TODO itens, from a Debian maintainers point of view, provides a summary of bugs reported and some more very useful information. One of the nice things about the Package Tracking System is that it lets you "subscribe" to a package to follow all the emails that the maintainer usually receives about the package. This way you can follow the development of packages that are crucial for your work or play. The http://packages.qa.debian.org/packagename shortcut works here, as well.

Finally, the Bug Tracking System provides information about known bugs in the packages distributed by Debian. This may be useful for you to find out why something does not work the way you expected and even find solutions or work-arounds through the bug logs. Also, read these pages and its documentation to be able to fill good bug reports for Debian. The http://bugs.debian.org/packagename shortcut also works here, as expected, but the BTS (Bug Tracking System) also accepts other very useful shortcuts like, for example, http://bugs.debian.org/src:packagename to show all bug reports on all binary packages provided by a given source package.


[ 이전 ] [ 차례 ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 7 ] [ 8 ] [ 9 ] [ 10 ] [ 11 ] [ 12 ] [ 13 ] [ 다음 ]


APT HOWTO

2.0.2 - October 2006

Gustavo Noronha Silva kov@debian.org
한국어 번역: 양유성 yooseong@debian.org