'pkg_search': A little wrapper script for searching/installing packages in OpenBSD - BSD
Phyrne
Sup guys, just a short thread this evening.

I wanted to share with you a little wrapper I've written for pkg_info & pkg_add that allows the user to search for and install packages in OpenBSD in a seamless and intuitive manner.

pkg_info and pkg_add are great tools on their own, but taped together with a few utils, they function really nicely as a single tool!

So I threw together pkg_search. It queries the package database for the given string, spits out a numbered list of results of package names containing the search string and offers the user the ability to install the desired package by providing the associated number.

[Image: example.png]

It has no dependancies, it's a simple little korn shell script that uses already included tools.

So, feel free to use it, change it, abuse it, do whatever. It's not supposed to be a replacement for anything, or a game-changer, just a useful little tool, I tend to use it whenever installing packages, so figured I'd share.

Feedback is appreciated of course!


Enjoy ;)
vypr
I will definitely install this when I get FreeBSD back on my laptop. Great job, also. :)
Code:
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
G d s+:++ a--- C++ UB P+ L+ !E !W+++ !N !o K--? w++ !O M++ !V PS+++ PE-- Y++ PGP+ !t !5 !X !R tv b+ DI D++ G e- h r y--
------END GEEK CODE BLOCK------

buddhist ~ esperantisto ~ communist
Phyrne
(19-08-2013, 12:18 AM)sticky Wrote: I will definitely install this when I get FreeBSD back on my laptop. Great job, also. :)

Thanks sticky :) Though, I'm not sure how much good this'd do on FreeBSD, it's written for OpenBSD, using OpenBSD specific tools :p
yrmt
Nice script Phyrne, I Will use it when I install OpenBSD some day.
Phyrne
(19-08-2013, 10:52 AM)yrmt Wrote: Nice script Phyrne, i Will use it when I install OpenBSD some day.
Thanks broseph. Yeah do it! Still some improvements to come.
berk
Grand invention. Thanks, hoping to use this on my OpenBSD install :)
Phyrne
(19-08-2013, 05:47 PM)theconjuring Wrote: Grand invention. Thanks, hoping to use this on my OpenBSD install :)
Thanks man, it comes in handy :) Enjoy!
jobss
Looks eggcelent! Kind of reminded of emerge search. Will eventually use this on my DragonFly BSD setup. <(^__^)>
The world is quaking from our Linux Thoughts!
Mafia
Using this now(: thanks phyrne.
Phyrne
(23-09-2013, 11:53 PM)Mafia Wrote: Using this now(: thanks phyrne.
No problem! Enjoy Mafia :)




Members  |  Stats  |  Night Mode