Results 1 to 6 of 6
I just build a package gmchess-0.20-1-i686.pkg.tar.gz from PKGBUILD, I unpack the gmchess-0.20-1-i686.pkg.tar.gz and create a folder gmchess-0.20-1-i686.pkg, after changing some .png files in this folder, I compress the gmchess-0.20-1-i686.pkg folder ...
- 05-07-2009 #1Just Joined!
- Join Date
- Apr 2009
- Posts
- 13
convert .pkg folder to .pkg.tar.gz?
I just build a package gmchess-0.20-1-i686.pkg.tar.gz from PKGBUILD, I unpack the gmchess-0.20-1-i686.pkg.tar.gz and create a folder gmchess-0.20-1-i686.pkg, after changing some .png files in this folder, I compress the gmchess-0.20-1-i686.pkg folder back to gmchess-0.20-1-i686.pkg.tar.gz, however it can not be installed with command pacman -U, I try to search wiki, but get no clues, thanks for help.
$ sudo pacman -U gmchess-0.20-1-i686.pkg.tar.gz
Password:
loading package data...
error: missing package metadata in gmchess-0.20-1-i686.pkg.tar.gz
error: 'gmchess-0.20-1-i686.pkg.tar.gz': invalid or corrupted package
- 05-21-2009 #2
I have not built any packages so probably can't help much ... were you following this guide or something else?
Ed: from the above link if you follow links
PKGBUILD tricks -> Makepkg you get instructions similar to those posted by ozar.
- 05-21-2009 #3forum.guy
- Join Date
- May 2004
- Location
- arch linux
- Posts
- 18,081
Welcome to the forums!

Go to AUR, find your desired package.
Click on the link where it says "tarball".
Extract the tarball. This should create a directory.
Enter that directory (cd directory).
type 'makepkg'
after it compiles, you should have a file ending in .pkg.tar.gz
install that file with pacman as follows...
'pacman -A filename.pkg.tar.gz'
Installation should be complete if all went as planned.oz
→ new members/users: read this first | new member faq
→ no private messages requesting computer support - post them on the forums!
→ please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.
- 05-22-2009 #4
Do you mean 'pacman -U filename.pkg.tar.gz' ozar? I don't have access to my Arch machine at the moment but that's the command I remember using for the installation of local packages and I don't see a "-A" option in the pacman man page.
- 05-22-2009 #5forum.guy
- Join Date
- May 2004
- Location
- arch linux
- Posts
- 18,081
Thanks for the correction, Thrillhouse.
It appears that the pacman devs have indeed changed the command to use -U rather than the -A that was used the last time I installed pkgbuilds from Community.oz
→ new members/users: read this first | new member faq
→ no private messages requesting computer support - post them on the forums!
→ please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.
- 05-30-2009 #6Just Joined!
- Join Date
- Aug 2008
- Location
- Qatar
- Posts
- 19
ozar, downloading the PKGBUILD (+.install + patch if any) file and issuing makepkg will do all the work. Once the tar is created according to the arch ie i686/x86_64, package can be installed as usual. It is known that installing package in Arch is advised thro' PKGBUILD.
I think the OP got the answer from the Arch Forum.


Reply With Quote
