Difference between revisions of "Pkgtools"

From ArchWiki
Jump to: navigation, search
(pkgfile: I hope I got it right: https://projects.archlinux.org/svntogit/community.git/commit/trunk?h=packages/pkgtools&id=d9d6972159ff72ecdb09624e2538a0feac17b298)
Line 10: Line 10:
  
 
===pkgconflict===
 
===pkgconflict===
 
===pkgfile===
 
{{Ic|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
 
 
Example.
 
$ 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====
 
===="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 {{ic|/etc/pkgtools/pkgfile.conf}} or in {{ic|~/.config/pkgtools/pkgfile.conf}}.
+
pkgtools includes a "command not found" hook for [[pkgfile]] that will automatically search the official repositories if you enter a command that is not recognized. It can be enabled in {{ic|/etc/pkgtools/pkgfile.conf}} or in {{ic|~/.config/pkgtools/pkgfile.conf}}.
  
 
{{Note|This will only enable the hook in the login shell. To enable it in all children shells too, you need to source {{ic|/etc/profile}} from your {{ic|~/.bashrc}} or {{ic|~/.zshrc}}. E.g.:
 
{{Note|This will only enable the hook in the login shell. To enable it in all children shells too, you need to source {{ic|/etc/profile}} from your {{ic|~/.bashrc}} or {{ic|~/.zshrc}}. E.g.:

Revision as of 00:38, 18 July 2012

Tango-document-new.pngThis article is a stub.Tango-document-new.png

Notes: Empty sections should be either completed or removed; this article has room for expansion. (Discuss in Talk:Pkgtools#)

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.

newpkg

A tool to simplify creating a new package.

pkgconflict

"Command not found" hook

pkgtools includes a "command not found" hook for pkgfile 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.

Note: This will only enable the hook in the login shell. To enable it in all children shells too, you need to source /etc/profile from your ~/.bashrc or ~/.zshrc. E.g.:
~/.bashrc
source /etc/profile
.

spec2arch

Converts an rpm .spec file into a PKGBUILD.

whoneeds