https://github.com/piger/pkg_finder
OpenBSD package finder
https://github.com/piger/pkg_finder
Last synced: about 1 month ago
JSON representation
OpenBSD package finder
- Host: GitHub
- URL: https://github.com/piger/pkg_finder
- Owner: piger
- Created: 2013-12-10T16:49:25.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2017-08-03T12:56:36.000Z (almost 9 years ago)
- Last Synced: 2025-10-12T07:29:08.252Z (8 months ago)
- Language: Perl
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pkg_finder
A *package finder* for [OpenBSD][openbsd].
[openbsd]: http://www.openbsd.org
**NOTE**: this project is here only for nostalgia; [pkg_info](http://man.openbsd.org/pkg_info) had this feature for a while.
This is a little script I wrote many years ago to ease the maintenance of a OpenBSD system; it's like an `ls | grep` for FTP :)
I'm releasing it because apparently the **pkg** tools on OpenBSD still does not have this feature; the "code" is BSD licensed.
## Usage
To read the script documentation you can use `perldoc`:
$ perldoc ./pkg_finder.pl
`pkg_finder` requires the environment variable `PKG_PATH` containing the path of a local package repository or the URL of a remote FTP package repository.
For example to search for the **screen** package on
`ftp://ftp.kd85.com/pub/OpenBSD/3.8/packages/i386/`:
# export PKG_PATH="ftp://ftp.kd85.com/pub/OpenBSD/3.8/packages/i386/"
# pkg_finder.pl screen
p5-Term-Screen-1.02.tgz
p5-Term-ScreenColor-1.09.tgz
screen-4.0.2-shm.tgz
screen-4.0.2-static.tgz
screen-4.0.2.tgz
xscreensaver-4.21-no_gle.tgz
# pkg_add screen-4.0.2-static.tgz
...
See also: [pkg_add][pkg_add] man page.
[pkg_add]: http://www.openbsd.org/cgi-bin/man.cgi?query=pkg_add&sektion=1&arch=i386&apropos=0&manpath=OpenBSD+Current