pkgwat -search packages for Fedora.

2013-08-23 1 min read Fedora

pkgwat is a nice utility to search the fedora packages websearch.

Description : Pronounced "package WAT", pkgwat is a fast CLI tool for querying
: the fedora packages webapp.
: https://apps.fedoraproject.org/packages/
:
: You can make its search even better by helping us tag packages.
: https://apps.fedoraproject.org/tagger

And to search for  a package, you can use ::

pkgwat search 
pkgwat -h # get help on package.

 

Continue reading

Your own local search engine.

2012-04-09 1 min read Fedora Learning Uncategorized

There are times when you would want to have a local search engine capable of indexing even pdf and doc files. So here is a solution.

You can use “Omega” and here are the instructions.

download omega from http:// xapian.org/download

yum install xapian libuuid-devel

And then make and install omega and for this you can follow the instructions.

Federated Search Engine Diagram
Federated Search Engine Diagram (Photo credit: Wikipedia)

Create index using command omindex
and then you can use quest or search.py to search or you can setup the cgi way so that you can use local browser to search.

Continue reading

Google gravity for fun

2012-03-11 1 min read Uncategorized
Image representing Google Search as depicted i...
Image via CrunchBase
1) Write ‘Google Gravity‘ in Google search box,press enter. 2) Click on the 1st result that appears i.e. Google Gravity. 3) Wait 2 seconds. Something cool will happen. 4) Play with it for a while. 5) Then write any word in the Google search bar and press Enter. 6) Wait and see. Something even cooler will happen 🙂 Awesome !!!..
Enhanced by Zemanta

Empty a file

2010-12-26 1 min read Learning Linux
Screenshot of Calculator.NET, a Free Open Sour...
  <dd class="wp-caption-dd zemanta-img-attribution" style="font-size: 0.8em;">
    Image via <a href="http://commons.wikipedia.org/wiki/File:Calculator.NET_Screenshot.png">Wikipedia</a>
  </dd>
</dl>

This one is for those who know the “touch” command. Hope all of us do not follow a  command just because it is on one of the popular site without trying to understand the command and the output.

Continue reading

Determine what process is listening on a port on Solaris, without lsof

2010-06-08 0 min read Linux Solaris
\"Desktop
Image by Metsuke iLife via Flickr

$ for x in `ptree | <a class="zem_slink freebase/en/awk" title="AWK" rel="homepage" href="http://cm.bell-labs.com/cm/cs/awkbook/index.html">awk '{print $1}&#8217;`; do pfiles $x | <a class="zem_slink freebase/en/grep" title="Grep" rel="wikipedia" href="http://en.wikipedia.org/wiki/Grep">grep ${PORT} > /dev/null 2>&1; if [ x&#8221;$?&#8221; == &#8221;x0&#8221; ]; then ps -ef | grep $x | grep -v grep; fi; done 2> /dev/null

Continue reading

more powerful grep – ack

2010-05-26 2 min read Bash Fedora

For last couple of days, I have been using ack instead of grep. Here is description of ack:

Ack is designed as a replacement for grep.

There are couple of reasons I am using ack. First and foremost being it does not require a filename. So, for seaching amit in all files recursively under the current directory I can simply use

ack amit

More reasons to use ack:

It supports pager option and there can be a rc file that can be used to define the default options that needs to be used with ack. Here is the contents of my $HOME/.ackrc file.

Continue reading
Older posts