You are not logged in.

#1 2015-10-10 19:56:57

raybert
Member
Registered: 2015-09-26
Posts: 3

pacman search wrapper

Hi,

I've written a Python script that provides a wrapper around `pacman -S` and formats the output to (arguably) make it easier to read.  I thought some folks might find it useful.  You can find it on sourceforge @ https://sourceforge.net/projects/pmsearch/

Features include:

  * Separates package names and descriptions into two separate columns with the package name either left- or right-justified.
  * Word-wraps descriptions as needed.
  * Separates installed and available packages into two groups
  * Filters on installed/available status.
  * Automatically displays output in /usr/bin/less.
  * Uses color to enhance reading.
  * Makes a best-effort attempt to highlight the text that matches your search.
  * All behaviors are controllable from the command line.

Installation is done using a standard Python setup.py script:

    [sudo] python2 setup.py install

Note that pmsearch uses Python 2.x so you should use /usr/bin/python2 to install it (and you'll need to have it your system).

Hope someone finds it useful...

Offline

Board footer

Powered by FluxBB