Difference between revisions of "Pkgtools"

From ArchWiki
Jump to: navigation, search
m (+i18n, stub notes)
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
[[Category:Package development (English)]]
+
[[Category:Package development]]
{{i18n|Pkgtools}}
+
[[Category:Package management]]
 
+
 
{{stub|Empty sections should be either completed or removed; this article has room for expansion.}}
 
{{stub|Empty sections should be either completed or removed; this article has room for expansion.}}
  
==About==
+
{{Pkg|pkgtools}} is a package created by Daenyth that includes various useful package-related utilities. It is available in [[community]], and {{AUR|pkgtools-git}} in [[AUR]].
  
{{Pkg|Pkgtools}} is a package created by Daenyth that includes various useful package-related utilities. It is available in community, and the latest {{AUR|pkgtools-git}} release is available in AUR.
+
===gem2arch===
  
===newpkg===
+
Creates a [[PKGBUILD]] from the Ruby gem specification.
  
A tool to simplify creating a new package.
+
===maintpkg===
  
===pkgconflict===
+
Sets maintainer information in a PKGBUILD.
  
===pkgfile===
+
===newpkg===
{{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.
+
Speeds up creating new PKGBUILDs.
# pkgfile --update
+
  
Example.
+
===pkgconflict===
$ 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====
+
Checks a binary {{ic|.pkg.tar.gz}} ([https://en.wikipedia.org/wiki/Sic ''sic'']) file for conflicts with existing packages.
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.
+
===pkgfile===
 +
''See: [[pkgfile]]''
  
 
===spec2arch===
 
===spec2arch===
  
Converts an rpm .spec file into a [[PKGBUILD]]
+
Converts an rpm {{ic|.spec}} file into a PKGBUILD.
  
 
===whoneeds===
 
===whoneeds===
 +
 +
Shows packages requiring the mentioned one.

Revision as of 10:12, 21 August 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 pkgtools-gitAUR in AUR.

gem2arch

Creates a PKGBUILD from the Ruby gem specification.

maintpkg

Sets maintainer information in a PKGBUILD.

newpkg

Speeds up creating new PKGBUILDs.

pkgconflict

Checks a binary .pkg.tar.gz (sic) file for conflicts with existing packages.

pkgfile

See: pkgfile

spec2arch

Converts an rpm .spec file into a PKGBUILD.

whoneeds

Shows packages requiring the mentioned one.