Pacman - short question about usage

Hi,
while searching the database with "pacman -Ss foobar", is it possible to show which of the resulting package names are already installed? In Debian it's shown via "aptitude search foobar", but I can't find the corresponding option for pacman in its man page.
Thanks for your answer.

Sorry, I've forgot to mention - but I think "repo-add" is more elegant solution. Personaly, I use a script which I call "auri" based on "aur-install", too. It also builds packages.
If anyone likes it you can improve
#!/bin/bash
#/usr/local/sbin/auri
# Author: Luis Useche <[email protected]>
# Modified by: aris002 (no warranty and no reponsabilty for the damages to your system)
# Date: 10/20/2006
# License: GPL
# aur-install is a tool to install any AUR package in one command. It is needed
# to pass the url of the tarball package. It allows to see the code of both
# PKGBUILD and install file beforme performing the installation.
ABS_LOCAL_DIR="/var/abs/local"
WGET="/usr/bin/wget"
UNTAR="/bin/tar xzf"
MAKEPKG="/usr/bin/makepkg"
PACMAN_INSTALL="/usr/bin/pacman -U"
REMOVE="/bin/rm -rf"
READER="/bin/less"
ADD_TO_MY_REPO="/usr/bin/repo-add"
HOME_REPO_DIR="/home/myrepo"
HOME_REPO_NAME="myrepo"
AUR_URLPKGS="http://aur.archlinux.org/packages"
# Function that make a yes or no question a return true in case of
# yes otherwise false
ask_question() {
echo -n "$1(y/n)[y]: "; read ANSWER
while [ -n "$ANSWER" ] && [ "$ANSWER" != "y" ] && [ "$ANSWER" != "n" ]; do
echo -n "\"y\" or \"n\": "; read ANSWER
done
return `[ "$ANSWER" = "y" ] || [ -z "$ANSWER" ]`
# Verifying root permisions
if [ `id -u` != "0" ]; then
echo "You need root to execute this script"
exit 1
fi
# Veryfing parameters
if [ -z "$1" ]; then
echo "You need to pass an aur package URL or aur package name as an argument"
echo "Usage: aur-install <pkgname>|<package tarball URL>"
exit 1
fi
# Verifying if the argument is a URL or a pkg name
if echo $1 | grep -q "http://"; then
URL_PKGTAR=$1
TAR_FILE=`basename $1`
PKGNAME=`basename $1 .tar.gz`
else
URL_PKGTAR="$AUR_URLPKGS/$1/$1.tar.gz"
TAR_FILE="$1.tar.gz"
PKGNAME="$1"
fi
# Changing directory
pushd $ABS_LOCAL_DIR > /dev/null
# Download the file and place it in abs dir
#aris002 TODO check if exists!!!
$WGET $URL_PKGTAR
# Untaring tar file
$UNTAR $TAR_FILE
# Removing the file
#aris002 KEEP???
$REMOVE $TAR_FILE
# Go inside package directory
pushd $PKGNAME > /dev/null
# Verifying the packages
if ask_question "Do you want to look the PKGBUILD file in case of malicious code?"; then
$READER PKGBUILD
# Continue?
if ! ask_question "Do you want to continue?"; then
exit 1
fi
fi
# Including PKGBUILD
source PKGBUILD
if [ -n "$install" ] && ask_question "Do you want to look the $install file in case of malicious code?"; then
$READER $install
# Continue?
if ! ask_question "Do you want to continue?"; then
exit 1
fi
fi
#repair (insert) arch=('i686') in PKGBUILD
sed -i.BAK -e '/^arch/d' -e '/^pkgdesc/a \arch=('\''i686'\'')' $ABS_LOCAL_DIR/$PKGNAME/PKGBUILD
echo "Making and installing the package..."
# Making Package
$MAKEPKG
#aris002 repo-add
$ADD_TO_MY_REPO "$HOME_REPO_DIR/$HOME_REPO_NAME.db.tar.gz" "$HOME_REPO_DIR/$pkgname-$pkgver-$pkgrel-i686.pkg.tar.gz"
# Installing with pacman
$PACMAN_INSTALL "$HOME_REPO_DIR/$pkgname-$pkgver-$pkgrel-i686.pkg.tar.gz"
# Returning to the original directory
popd > /dev/null
popd > /dev/null

Similar Messages

  • Short question about the nano controls

    Hi. I'm probably going to buy a 4Gb nano today, but first I'd like to ask a short question about the << >> buttons on the click wheel.
    I read in a forum that the << & >> buttons are actually 'skip' buttons (only used to play the previous or next song respectively), and that it's impossible to rewind or fast-forward within the track you're listening to. This is extremely important for me as I have several 2-3 hours mp3, and I need to be able to access different parts of the file quickly (eg. not having to actually wait 1 hour to listen to my favorite part). I found this to be an important feature, and I can't believe Apple hasn't thought about it.
    Anyway, I've never used an iPod, that's why this question may sound plain stupid.
    Thanks for you replies!

    The iPod fast charges to about 80% and then trickle charges the rest of the way to prevent damaging the battery/iPod. A full charge takes more than an hour or two though the battery indicator will show full. The best way to tell if a full charge has occurred is to unmount the iPod from the computer but keep it connected. The screen will show an animation of a battery. When the animation stops the battery is fully charged.
    Also, as your battery discharges the indicator will eventually show red indicating the battery is about to run out...in an hour or two. After you've owned your iPod for a couple months you'll figure out how much time you have left when the indicator turns red - it depends on a number of factors including play volume, equalizer use, etc. In real world use I'm getting over 11 hours.
    The headphones are...average. If they didn't hurt my ears I'd find them acceptable for my pop music but not so acceptable for acoustic and symphonic nor music with booming bass - because they don't boom the bass.
    I encode the majority of my music at 256 AAC and I've noticed no distortion caused by the EQ. This, plus your complaint about the earphones, leads me to think perhaps you got a bum set of phones. Borrow a pair from someone else and see what happens.

  • Short questions about the focused item

    Hi,
    Short questions about the focused item:
    - How can I check if a specific item has the focus?
    - How can I check in my code which arbitrary item on my form has the focus?
    I need to know this because I have a checkbox and when it become unchecked, I disable an item on my form. But when this item has the focus, disabling this item will fail. Does anyone knows a solution for this problem?
    Greetz
    Eddy

    Hi Eddy!
    I suppose you should make an "event trigger" for the event "et_GOT_FOCUS" in your ItemEvent-handler and store there the item, which initiate that event. It can be like following:
    SBOApp_ItemEvent(FormUID, pVal, BubbleEvent)
    if (pVal.EventType == SAPbouiCOM.BoEventTypes.et_GOT_FOCUS)
       strCurrItemInFocus = pVal.ItemUID;
    do someth..
    if (strCurrItemInFocus == "chbxMyCheckbox1")
       // disabling this item will fail
    else
       // disable an item on my form
    I hope it helps..

  • Two questions about usage

    I've just had an email warning me that I am approaching my Broadband usage limit; this has now beenresolved, but it got me thinking.  Am I correct in thinking that BT Vision usage does not affect my Broadband usage?  Is there a usage limit for BT Vision?
    Thanks
    Mike
    Solved!
    Go to Solution.

    dikul wrote:
    I've just had an email warning me that I am approaching my Broadband usage limit; this has now beenresolved, but it got me thinking.  Am I correct in thinking that BT Vision usage does not affect my Broadband usage?  Is there a usage limit for BT Vision?
    Thanks
    Mike
    Mike it absolutely doesn't count towards the limit and there is no limit set for BT Vision.
    Life | 1967 Plus Radio | 1000 Classical Hits | Kafka's World
    Someone Solved Your Question?
    Please let other members know by clicking on ’Mark as Accepted Solution’
    Helpful Post?
    If a post has been helpful, say thanks by clicking the ratings star.

  • Question about usage unbilled Acccount in Rev Rec

    We are implementing SD Rev Rec and I want to know the usage of un-billed account.
    When we create a credit memo with reference to a billing document, SAP picks up unbilled account while creating accouting document against the billing document. Normally on Sales order SAP uses account from Account determination (Key ERL), but it doesn't do that in case od credit memos. Why SAP treats the invoice as unbilled?

    Got it

  • Short question about system-id

    Hi everybody,
    how can I get information about the server-id, my web dynpro-application is running on? I need something like sy-sysid in APAP
    Thanks
    Jan

    HI
    String ID = System.getProperty("SAPSYSTEMNAME");
    Try this thread,
    Retrieveing SID programmatically !
    Regards
    Saravanan K

  • Short question about upgrading

    I have CS2 today and im about to upgrade to CS4. I have my original media left but ive lost my serial number. Am I still able to upgrade?

    Usuallly, an upgrading installer does not requre the previous version's serial number.
    If you upgrade the previous version installed on your computer, upgrading installer will automatically validate the previous version and complete the installation without requring previous version's serial number.
    If you install the upgrade version on the computer where previous version has not been installed, upgrading installer will prompt you to insert the previous version's installation media for validation and complete the installation without requiring previous version's serial number.
    But recent Adobe application's upgrading installer will prompts you to enter the serial number of your previous version, so you need to find out your previous application's serial number.

  • Question about usage of aaa accounting commands

    Hi everyone,
    I have the problem that Cisco routers and switches do not send some accounting command
    information to ACS.
    Accounting commands do not send to ACS are "show log" and "show version".
    Accounting commands send to ACS are "show runn", "conf t" and "debug"
    The configuration of routers and switches is the following
    aaa new-model
    aaa authentication login default group tacacs+ line
    aaa authorization commands 15 default group tacacs+ none
    aaa accounting exec default start-stop group tacacs+
    aaa accounting commands 15 default start-stop group tacacs+
    tacacs-server host xxx.xxx.xxx.xxx key yyyy
    I think the commands do not send to ACS are privilege level 1 command and the commands
    send to ACS are privilege level 15 command.
    So I need to additional aaa accounting command below to get routers and switches send level 1
    command to ACS, because the "15" of "aaa accounting commands 15" does not include level 1
    so need to configure "aaa accounting commands 1" for level 1 commands.
    aaa accounting commands 1 default start-stop group tacacs+
    Is my understanding correct ?
    Your information would be greatly appreciated.
    Best regards,

    Hi,
    plese do this and the router will send
    everything to the ACS server, except
    whatever you are doing to the router in http:
    aaa new-model
    aaa authentication login notac none
    aaa authentication login VTY group tacacs+ local
    aaa authentication enable default group tacacs+ enable
    aaa authorization console
    aaa authorization config-commands
    aaa authorization exec notac none
    aaa authorization exec VTY group tacacs+ if-authenticated none
    aaa authorization commands 0 VTY group tacacs+ if-authenticated none
    aaa authorization commands 1 VTY group tacacs+ if-authenticated none
    aaa authorization commands 15 VTY group tacacs+ if-authenticated none
    aaa authorization network VTY group tacacs+ if-authenticated none
    aaa accounting exec VTY start-stop group tacacs+
    aaa accounting commands 0 VTY start-stop group tacacs+
    aaa accounting commands 1 VTY start-stop group tacacs+
    aaa accounting commands 15 VTY start-stop group tacacs+
    aaa accounting network VTY start-stop group tacacs+
    aaa accounting connection VTY start-stop group tacacs+
    aaa session-id common
    ip http authentication aaa login-authentication VTY
    ip http authentication aaa exec-authorization VTY
    tacacs-server host 192.168.15.10 key 7 1446405858517C
    tacacs-server directed-request
    line con 0
    exec-timeout 0 0
    authorization exec notac
    accounting commands 0 VTY
    accounting commands 1 VTY
    accounting commands 15 VTY
    accounting exec VTY
    logging synchronous
    login authentication notac
    line aux 0
    session-timeout 35791
    exec-timeout 35791 23
    authorization exec notac
    accounting commands 0 VTY
    accounting commands 1 VTY
    accounting commands 15 VTY
    accounting exec VTY
    login authentication notac
    transport input all
    line vty 0
    exec-timeout 0 0
    authorization commands 0 VTY
    authorization commands 1 VTY
    authorization commands 15 VTY
    authorization exec VTY
    accounting commands 0 VTY
    accounting commands 1 VTY
    accounting commands 15 VTY
    accounting exec VTY
    login authentication VTY
    David
    CCIE Security

  • Short question about Zen Mi

    Is it possible to display my Mp3's in a folder structure with the Zen Micro
    so that i can chose songs or albums like in Windows Explorer?

    Yes, use Creative Media Source Organizer, you can sort by Album, Artist, Genre, etc. Also you can browse in Windows Explorer if that works better for you.

  • Short question about networking, Threads and  web services..

    Lets say I got 2 classes, Midlet A and Thread B.
    I created Thread B because web services (jsr-172) uses networking and It has to be done in a separate thread other then the Midlet A.
    So, in Thread B, I have the run(), where I do all my stuff, and some getSomething() methods.
    I need to have run() complete before calling getSomething(), so I used something like this in Midlet A:
    while(true){
        if(b.isAlive())
            getSomething();
    }Problem is, Thread B only runs to completion when I don't call b.isAlive(). (I know from System.out.println I placed in it) When I do use any methods like wait() or join() or isAlive(), Thread B stops at the web service call.
    I really don't understand what's the problem. I've tried various ways to only call getSomething() when the thread finishes running, but all of them made my WTK emulator hang at the part where it asks for permission to access the network.
    If I don't use getSomething(), which is the purpose of starting the thread in the first place, it runs fine in the emulator and doesn't hang anywhere. Oh the irony.

    Bump!
    Anyone got even half a clue what's wrong? =O
    Hmm. I think that having the midlet wait for the thread causes the midlet to hang because the thread will then wait for the midlet for permission to access the network, but the midlet is waiting for the thread to finish it's code. Damn.
    Message was edited by:
    lonereaction

  • A short question about set_block_property problem

    I have 12 blocks in my forms. And ı want to make all of then them insert allowed false.
    do ı have to make set_block_property('MYBLOCK', INSERT_ALLOWED, PROPERTY_FALSE) one by one or is there a solution to make all blocks insert allowed false with one code ?
    thanks

    Hi
    if u want to do it once use WHEN-NEW-FORM-INSTANCE Trigger form level & set all blocks property statement one by one or if u want it fixed to FALSE u can change in the property of each block insert allowed to FALSE
    Amatu Allah

  • App-V 4.6 - A question about sequencing Add-ons

    Hello,
    just a short question about app-v and add-ons:
    I want to sequence and publish an add-on for Microsoft Excel in app-v 4.6. But is it right that (if i want to use an add-on later) i have to use a virtual (sequenced) primary program?
    I do not find these information during my research and I am not really shure about it.
    It would be nice if it is possible to use a sequenced add-on with a local installation of e.g. Excel.
    Thank you very much!
    Gruß ST_Jan

    Hello,
    No, you can sequence the add-in and then create a shortcut to Excel.
    See this generic guide;
    http://blogs.technet.com/b/gladiatormsft/archive/2012/09/02/app-v-4-6-oldie-but-goodie-using-url-shortcuts-to-simply-user-experience-when-running-virtualized-ie-plug-ins-plus-a-bonus-tip.aspx
    and this topic;
    http://blogs.technet.com/b/virtualvibes/archive/2013/05/01/sequencing-a-shortcut-in-app-v-4-6-local-and-virtual-interaction.aspx
    Nicke Källén | The Knack| Twitter:
    @Znackattack

  • Question about garageband: I have 3 short original songs that i wanted to merge ala "Bohemian Rhapsody". Is that possible in garageband? their tempos are all different from each other. Advance thanks.

    Question about garageband: I have 3 short original songs that i wanted to merge ala "Bohemian Rhapsody". Is that possible in garageband? their tempos are all different from each other. Advance thanks.

    First of all, GarageBand iOS allows for only one tempo and there is no Merge Song feature.
    What you can do.
    Switch between the songs and copy-paste the individual Tracks. You can also Merge Tracks if you run into the 8 Track limitation.
    Hope that helps
    Edgar Rothermich
    http://DingDingMusic.com/Manuals
    'I may receive some form of compensation, financial or otherwise, from my recommendation or link.'

  • Question about Stacking

    Hello Everyone,
    I have a quick question about stackwise plus technology. I would like to confirm that there is no redundancy at the ethernet switch port in terms of a physical problem. The reason I ask is that we are deploying stacked switches shortly to ensure high availability but curious to know whether anyone has seen issues with physical ports failing and not the chassis/PSUs. I understand that Etherchannels can be used but we have security cameras that cannot suffer any outages and would be connected to a single port on the stack. I'm guessing that my option is to monitor the Switch Ports statistics via SNMP and move the camera to another port if this ever happens.
    Thanks in advance.
    Cheers.
    Evan

    Disclaimer
    The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
    Liability Disclaimer
    In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
    Posting
    Sure, ports can fail without the whole switch failing, but edge redundancy, such as using dual links (often configured as a bundled channel), between the host and two stack members addresses both switch port failure and stack member failure.
    Unless your security cameras support dual links, your going to have a single point of failure at the edge port.
    Next best options, as you've already noted, would be to have, on-line, "warm" spare ports that you can quickly repatch into.  Ideally you have enough spare ports to allowing repatching in case a whole switch member fails.
    (BTW, when you have spare ports, you don't have to set aside a whole stack member, sitting empty.  For example, instead of having a dual stack with only one switch member populated, and the other not at all, split the populated ports across both stack members.  That way, if a stack member fails, you don't lose all your hosts, only half.  [With cameras, depending on their views, you might be able to overlap their coverage across multiple stack member.])

  • Just installed iOS6, questions about "iMessage" and other things...

    I've been a satisfied iOS4 user since I bought my iPhone4, but I was forced to install iOS6 tonight in order to download a "free" app. I found a few new icons on the screen along with about 200 percent more "Settings" I'd like to ask some questions about. I'm sure a few of these could be answered by doing a frantic and thorough search through weeks of posts but I'm a little short on time right now.
    First, what exactly is iMessage? Looking at the page for it, I can't see any difference between it and regular text messages. The info page says its to avoid charges, but between my data plan and not being charged for text I don't see where theres any other benefit. The one person I text with the most recently asked me why I had not installed iMessage yet, and didn't have an answer when I asked him why I should. I guess he just wanted to see text replies in blue instead of green.
    In a related bit, flipping through Settings>Messages>Send & Receive I find a "2 addresses" section, with my phone number in there as well as my email under "You can be reached by iMessage at:" and "Start new conversations from:". What good does it do iMessages to have my email address? Does the Mail app handle text as well as email addresses? That seems to be the only explanation, and also very odd to think I'd be trying to text through my Mail app.
    Second, looking through the Settings>Mail I see now that I have an icloud email address as well as the mac.com address I've been desperately hanging on to for the past 10 years, and the me.com address they've been trying to force me into since those came out. (I was happy to see I could delete the me.com address from the phone. I wish I could delete it from the universe.)
    I wasn't even aware there was a such thing as icloud.com addresses. When did this happen? What is it used for?
    Third, under that icloud Setting I see a long list of apps with buttons labeled "Off" under it. What are those for? Under the Mac.com settings I see switches for "Mail" and "Notes", with Mail on and Notes off. The Notes app (which I haven't used since my old iPhone 3) still opens, regardless of this setting.
    Fourth, I now have an item called "Facetime" under my Settings. It is off, but underneath it says "Your phone number and/or email address will be shared with people you call". I understand caller ID normally sends caller number info to the receiver, but why would someone need my email address if I call them?
    Fifth, I now have a "Music" setting, at the bottom of which I see a "Home Sharing" item, which when clicked brings up my AppleID and asks me if I want to Sign Out or Cancel. What is Home Sharing? Its also at the bottom of the "Video" settings.
    Sixth, now I have Twitter and Facebook settings? For what? I don't have accounts with either of those companies. So why have settings, especially since it asks me to create accounts and download apps for those companies right in the Settings?
    Seventh, there is a camera icon on the unlock screen. Touching it causes the screen to bounce up about a quarter inch, almost but not quite revealing something behind it. I should probably just quit asking about this stuff already, but I'll take the bait - what is this now?
    Finally, what is the Notification Center used for?
    If I got a text under iOS4, it would put an alert on the Unlock screen. Scrolling through this huge list of things under the Notification settings I'm really blown away by all the apps set up to yell at me. I can see having an alert for a text message but Game Center? What the heck is that, and why is it set up to hit me with a "Badge App Icon" (whatever that is) when I get alerts from "Everyone". Similarly, the phone is set to alert me to something called a "Photostream Alert"? What is this? Why is there a Phone section for the Notification Center? So they can put a Notice on my screen to tell me the phone is ringing? Holy cow! The phone is set to send me alerts from the "Weather Widget". So if I miss the fact its raining there will be a message on my screen to let me know? Whats next - a buzzer to tell me I'm listening to music?
    There's a lot more, like what would I need Passbook for when I have the actual movie tickets, gate boarding passes, coupons, etc in my hands, but we'll leave that for another time. Many thanks to all who can offer some answers to my questions above.

    Hey Taantumus!
    Here is an article that will provide some guidance on this question:
    Apple ID: Changing your password
    http://support.apple.com/kb/ht5624
    The next time you use an Apple feature or service that uses Apple ID, you'll be asked to sign in with your new Apple ID password.
    Thanks for coming to the Apple Support Communities!
    Regards,
    Braden

Maybe you are looking for

  • My computer crashed. How do I get my music library back?

    My hard drive crashed. I need to get the music from my ipad back onto my computer. If I synch my ipad right now, it will erase all the music on the device.

  • Memory corruption detected with linux 3.9.2-1

    I have this message with dmesg and kernel 3.9.2-1, it disappears with kernel downgrade (3.8.11), what can i do ?? p.s. the system seems to be stable. [   61.584649] Corrupted low memory at ffff880000006598 (6598 phys) = ff0000000000 [   61.584695] --

  • EMac mini VGA video out

    Hi guys I just got the apple mini vga video out adapter this morning. What Im trying to do is record what is on my screen to mt sony pd150 camera. I do not have a s compsite lead as yet so im using the standard video audio adio lead. When I connect t

  • Is there a way to prevent "Save As" functionality on a PDF document?

    I know how to password protect the document so it can not be printed, and edited but "Save As" still seems to be an option. Is there a way to set the PDF so it can be viewed only?

  • SAPSCRIPT for Intrastat.

    Hi all experts! I have a question concerning sapscript and Intrastat. First some background information: Country's inside EU have to inform to the locally central Statistic bureau. This information can be printed out from SAP. For my case we have to