Difference between revisions of "Pkgtools"

From ArchWiki
Jump to: navigation, search
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
[[Category:Package development]]
 
[[Category:Package development]]
[[Category:Package management (English)]]
+
[[Category:Package management]]
{{i18n|Pkgtools}}
+
 
{{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.}}
  
{{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.
+
{{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]].
  
===newpkg===
+
===gem2arch===
  
A tool to simplify creating a new package.
+
Creates a [[PKGBUILD]] from the Ruby gem specification.
  
===pkgconflict===
+
===maintpkg===
  
===pkgfile===
+
Sets maintainer information in a PKGBUILD.
{{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.
+
===newpkg===
# pkgfile --update
+
  
Example.
+
Speeds up creating new PKGBUILDs.
$ 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====
+
===pkgconflict===
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}}.
+
  
{{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.:
+
Checks a binary {{ic|.pkg.tar.gz}} ([https://en.wikipedia.org/wiki/Sic ''sic'']) file for conflicts with existing packages.
{{hc|~/.bashrc|
+
 
source /etc/profile
+
===pkgfile===
}}.}}
+
''See: [[pkgfile]]''
  
 
===spec2arch===
 
===spec2arch===
  
Converts an rpm {{ic|.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.