[SOLVED]How to search package name only when using yaourt

I often install a AUR package by yaourt term, but it does not only search terms in package name but also package description, since there are so much packages in AUR, it produce many pages of items, and it can not support more to page one screenful at a time, It
become difficult to get the right choice,
Thank you in advance!
Last edited by netawater (2013-06-14 00:47:06)

Hey, that's one thing I actually know how to do with regexes! All package descriptions have some spaces at their beginning, the package names themselves have not, so you can just use inverted grepping like so:
$ pacman -Ss test | grep -v '^ '
core/perl 5.10.1-5 (base)
extra/fprint_demo 0.4-2 (fprint)
extra/ghc 6.12.1-2
extra/haskell-hunit 1.2.2.1-1
extra/haskell-quickcheck 2.1.0.3-1
extra/junit 4.7-1
extra/kdesdk-kpartloader 4.4.0-1 (kde kdesdk)
extra/libxtst 1.1.0-1
extra/memtest86+ 4.00-1
extra/mono-tools 2.6.1-1
extra/openoffice-base 3.2.0-1
extra/openoffice-base-beta 3.2.0_ooo320_m12-1
extra/perl-test-pod 1.41-1
extra/python-nose 0.11.1-1
extra/qemu-kvm 0.12.2-1
extra/testdisk 6.11.3-2
extra/unarj 2.63a-2
extra/xbill 2.1-6
xyne-any/reflector 5.0-2
community/buildbot 0.7.11p3-1
community/cppunit 1.12.1-1
community/cxxtest 3.10.1-3
community/dsniff 2.4b1-15
community/gtk-aurora-engine 1.5.1-1
community/gtkperf 0.40-3
community/java-jdom 1.1.1-1
community/lib32-libxtst 1.1.0-1 (lib32)
community/perl-test-base 0.59-1
community/perl-test-deep 0.106-1
community/perl-test-differences 0.500-1
community/perl-test-exception 0.29-1
community/perl-test-manifest 1.23-1
community/perl-test-mockobject 1.09-1
community/perl-test-nowarnings 1.01-1
community/perl-test-tester 0.107-1
community/perl-test-warn 0.21-2
community/phoronix-test-suite 2.4.0-1
community/pmtools 20100123-1
community/reflector 5.0-2
community/stress 1.0.0-2
community/typespeed 0.6.5-2
arch-games/mangler-snapshot 1.1.20100116-3
arch-games/ultimatestunts 0.7.5.1-1
This still shows the repos and the versions (nothing cut wouldn't be able to handle though). It works fine with pacman as you just saw, I can't guarantee for yaourt as I don't have it installed.
Edit: Hm… I just realized that this still displays the results where 'test' only occured in the package description. Give me some time to figure this out.
Edit 2: Another grep for 'test' would solve it:
$ pacman -Ss test | grep -v '^ ' | grep test
extra/memtest86+ 4.00-1
extra/perl-test-pod 1.41-1
extra/testdisk 6.11.3-2
community/cxxtest 3.10.1-3
community/perl-test-base 0.59-1
community/perl-test-deep 0.106-1
community/perl-test-differences 0.500-1
community/perl-test-exception 0.29-1
community/perl-test-manifest 1.23-1
community/perl-test-mockobject 1.09-1
community/perl-test-nowarnings 1.01-1
community/perl-test-tester 0.107-1
community/perl-test-warn 0.21-2
community/phoronix-test-suite 2.4.0-1
arch-games/ultimatestunts 0.7.5.1-1
Still, it's not that pretty to write the same thing twice. If you really want to do it like this, I suggest you make it a function in your ~/.${SHELL}rc.
Last edited by Runiq (2010-02-27 08:36:11)

Similar Messages

  • Full package name needed when using FindClass?

    When loading a class for use by the invocation interface, do I need to use the full package name of the class to be loaded, or just the class name?
    For example, I have a program called MyProg. It is part of package MyProg, and when I run it, I have to do so using java MyProg.MyProg.
    When loading the class, I've tried both of the following:
    cls = (*env)->FindClass(env, "MyProg\\MyProg");
    cls = (*env)->FindClass(env, "MyProg");Neither one works. Anyone know for sure which one it shoulf be? I suspect that there is a classpath issue coming into play as well, but that's another post. :)

    Thanks! Just to clarify, this is on a Win32 machine.

  • How to search contact names only

    Hello! I have quite a bit of a problem. I get in contact with a lot of people and have over 500 contacts. Now for each contact I usually copy and paste emails or whatever and add it into the notes section under each contact. Now when I try to search for something in the contacts APP, for example, if I type John Doe,
    everything would be searched, even all the John Doe in the notes field would be search also. So emails would show up ([email protected]) instead of the actual contact name itself. So it causes a bit of problem scrolling through all these search just to find a contact number/email. Any way to limit the search to only the contact names and nothing else?

    Hi --
    It's all a moot point now. I just selected All Photos, put the Broswer into full window grid view, set the thumb size very small, and started scrolling down -- stopping whenever I saw the distinctive Stack patch.
    The reason for all this was to do a final clean up of some lingering Rotated vs. Non-Rotated duplicates which were still in my iPhoto Libraries before I imported them into my new Aperture Library. In Aperture, they became Stacks in which one image was Keyworded as an "iPhoto Original" and the other as an "iPhoto Edited".
    But now I have a new Search question which perhaps you might have a suggestion for. The thread is at http://discussions.apple.com/thread.jspa?threadID=1771699&tstart=0
    Thanks,
    John Bertram
    Toronto

  • [SOLVED] how to do colour profiling/calibrating (when using XFCE)

    Today I got my ColorHug colorimeter (for screen calibration) in the mail.
    I'm using XFCE, and see that the standard way to load a profile is to just put "xcalib profile.icc" in some autorun.
    And I see that by installing the colorhug-client I get a simple way of flashing the device itself.
    But what's the standard way to calibrate/profile my monitor in XFCE? Gnome has gnome-color-manager, which seems to make things really easy, but when I installed that and did gcm-calibrate, I just got "No device specified!" and there was no --help at all; does it only work when you're logged into Gnome Shell?
    I then tried dispcalGUI, which is quite scary-looking. But this program at least recognized the ColorHug and had big buttons saying Calibrate/Profile which show lots of big coloured squares for my new device to hug. But even after rtfm-ing the terms I'm not 100 % clear on the difference between calibration and profiling/characterisation, can I use the same device for both processes?
    Last edited by unhammer (2012-05-23 12:55:02)

    Note: this seems to work
    $ sudo pacman -S gnome-settings-daemon
    $ /usr/lib/gnome-settings-daemon/gnome-settings-daemon &
    $ colormgr get-devices # take note of the Device ID of the one with Type: display, e.g. "xrandr-Acme Corp"
    $ gcm-calibrate --device="some Device ID"

  • [solved, I suppose] weird colors when using yaourt-git with screen

    This happens only when using yaourt-git in screen: http://loka.pl/outgoing/yaourt_colors.png
    Is it just me? I tried changing all the color settings in yaourtrc but I can only "fix" it by disabling color entirely.
    Last edited by fwojciec (2008-08-22 19:22:55)

    It looks like it's impossible to get italics working in screen.  I made a patch for yaourt-git to get rid of the problem, though this is really a pretty crude hack that simply disables italics when yaourt is used inside screen:
    --- yaourt/src/lib/color.sh.orig 2008-08-22 14:07:28.000000000 -0400
    +++ yaourt/src/lib/color.sh 2008-08-22 14:08:08.000000000 -0400
    @@ -24,7 +24,11 @@
    COL_BOLD="\033[1m"
    COL_INVERT="\033[7m"
    COL_BLINK="\033[5m"
    -COL_ITALIQUE="\033[3m"
    +if [ "$(echo $TERM | grep -o screen)" == "screen" ]; then
    + COL_ITALIQUE="\033[0m"
    +else
    + COL_ITALIQUE="\033[3m"
    +fi
    NO_COLOR="\033[0m"
    # Color list
    This is an altered PKGBUILD for yaourt-git (you can use the yaourt-git tarball from aur and just add the patch line and update md5sums).
    # Contributor: Manuel "ekerazha" C. (www.ekerazha.com)
    # Author: Julien MISCHKOWITZ <[email protected]>
    pkgname=yaourt-git
    _realname=yaourt
    pkgver=20080822
    _realver=0.9.1
    pkgrel=1
    pkgdesc="yaourt test release"
    arch=('i686' 'x86_64' 'ppc')
    url="http://www.archlinux.fr/yaourt-en/"
    license="GPL"
    depends=('wget' 'diffutils' 'pacman>=3.1.0')
    makedepends=('git')
    provides=("$_realname=$_realver")
    conflicts=("$_realname")
    install=yaourt.install
    backup=('etc/yaourtrc')
    source=('yaourtrc-0.9-1' 'yaourtrc-0.9.1-1' 'yaourt_screen.patch')
    md5sums=('9e43668d5bed3b0561de8c9c10e7d618'
    'd07a57031ad0fddb2565861f86cf5675'
    '81c04a04303311dcaac76b5d64d5b978')
    _gitroot="http://projects.archlinux.fr/yaourt.git"
    _gitname="yaourt"
    build() {
    cd $startdir/src
    msg "Connecting to GIT server...."
    if [ -d $startdir/src/$_gitname ] ; then
    cd $_gitname && git-pull origin
    msg "The local files are updated."
    else
    git clone $_gitroot
    fi
    msg "GIT checkout done or server timeout"
    msg "Starting make..."
    cp -r $startdir/src/$_gitname $startdir/src/$_gitname-build
    cd $startdir/src/$_gitname-build/src
    patch -Np2 -i $startdir/src/yaourt_screen.patch || return 1
    make install DESTDIR=$pkgdir || return 1
    # preinstall original backup files for yaourtrc
    install -D -m 766 $startdir/src/yaourtrc-0.9-1 $pkgdir/var/lib/yaourt/backupfiles/yaourt/yaourt-0.9-1/yaourtrc
    install -D -m 766 $startdir/src/yaourtrc-0.9.1-1 $pkgdir/var/lib/yaourt/backupfiles/yaourt/yaourt-0.9.1-1/yaourtrc

  • HI, I recently upgraded my operating system IOS 5.0.1 on an iphone 3gs. MY question is, how do I get the text messaging preview to just pop up so that I can see the name only when the lock screen is on? The conventional ways of doing this aren't working

    HI, I recently upgraded my operating system IOS 5.0.1 on an iphone 3gs. My question is, how do I get the text messaging preview to just pop up so that I can see the name only when the lock screen is on? The conventional ways of doing this, such as using turning off the SMS preview under the "passcode lock", well that option no longer exists, or if it does, I'm somehow missing it.
    When I go to the "messages" setting under settings on my phone, I still don't see an option of turning it off.
    If I can just get the name of the person sending the message, as I had it before, I'd be happy.
    Help!

    That option still exists in Settings > Notifications > Messages > Show Prview (OFF) and View in Lock Screen (ON). Here's how to configure your Notifications and Notification Center for iOS 5: http://iphone-and-i.blogspot.com/2012/01/how-to-customize-notification-center-in .html

  • Can someone tell me how to set my name so when I send a text it shows up instead of my phone number

    Can someone tell me how to set my name so when I send a text it shows up instead of my phone number

    You can't do that. Only the sending number is transmitted by the carrier with an SMS message. If the recipient has you in their address book, with most smart phones and some others, the name will display, but that's a function of the phone on the receiving end.

  • How to control package names in packagemaker 3?

    I'm setting up a distribution package (in Tiger I used the older meta-packages to be able to install on Panther) in Packagemaker 3, and I don't seem to have any control over the component package names. ie:
    Make a new distribution package, Tiger-compatible, organization "com.whatever".
    Drag a framework "Foo.framework" from my staging area into the Contents pane. It names the new Choice "Foo", with contents named "Foo". My Foo framework has identifier "com.whatever.foo-framework" but it fills in the package identifier as "com.whatever.fooFramework.foo.pkg", so I correct that to be the same as the framework identifier.
    I can change the Choice name - I enter "Foo Framework". But there is no way to change the contents name - it seems to be tied to the framework's base name. And so is the installer package name:
    Now, when I build the installer package, inside the foo metapackage is the foo installer package, named "foo.pkg". And this is the one that the receipt is named from, BUT I want the receipt to be "foo-framework.pkg".

    You might want to consider starting a new discussion. Since this one is marked solved, less people are likely to look at it. You can link to this one.
    Send Apple feedback. They won't answer, but at least will know there is a problem. If enough people send feedback, it may get the problem solved sooner.
    Feedback

  • I changed language from EN-GB to EN-US but my keyboard is still British (only when using FF). How can I change it to EN-US? in English

    I changed language (based on an answer in this forum) from EN-GB to EN-US but my keyboard is still British (only when using FF). How can I change it to EN-US?
    Should I just export my bookmarks, uninstall and reinstall the proper version? That may just be shorter than anything else.

    GREAT!. Thanks a lot for educating me. There seem to be a million things we have to learn about our computers and when we run into them the first time they seem insurmountable. You pointed me to the solution. Thanks again. Ben

  • How to search app name in abs?

    How to search app name in abs?

    jasonwryan wrote:
    If you want the name of the repo:
    find /var/abs -name "app"
    Something like this is faster
    find /var/abs -maxdepth 2 -type d -name "app"
    But, I dont really understand the OP problem....

  • Did IOS8 upgrade w/iPhone5 / lost names associated when using e-mail - only displaying telephone numbers / what are the steps to correct to show names?

    Did IOS8 upgrade w/iPhone5 / lost names associated when using e-mail - only displaying telephone numbers / what are the steps to correct to show names?

    maybe OP want to extract all numbers from his inbox using regular expressions?

  • I have iPhone 4 but its very slow when i wright message or search for name finally when i use the keyboard its coming very slow

    i have iPhone 4 but its very slow when i wright message or search for name finally when i use the keyboard its coming very slow

    Try Settings > General > Reset > Reset All Settings.

  • Prompting for password and username only when using dynamic parameters

    Post Author: Co3023
    CA Forum: Crystal Reports
    How do I stop CR XI prompting for password and username only when using dynamic parameters. When no dynamic parameters are used CR XI isn't prompting for the DB user name and password. The report is run from an application which passes the user name and password. I am using Oracle and the problem is both with the native oracle driver and the ODBC RDO driver.

    Post Author: jehanzeb
    CA Forum: Crystal Reports
    I didnt ask you to change it to static I said I took the parameters totally out of the report. Saved it. Then re-enter the dynamic parameters into the report and it worked for me. That might have worked for you, not sure why you changed it to static.
    Ok I have just created a quick report using dynamic parameters, it didnt ask me for the username password.
    Can you create a sample report - just to test the db? and see if it works? add only 1 or 2 fields in the report, create parameters (dynamic) and see if it works
    why don't you embed the username and password in your application, it won't ask for username password then.

  • How do I manage Lightroom photos when using 2 computers, keeping all edits made on either one?

    Based on http://forums.adobe.com/thread/1308132?tstart=0 I decided to add each question seperately:
    Hello, I'm quite interested in buying Lightroom 5.2. I tried the RC which ran out now. Yet, I have a several questions that I can't really find good conclusive answers to, that I'd like to get answered before buying LR. Please don't write maybe like this or that (assumptions), since I don't want to start my whole workflow and then realize that I have to change everything around, so please answer, if you know for sure that something works and you are, preferably, using that method too.
    This is the biggest question, where I mainly want a conclusive answer:  How do I manage Lightroom photos when using 2 computers, keeping all edits made on either one of them, using the same photos for editing. I won't use DNG. Details: I mainly use my older MacBook Pro, but would like to be able to use my PC as it's way better (Specs: i5 2500K, 16GB RAM, SSD, USB3, nVidia GTX 560 TI etc.). I have 2 external HDs that I could use, one for Backup and one for the actual Photos/Edits. I'll probably need to use it as my internal HDs are quite full, and I can't just delete stuff or move it to an (Developer programs, Lossless music, etc.).
    Based on this, how do I back up the whole thing e.g. Photos folder (all photos and edits, and preferably presets too)?

    I believe it should be possible to work cross-platform without having to relink files each time, or without having to keep exporting/importing the catalog, by keeping the single catalog and the image library on the one external drive which is then switched between systems as needed.
    Obvious first requirement is an external drive that is formatted in such a way (e.g FAT32) that it can be used on both platforms in read/write mode. Given that, if the catalog AND the images parent folder are both established at the same level in one overall parent folder, then it should be possible to take advatage of Lightroom's ability to use relative paths rather than absolute paths to detect the images, no matter if the drive is named (Mac) or lettered (PC). This is how "export as Catalog" works, i.e. it creates a "package", aka a parent folder, containing the catalog and a replica of the exported images folder hierarchy alongside the catalog. Take that "package" to another system (same OS or not) and "it just works" even if the drive letter is different or the OS is different....because the relative path from catalog to images is still the same.
    I haven't tested this cross-platform (though I have between different PC systems with different drive letters) so for me it's still just a theory, but there may be others who have done this successfully.

  • How can I customize the toolbar when using the attribute browser

    In CVI 2012, the toolbar changes depending on the environment, e.g. it is different for the source window and the UI editor. The toolbar can be customized using the menu Options / Toolbar...
    Unfortunately, when using the attribute browser of the UI editor, another toolbar is displayed, i.e. not the UI editor toolbar.... I would have assumed that the attribute browser belongs to the UI editor, obviously it doesn't... So how can I customize the toolbar when using the attribute browser?
    Solved!
    Go to Solution.

    Luis,
    It's nice to have you back 
    Thank you for the clarification, so I'll elaborate a bit more: In the regular workspace toolbar, I have a disk symbol to save the file. This symbol is gone in the attribute browser...
    So I have three different toolbars, for source code (workspace), UI editor, and the UI editor displayed but the attribute browser clicked on (selected)... 
    Thanks
    Wolfgang
    Source code:
    UI editor:
    Attribute browser:

Maybe you are looking for

  • How do i set up my magic trackpad to my new mac mini

    how do i set up my magic trackpad to my new mac mini

  • Failed to upgrade ASA5505 license from 10 to unlimited users

    Hello everyone. The problem I'm experiencing is that I´m trying to upgrade a Customer's ASA 5505 base license from 10 to 50 users (ASA5505-SW-10-50=). But the reseller sent a ASA5505-SW-50-UL= license instead. I tried to register that license and the

  • Multiple signatures ios8.2

    Hello friends I wanted to know, is it possible to add 2 signatures on iphone mail (iphone 5 ios 8.2)  to one default email account ? I mean , i have exchange mailbox , that working find , but i want to use more than one default signature to my outgoi

  • How to stop request for admin password when sending files to trash?

    I am requested the admin password when ever sending a file to trash using the mouse or the context menu. How to stop this annoying request? It was not like this before. I am working on a non admin account for security reasons. I got admin details her

  • Superdrive won't accept anything

    My superdrive gate is shut and it won't open for anything. I simply physically can't put a cd or a dvd -disk inside. I know it's empty so it can't be that. I've tried to eject the non excisting cd by using all the possible options (apple-keyalt+OF) a