Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    cpc
    cpc is offline
    Just 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

  2. #2
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    3,045
    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.

  3. #3
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    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

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Engineer Thrillhouse's Avatar
    Join Date
    Jun 2006
    Location
    Arlington, VA, USA
    Posts
    1,377
    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.

  6. #5
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    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

  7. #6
    Just 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •