![]() |
'pkg_search': A little wrapper script for searching/installing packages in OpenBSD - Printable Version +- nixers (https://nixers.net) +-- Forum: Operating Systems & Administration (https://nixers.net/Forum-Operating-Systems-Administration) +--- Forum: BSD (https://nixers.net/Forum-BSD) +--- Thread: 'pkg_search': A little wrapper script for searching/installing packages in OpenBSD (/Thread-pkg-search-A-little-wrapper-script-for-searching-installing-packages-in-OpenBSD) |
'pkg_search': A little wrapper script for searching/installing packages in OpenBSD - Phyrne - 18-08-2013 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. ![]() 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 ;) RE: 'pkg_search': A little wrapper script for searching/installing packages in OpenBSD - srp - 19-08-2013 I will definitely install this when I get FreeBSD back on my laptop. Great job, also. :) RE: 'pkg_search': A little wrapper script for searching/installing packages in OpenBSD - Phyrne - 19-08-2013 (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 RE: 'pkg_search': A little wrapper script for searching/installing packages in OpenBSD - yrmt - 19-08-2013 Nice script Phyrne, I Will use it when I install OpenBSD some day. RE: 'pkg_search': A little wrapper script for searching/installing packages in OpenBSD - Phyrne - 19-08-2013 (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. RE: 'pkg_search': A little wrapper script for searching/installing packages in OpenBSD - berk - 19-08-2013 Grand invention. Thanks, hoping to use this on my OpenBSD install :) RE: 'pkg_search': A little wrapper script for searching/installing packages in OpenBSD - Phyrne - 20-08-2013 (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! RE: 'pkg_search': A little wrapper script for searching/installing packages in OpenBSD - jobss - 31-08-2013 Looks eggcelent! Kind of reminded of emerge search. Will eventually use this on my DragonFly BSD setup. <(^__^)> RE: 'pkg_search': A little wrapper script for searching/installing packages in OpenBSD - Mafia - 23-09-2013 Using this now(: thanks phyrne. RE: 'pkg_search': A little wrapper script for searching/installing packages in OpenBSD - Phyrne - 24-09-2013 (23-09-2013, 11:53 PM)Mafia Wrote: Using this now(: thanks phyrne.No problem! Enjoy Mafia :) RE: 'pkg_search': A little wrapper script for searching/installing packages in OpenBSD - ajac - 07-10-2013 i like this! i hope you dont mind but i forked it on github. i added an escape when 0 is entered, because sometimes i wasnt finding anything i wanted to install. RE: 'pkg_search': A little wrapper script for searching/installing packages in OpenBSD - Phyrne - 05-11-2013 Thanks ajac! Hm, I don't really mind, but do you really think that justifies forking it? Perhaps a pull request or even just a quick suggestion here would have sufficed :) RE: 'pkg_search': A little wrapper script for searching/installing packages in OpenBSD - zr0 - 21-07-2014 i don't know about scripting but doesn't suppose to ask me for password when i hit the number of the program i want ? RE: 'pkg_search': A little wrapper script for searching/installing packages in OpenBSD - yrmt - 22-07-2014 That's because the script is calling pkg_add to install the program to /usr/local which needs permissions. RE: 'pkg_search': A little wrapper script for searching/installing packages in OpenBSD - greduan - 03-05-2015 Nice. I was looking for something like this. Thanks Phyrne. :) RE: 'pkg_search': A little wrapper script for searching/installing packages in OpenBSD - jmbi - 03-05-2015 (03-05-2015, 12:55 PM)greduan Wrote: Nice. I was looking for something like this. Thanks Phyrne. :) Holy necrobump RE: 'pkg_search': A little wrapper script for searching/installing packages in OpenBSD - ThePlantMan - 03-05-2015 I just pull up the /pub/OpenBSD/5.7/packages/`machine -a` directory of my chosen mirror in a browser window and Ctrl+F to see if what I want is in packages. Or pkg_add -n and take a wild guess at the name. RE: 'pkg_search': A little wrapper script for searching/installing packages in OpenBSD - greduan - 04-05-2015 jmbi: whoopsie. lol RE: 'pkg_search': A little wrapper script for searching/installing packages in OpenBSD - bsdkeith - 05-05-2015 If I want to check out what programs are available for OpenBSD, I go to http://ports.su/ |