Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Other Distributions > Arch Linux Help > convert .pkg folder to .pkg.tar.gz?

Forgot Password?
 Arch Linux Help   Help an discussion related to Arch

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 05-07-2009   #1 (permalink)
cpc
Just Joined!
 
Join Date: Apr 2009
Posts: 12
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
cpc is offline  


Reply With Quote
Old 05-21-2009   #2 (permalink)
Linux Guru
 
Join Date: Oct 2007
Posts: 2,410
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.
Jonathan183 is offline   Reply With Quote
Old 05-21-2009   #3 (permalink)
Super Moderator
 
ozar's Avatar
 
Join Date: May 2004
Posts: 12,051
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: * README *
ozar is offline   Reply With Quote
Old 05-22-2009   #4 (permalink)
Linux Engineer
 
Thrillhouse's Avatar
 
Join Date: Jun 2006
Location: Arlington, VA, USA
Posts: 1,366
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.
Thrillhouse is offline   Reply With Quote
Old 05-22-2009   #5 (permalink)
Super Moderator
 
ozar's Avatar
 
Join Date: May 2004
Posts: 12,051
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: * README *
ozar is offline   Reply With Quote
Old 05-30-2009   #6 (permalink)
Just Joined!
 
Join Date: Aug 2008
Location: Qatar
Posts: 14
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.
kgas is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 06:42 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2