Pbfetch - Please not another AUR frontend

pbfetch is an AUR frontend and optionally a Pacman wrapper.
Background and Motivation
I originally intended to keep pbfetch private, as there are already so many AUR frontends but, after using it for a bit I've decided to let others use, change, belittle, mock, praise and/or look at it.
pbfetch(PKGBUILD fetch) started as merely a script to download a PKGBUILD from the AUR. I usually like to edit and run makepkg myself for AUR packages, however, there are times where I like a simple
automated approach. With all due respect to the developers, I found yaourt to be slow(especially on my old laptop). After seeing how complicated yaourt has become I decided to extend pbfetch to encompass most if not all
my Arch package managment needs.
Features
[Current]
- Can optionally wrap pacman functionality so one can use pbfetch for most pacman commands(eg. pbfetch -Sy, pbfetch -Qs, pbfetch -Rd)
- Search AUR
- Download and extract AUR tar.gz to build directory
- Option to edit PKGBUILD after download
- Option to make the package with or without installing
- Dependecy checking(mostly complete, though removes versioning for dependencies not found in official repos)
- Check for and install AUR updates
- Option to choose which AUR updates to install
- Optional color output
- By default uses sudo where needed
[Todo]
- Refactoring for readabilty and speed(already much faster than yaourt)
- Further ABS support(currently only copies local abs pkg directory to build directory)
- Better commandline option parsing(possibly getopts)
- Add edit PKGBUILD option to pacman fallback commands(currently auto-edit only with AUR specific commands)
- Prettier text output
- Willing to consider any requests
Overview
I had two types of users in mind as I made/make pbfetch.
1.) Those who prefer to have 1 tool to manage AUR and official repositories
2.) Those who prefer to keep their AUR frontend separate from Pacman
As such there are two sets of command line options: those that are AUR specific, and optionally, commands that call the pacman binary and extend for AUR functions.
I have chosen to call pacman directly where ever possible rather than reimpliment pacman's functions.
The following is a copy of pbfetch's usage prompt:
Usage: pbfetch [opiton] [package1] [package2] ....
options:
-d Download from aur and extract to build directory
-de Download from aur, extract and edit PKGBUILD
-m Download from aur, extract, and make the package(s)
-me Download from aur, extract, edit PKGBUILD and
make the package(s)
-i Download from aur, extract, make and install package(s)
-ie Download from aur, extract, edit PKGBUILD, make and
install package(s)
-s Search aur for any package given
(Searches name and description)
-sa Search repo and aur for any package given
-u Check aur for package updates
-ue Check aur for package updates and
edit PKGBUILD before install
-ua Check aur and official repos for updates
-abs Copy from local abs folder to build directory
-v Display version information
Pacman Fallback(On by default)
options:
-S Attempt install with Pacman if package not found
in repo then install from AUR
-Ss Search Pacman repos and AUR
-Sy Refresh database then install from repo or
AUR if not found in repository
-Syu --aur Refresh database and upgrade from repo and
AUR
Example: pbfetch -S xorg
pbfetch -d nvidia-beta nvidia-utils-beta
pbfetch will also pass any pacman related options to the
pacman binary specifed in the script, eg. pbfetch -Qs
[Configuration]
The config file is stored in /etc/pbfetch.conf
There you can set whether to enable color output, pacman fallback, various working directories etc.
The pacman binary can be specified as well.(Tested with pacman and pacman-color)
Default build directory is ~/build/
[Notes]
- pbfetch can be called just like pacman and it will pass the command line options untouch if you prefer. Or it can extend pacman's sync to include AUR processing. This is set in the configuration.
- When checking for AUR updates (eg. pbfetch -u, or pbfetch -Syu --aur) you will be prompted to either accept the updates or you may opt to only choose certain updates. To choose, type the number as seen next
  to the corresponding update. Separate each respective package number by a space.
[Known or potential caveats]
- All verbose options such as "--needed" are passed to pacman untouched. However some of the short hand versions have not been implemented when using sync (eg. pbfetch -Sg xorg) in combination with the fallback option set.
- I've written the script with sudo in mind. The script inserts sudo where needed.
- Color output assumes dark terminal background. Color can either be turned off or individual colors and be changed in the config file
- pbfetch was made in my limited free time over the last month so testing of features has been limited to say the least.
[Development]
- I have put pbfetch up on github @ http://github.com/dalingrin/pbfetch
- Please feel free contribute or make requests
Make no mistake, I have no dreams of pbfetch becoming the next popular AUR frontend like yaourt. I have had fun writing it so far (first bash script) and thought a few like minded individual(s) may enjoy using it as well.
Package can be found @ http://aur.archlinux.org/packages.php?ID=33256
Last edited by dalingrin (2010-09-13 21:58:27)

I have disabled sudo, still I get the following error:
pbfetch -me qhandbrake-git
==> qhandbrake-git [Downloaded]
==> qhandbrake-git [Extracted]
-> qhandbrake-git [Edit complete]
Checking package for AUR dependencies...
==> ERROR: Cannot find the sudo binary! Is sudo installed?
Missing dependencies cannot be installed or removed as a normal user
without sudo; install and configure sudo to auto-resolve dependencies.
cat /etc/pbfetch.conf
#!/bin/bash
################## !WARNING! ####################
# This file must contain only valid bash syntax #
#### Pacman sync fallback to AUR ####
fallback=true
#fallback=false
#### Clean up after package building ####
# if false then package along with source
# will be left in the build directory
clean=true
#clean=false
#### Colorize output ####
color=true
#color=false
# default colors
color1="\e[1;37m" # white
color2="\e[1;34m" # blue
color3="\e[1;31m" # red
color4="\e[1;32m" # green
color5="\e[1;33m" # yellow
color6="\e[1;35m" # magenta
#### Pacman binary ####
pacmanBin="pacman"
#pacmanBin="pacman-color" # Recommend if using color output
#### Automatically use sudo when needed ####
#useSudo=true
useSudo=false
#### PKGBUILD editor ####
editor="nano"
#editor="gvim"
#### BUILD DIRECTORY ####
buildDir=~/build
#### PACMAN PACKAGE CACHE ####
pkgCache=/var/cache/pacman/pkg/
#### LOCAL abs DIRECTORY ####
abs="/var/abs"
#### aur URL ####
aur="http://aur.archlinux.org/packages"

Similar Messages

  • Please not another ABAP vs. Java-Thread, BUT ...

    Hi, folks!
    I already had several inspiring discussions about the need for 2 different languages within one Enterprise System, but right now I' d like to take a more personal approach to this matter.
    I' m working within SAP business for about 3 years now and started as a trainee for SAP Java development in a small consulting company . In my first year, I was some kind of geek freaking out on each new SAP technology that arose or was only announced. Web Dynpro Java, ESA/eSOA, Portal, Mendocino/Duet, Business Client, Enterprise Search, Widgets a.s.o. I did a lot of presentations and technical workshops for SAP Pros - NWDI, WDJ, Interactive Forms  - and you know what? Nobody was interested in any of these. Interactive Forms? We just switched to Smartforms. WDJ? When will it be available for ABAP. NWDI? We spent a fortune on ABAP courses. Widgets? We have SAP GUI. Business Client? We have SAP GUI. Portal? We have SAP GUI.
    Now I' m working as a simple ABAP programmer in HR. No web enablement, cause web apps are realized completely outside SAP. No SOA-enablement, cause all SAP functionality needed outside is either already provided via BAPIs or put in RFC modules. No Java at all, cause there is and will be only an ABAP stack. None of all the new stuff, but a great need for knowledge of standard programs, their configuration possibilities and use.
    So, to come to the conclusion: What I realized in my work life is that daily business is pretty innovation-resistant and I personally don' t think that even half of all the "emerging technologies" will make it for the next 5 - 10 years. What I also realized is that a lot of time and work has to be spent by developers to keep in touch with new development techniques, which could be used better for clearing white spaces in classical ABAP as well as module programming environments. If developers would focus more on ABAP and module knowledge than on the newest Modelling-techniques many SAP systems probably wouldn' t be spoiled by poor custom developments, enhancements and modifications as they are today!
    Regards,
    Thomas

    So, to come to the conclusion: What I realized in my work life is that daily business is pretty innovation-resistant and I personally don' t think that even half of all the "emerging technologies" will make it for the next 5 - 10 years.
    Yes - it is indeed. If a company invested quite lots of money to get a certain application (or a part of it) working they won´t switch to a different technology just because it´s "hip" at the moment. For new customers it is certainly a very nice alternative to use the new technologies instead of the "old ones".
    And to quote the example I said already a few times: If ABAP was so bad, why would SAP themselves switch certain applications back to WD-ABAP (speaking of Travel Management in Enhancement Pack 2 e. g.).
    What I also realized is that a lot of time and work has to be spent by developers to keep in touch with new development techniques, which could be used better for clearing white spaces in classical ABAP as well as module programming environments. If developers would focus more on ABAP and module knowledge than on the newest Modelling-techniques many SAP systems probably wouldn' t be spoiled by poor custom developments, enhancements and modifications as they are today!
    What I´ve heard the new paradigma is
    - Service provisioning: ABAP
    - Service consumption: Java
    Whatever this means in detail.
    I can hardly imagine removing the SAPGUI out of our e. g. sales department and replace it by e. g. a nice "guided procedure" using NWBC. In maybe 5 % of the todays cases this would be enough, the other 95 % still need the full featured transaction with all the tabs, fields and editing functionality.
    And what I find the most interesting in that area is: SAP internally I always see SAPGUIs on the (supporters, sales dep.) desks, the "backend OSS/CSN" is still accessed by GUI and not by web, guess why...
    Markus

  • While upgrading Adobe Creative Suite CS4 ME into Adobe Creative Suite CS5.5 Design Premium, I get an error saying This serial number is not of a qualifying product, please try another. I used to be able to get a code from customer service but I can't get

    While upgrading Adobe Creative Suite CS4 ME into Adobe Creative Suite CS5.5 Design Premium, I get an error saying This serial number is not of a qualifying product, please try another. I used to be able to get a code from customer service but I can't get to the chat. Please advise!!!!

    MoeGhazal I reviewed your account and it looks like you have have upgraded from a CS4 volume license for Design Premium to a retail upgrade of Design Premium 5.5.
    I also show that you made two purchases of CS5.5 Design Premium but the second purchase was canceled.  Please make sure you are utilizing the serial number which ends in 7886.
    If you are using the correct serial number then it is likely the installer will not recognize your volume license CS4 serial number as being valid for an upgrade.  If you can contact our support team then you can be walked through an unlocking procedure to allow you to proceed with the installation.  You can contact our support team directly at Contact Customer Care.  You may want to try installing a web browser you have not previously utilized.  It is likely a toolbar or some other software application is affecting your ability to access chat support successfully.
    If you are still unable to reach our support team then please verify the information under your account is accurate.  If you can please then update this discussion after confirming this then I can request a member of our support team contact you directly.
    Again I would recommend reaching out directly if possible as it will be the most efficient method of resolving your current error.

  • My iPhone5 prompts while setting up "This iPhone is not currently setup to work with carrier you are attempting to use.Please insert another SIM card from a supported carrier" or "Request that this iPhone be unlocked" How can I unlock my new iPhone5 ?

    My iPhone5 prompts while setting up "This iPhone is not currently setup to work with carrier you are attempting to use.Please insert another SIM card from a supported carrier" or "Request that this iPhone be unlocked" How can I unlock my new iPhone5 to function properly?

    That means that the phone is locked to a carrier other than the one you are trying to use.
    ONLY the carrier it is locked to can authorize unlocking it.
    Where exactly did you get this "new" iPhone 5?

  • HT1937 The SIM card inserted in this iPhone does not appear to be supported. This iPhone is not currently setup to work with carrier you're attempting to use. Please insert another SIM card from a supported carrier or request that this iPhone be unlocked.

    The SIM card inserted in this iPhone does not appear to be supported.
    This iPhone is not currently setup to work with carrier you're attempting to use. Please insert another SIM card from a supported carrier or request that this iPhone be unlocked.
    what does it mean?

    Have a look in Settings>Carrier
    Again YOU cannot unlock it - only the original carrier can do it

  • HT1937 the SIM card that you currently have installed in this iPhone is form a carrier that is not supported under the activation policy that is currently assigned by the activation server.this is not a hardware issue with the iphon. please insert another

    the SIM card that you currently have installed in this iPhone is form a carrier that is not supported under the activation policy that is currently assigned by the activation server.this is not a hardware issue with the iphon. please insert another SIM card from supported carrier or request that this iPhone be unlocked by your carrier.

    Similar issue
    here is the description
    I have similar message but for me the Verizon guys said they unlocked it and when I actually connected to iTunes using Verizon sim card and then did the restore as new iphone then everything worked well and at the end i saw the message "Congrats, your iphone is now unlocked" and then I did the set up as new iphone for my kid.
    Once new apple ID was set up, then I removed the verizon SIM and then inserted prepaid t-mobile sim card and after the phone booted up then I got the same message like  above...."not supported"
    What do i do now? I think the phone is unlocked right?
    Also do I need to insert Verizon SIM card and do restore as NEW and this time do not set up the iphone but change the SIM card and then set up or ?
    I am confused and other threads were talking that if you get congrats message then u shd be good to use other SIM cards....please help!!!

  • HT1414 The Sim card that you currently have installed in this iphone is from a carrier that is not supprotedunder the activation policy that is currently assigned by the activation server. this is not a hardware issue with the iphone. please insert anothe

    The Sim card that you currently have installed in this iphone is from a carrier that is not supprotedunder the activation policy that is currently assigned by the activation server. this is not a hardware issue with the iphone. please insert another sim card from a supported carrier or request that this iphone be unlocked by your carrier.please contact apple for more information.

    I have similar message but for me the Verizon guys said they unlocked it and when I actually connected to iTunes using Verizon sim card and then did the restore as new iphone then everything worked well and at the end i saw the message "Congrats, your iphone is now unlocked" and then I did the set up as new iphone for my kid.
    Once new apple ID was set up, then I removed the verizon SIM and then inserted prepaid t-mobile sim card and after the phone booted up then I got the same message like  above...."not supported"
    What do i do now? I think the phone is unlocked right?
    Also do I need to insert Verizon SIM card and do restore as NEW and this time do not set up the iphone but change the SIM card and then set up or ?
    I am confused and other threads were talking that if you get congrats message then u shd be good to use other SIM cards....please help!!!

  • HT5163 The SIM card inserted in this iPhone does not appear to be supported. This iPhone is not currently setup to work with carrier you're attempting to use. Please insert another SIM card from a supported carrier or request that this iPhone be unlocked.

    The SIM card inserted in this iPhone does not appear to be supported.
    This iPhone is not currently setup to work with carrier you're attempting to use. Please insert another SIM card from a supported carrier or request that this iPhone be unlocked.

    Sounds like you are trying to use an iPhone that is locked to a particular
    wireless carrier with the sim from another wireless carrier. Contact the wireless
    provider that the iPhone is locked to and ask if they offer unlocking and if
    you qualify. Only the wireless carrier that the iPhone is locked to can unlock
    it.

  • Hi i updated my iphone but it says that This iPhone is not currently setup to work with carrier you're attempting to use. Please insert another SIM card from a supported carrier or request that this iPhone be unlocked. how can i unlock this one?

    hi i updated my iphone but it says that This iPhone is not currently setup to work with carrier you're attempting to use. Please insert another SIM card from a supported carrier or request that this iPhone be unlocked. how can i unlock this one?

    Your iPhone was hacked or jailbroken before and through the update it locks back to the original carrier. Only the original carrier can unlock the iPhone. You have to contact them and find out what the procedure you needs to follow.

  • HT201328 This iPhone is not currently setup to work with carrier you're attempting to use. Please insert another SIM card from a supported carrier or request that this iPhone be unlocked.

    This iPhone is not currently setup to work with carrier you're attempting to use. Please insert another SIM card from a supported carrier or request that this iPhone be unlocked.

    In your other post https://discussions.apple.com/thread/5001329?tstart=60
    you say the iPhone originally was on contract with Orange UK. You will have
    to work with Orange UK to get the iPhone unlocked.

  • "The serial number is not for a qualifying product. Please try another"

    I purchased, downloaded, install and am using successfully
    ADOBE ACROBAT XI PRO
    Version (11.0.07)
    Installed 12.02.14
    Purchased 12.02.14
    Adobe Acrobat XI Pro (Windows, English)
    I have tried unsuccessfully to register 6+ times
    I receive the message:
    The SN is not recognized (error statement= "The serial number is not for a qualifying product. Please try another")
    I have a total of about 5 sessions that amounts to about one hour trying to solve a problem, navigating your website, going into endless cycles, and have noticed there is no way to call a phone number to fix a problem.
    Is this the new Adobe Paradigm?
    It appears to be an administrative problem with Adobe
    What is the fix?
    Please advise

    The message means that you have an upgrade license. You just need to prove you are eligible by entering the serial number of the Acrobat 9 or X license that you have - that is the "qualifying" product. It is not asking you to enter the Acrobat XI license again, you already did that.

  • This serial number is not for a qualifying product. Please try another.

    I have the error "This serial number is not for a qualifying product. Please try another." I am trying to re-download software, which I thought I did so successfully until I needed to open a pdf and the "serial number upgrade" box opened and is telling me that the serial number from a business purchase is not for a qualifying product. Steps to get Acrobat X Standard on my computer?

    Your message indicates that you are trying to upgrade from one Acrobat version to another.  You will need both serial numbers for the original (qualifying) product, as well as the new (upgraded) product.
    [topic moved to Acrobat forum]

  • "this serial number is not for a qulifying product. Please try another."

    I just bought a new PC and I am trying to install Adobe Premium CS6 but I get the message: "this serial number is not for a qulifying product. Please try another." Adobe Premium CS6 does not exist as a choice on the product list given. What do I do?

    Sounds like you're trying to install an upgrade version of CS6.
    The only way that will work is if you already have a serial number for a qualifying CS5 product (which is what the installer is asking for).
    If you do not have a CS5 serial number then you will not be able to use the CS6 upgrade.

  • There is not enough disk space available at the selected destination. Please choose another one or clear some space

    Importing a small motion movie into fcpx and I get this error "There is not enough disk space available at the selected destination. Please choose another one or clear some space"  the destination is a new 6TB raid thats empty.  I've created a new library  on that drive and still get the same error!  help..

    Did you format your new drive to MAC OS Extended?
    Al

  • "Your payment method was declined. Please enter another payment method" Error

    Hello,
    I've been trying to download an app for about two hours now. I recently got a new Macbook and iPad, my iPhone is a bit older and has been used frequently. I have only bought paid apps with my iPhone (and other iPad -- not usable currently). I have been trying to download a game which is $4.99 on my account, I have tried with my Mac, iPad, and iPhone, no luck. Every time I get a error saying "Your payment method was declined. Please enter another payment method". I know for a fact I have more than enough money to pay for this app. All the details have been checked and checked again. What is the problem?
    I also get an error when first buying the game (or attemting to) and it says something along the lines of "You've recently used a new device or computer to access this apple id, please sign in to confirm your purchase". That then leads to my confirmation of my security code on my card, which is triggering the first mentioned error.
    Apple Support has not yet given me a response, can any of you help?

    I think that for some international copyright issue, Apple is now blocking purchases from your store if they detect that your IP is outside the frontiers. I've been using my Canadian Visa Card for two years to purchase from France on ITune Store Canada and I never had a problem until today. Impossible to buy RunKeeper Pro. I get the same message you get. The only option seems to swithch back to IStore France and modify the account details with a french address and a french credit card.
    Are you in a similar situation?

Maybe you are looking for

  • How to solve the date issue with BIP report

    Even the below query also giving "invalid Number error" select * from scott.emp where hiredate between TO_DATE('01-01'||TO_CHAR(:p_end_date,'YYYY'),'MM-DD-YYYY') AND TO_DATE(to_char(:p_end_date,'MM-DD-YYYY'),'MM-DD-YYYY') Regards boo

  • Why can Siri not open applications?

    I love Siri, it is one of the coolest products I have ever used.  But I am curious why when I ask it something like "Open my contacts" it replies with "I can't do that for you" or "I am not allowed to do that".  Why would there be a restriction on Si

  • Help please(I need this language back

    I have successfully updated my n95 to the newer firmware.but the problem is the language(Arabic Language has dissapeared.i write in arabic but now after updating, my n95 doesnt read or write any thing in arabic. have bought my n95 from malaysia and i

  • MDM Extractor problem

    Dear MDM Specialists, I am unable to find the std MDMGX extractor config. files for Vendor & Customer. Where can I find them ? Also Is there anything special to be considered while downloading fixed values from Domains from ECC 6.0 using MDMGX. I tri

  • Why is battery draining quicker?

    M y battery just started draining much faster than it ever has! I could be on it 10 to 12 hours but now half that if I'm lucky. I saw some posts that said to turn off location so I did that but still drains. I saw another suggestion that said make su