Difference between revisions of "Pkgtools"

From ArchWiki
Jump to: navigation, search
(pkgfile)
Line 23: Line 23:
  
 
===="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 {{Filename|/etc/pkgtools/pkgfile.conf}} or in {{Filename|~/.config/pkgtools/pkgfile.conf}}.
+
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}}.
  
 
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.
 
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.

Revision as of 11:43, 13 February 2012

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

Notes: please use the first argument of the template to provide more detailed indications. (Discuss in Talk:Pkgtools#)

About

Template:Package Official is a package created by Daenyth that includes various useful package-related utilities. It is available in community, and the latest Template:Package AUR release is available in AUR.

newpkg

A tool to simplify creating a new package.

pkgconflict

pkgfile

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

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.

spec2arch

Converts an rpm .spec file into a PKGBUILD

whoneeds