Find the answer to your Linux question:
Results 1 to 5 of 5
i'm trying to install wbarconf in arch linux, when i run Code: pacman -U /home/hailsanta/wbarconf-0.7.2.tar.gz i get this error Code: error: missing package metadata in /home/hailsanta/wbarconf-0.7.2.tar.gz error: '/home/hailsanta/wbarconf-0.7.2.tar.gz': invalid or ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2010
    Posts
    7

    [SOLVED] wbarconf - missing package metadata


    i'm trying to install wbarconf in arch linux, when i run

    Code:
    pacman -U /home/hailsanta/wbarconf-0.7.2.tar.gz
    i get this error

    Code:
    error: missing package metadata in /home/hailsanta/wbarconf-0.7.2.tar.gz
    error: '/home/hailsanta/wbarconf-0.7.2.tar.gz': invalid or corrupted package
    is that not how you're supposed to install local tar files? any advice is appreciated

    thanks

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Hello, and welcome to the forums!

    With the new extension that pacman packages are now using, ready to install packages look like this:

    Code:
    pkgname.pkg.tar.xz
    If needed, you can check these wiki pages for the steps to build the package then try installing it again:

    Creating Packages - ArchWiki
    PKGBUILD - ArchWiki


    You can find a package build for wbarconf here, but the package might be somewhat dated:

    AUR (en) - wbarconf


    The basic steps for installing ready to go pkgbuilds are as follows:

    go to AUR, find the desired package

    click on the link where it says "tarball" to download

    extract the tarball (this should create a directory)

    example:

    cd /path/to/file
    tar -zxf file_name.tar.gz
    cd folder_name

    type "makepkg -c"

    after it compiles, you should have a file ending in .pkg.tar.xz

    install that file with pacman using the following command:

    'pacman -U filename.pkg.tar.xz'

    installation should now be complete
    oz

  3. #3
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    Quote Originally Posted by ozar
    The basic steps for installing ready to go pkgbuilds are as follows:

    go to AUR, find the desired package

    click on the link where it says "tarball" to download

    extract the tarball (this should create a directory)

    example:

    cd /path/to/file
    tar -zxf file_name.tar.gz
    cd folder_name

    type "makepkg -c"

    after it compiles, you should have a file ending in .pkg.tar.xz

    install that file with pacman using the following command:

    'pacman -U filename.pkg.tar.xz'

    installation should now be complete
    That seems like a lot of work, ozar.

    Why not just download the PKGBUILD file and
    Code:
    makepkg -si
    Makepkg will handle downloading the source, installing the dependencies (assuming they are in your configured repositories), and installing the package when it's done.

    @hail_santa, you can also check out some of the AUR helper programs, but do be careful as not all PKGBUILDs on the AUR are of good quality. Personally, I use bauerbill and clyde for pretty much all my package management needs.

  4. #4
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Quote Originally Posted by reed9 View Post
    That seems like a lot of work, ozar.

    Why not just download the PKGBUILD file and
    Code:
    makepkg -si
    Makepkg will handle downloading the source, installing the dependencies (assuming they are in your configured repositories), and installing the package when it's done.
    Yes, it is indeed a lot of work concerning building packages, and I probably wouldn't do it myself. That's why I said "if needed" regarding creating a package build, and then gave the location for the current package build, followed up with the howto on installing it, but I've never personally felt the makepkg method presented to be overly cumbersome and it goes rather quickly for me.

    Quote Originally Posted by reed9 View Post
    @hail_santa, you can also check out some of the AUR helper programs, but do be careful as not all PKGBUILDs on the AUR are of good quality.
    Very true... I rarely ever use anything from AUR for that very reason. In fact, I try my best to stick to the Core and Extra repos only for nearly everything. Occasionally, I'll grudgingly build something for myself.



    hail_santa, you can check the man page for additional options on using makepkg:

    Code:
    man makepkg
    Last edited by oz; 09-23-2010 at 02:51 PM.
    oz

  5. #5
    Just Joined!
    Join Date
    Sep 2010
    Posts
    7
    hey guys, thanks a lot for all the information!

    i couldn't download the pkgbuild file (error: file not found...) so i used ozar's second suggestion, worked like a charm (^-^)/

Posting Permissions

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