Difference between revisions of "Pkgtools"

From ArchWiki
Jump to: navigation, search
(use new package templates, see Help:Style)
m (+i18n, stub notes)
Line 1: Line 1:
[[Category:Package development (English)]]
[[Category:Package development (English)]]
{{stub|Empty sections should be either completed or removed; this article has room for expansion.}}

Revision as of 12:24, 3 April 2012

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.

Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어

External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی


Pkgtools is a package created by Daenyth that includes various useful package-related utilities. It is available in community, and the latest pkgtools-gitAUR release is available in AUR.


A tool to simplify creating a new package.



pkgfile is a tool that tells you which package owns a specific file. It also has some extra related features.

You should update filelist first.

# pkgfile --update


$ pkgfile -s pkgfile     # Search package that contain file's name pkgfile.
community/pkgtools       # Your searched file is in pkgtools package and community repository. 

"Command not found" hook

pkgfile includes a "command not found" hook that will automatically search the official repositories if you enter a command that is not recognized. It can be enabled in /etc/pkgtools/pkgfile.conf or in ~/.config/pkgtools/pkgfile.conf.

That will enable the hook in login shells only. If you want it in all your shells, source /usr/share/pkgtools/pkgfile-hook.bash from your .bashrc.


Converts an rpm .spec file into a PKGBUILD