pkgfile (한국어)

From ArchWiki
Revision as of 19:52, 30 May 2013 by Kentarch (Talk | contribs) (Created page with "{{Lowercase title}} Category:Package development (한국어) Category:Package management (한국어) en:Pkgfile '''pkgfile'''은 어떤 꾸러미가 특정한 파...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

pkgfile은 어떤 꾸러미가 특정한 파일을 포함하는지 또는 특정 꾸러미가 어떤 파일을 포함하는지를 나타내는 도구이다.

공식 저장소에서 pkgfile이나 AUR에서 pkgfile-gitAUR설치할 수 있다.

설치 후에 루트 권한으로 다음과 같이 파일 데이터베이스를 갱신하라.

# pkgfile --update

보기

$ pkgfile makepkg     #Search for a package that contains a file named "makepkg".
core/pacman           #Your searched file is in the pacman package from the [core] repository.

Another example:

$ pkgfile --list core/archlinux-keyring     #List all files provided by the archlinux-keyring package from the [core] repository.
core/archlinux-keyring usr/
core/archlinux-keyring usr/share/
core/archlinux-keyring usr/share/pacman/
core/archlinux-keyring usr/share/pacman/keyrings/
core/archlinux-keyring usr/share/pacman/keyrings/archlinux-revoked
core/archlinux-keyring usr/share/pacman/keyrings/archlinux-trusted
core/archlinux-keyring usr/share/pacman/keyrings/archlinux.gpg

"Command not found" hook

pkgfile includes a "command not found" hook that will automatically search the official repositories, if you enter an unrecognized command.

To enable it in all children shells, you need to source the hook from one of your shell initialization files.

~/.bashrc
source /usr/share/doc/pkgfile/command-not-found.bash
  • Example for Zsh:
~/.zshrc
source /usr/share/doc/pkgfile/command-not-found.zsh

같이 보기