Topic review - How to search for a specific port in FreeBSD
Author
Message
mandrei99
Post subject: How to search for a specific port in FreeBSD | Posted: Mon Oct 17, 2011 8:52 am
When you need to check if FreeBSD ports contain a specific software, one needs to either use "find /usr/ports" or make use of the "make" utility.
Searching for bash in FreeBSD ports:
Code:
# make -C /usr/ports/ search key=bash | grep -vE "B-deps|R-deps" | less ... Port: tuntun-0.4.0_3 Path: /usr/ports/security/tuntun Info: A Gnome applet gui for OpenVPN Maint: anderson@cnpm.embrapa.br WWW: http://code.google.com/p/tuntun/
Port: unssh-1.4 Path: /usr/ports/security/unssh Info: Fast way to delete entries from OpenSSH known_hosts file Maint: semprix@gmx.com WWW: http://unssh.sourceforge.net/
Port: bash-4.1.10 Path: /usr/ports/shells/bash Info: The GNU Project's Bourne Again SHell Maint: obrien@FreeBSD.org WWW: http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html
When you need to check if FreeBSD ports contain a specific software, one needs to either use "find /usr/ports" or make use of the "make" utility.
Searching for [i]bash[/i] in FreeBSD ports: [code]# make -C /usr/ports/ search key=bash | grep -vE "B-deps|R-deps" | less ... Port: tuntun-0.4.0_3 Path: /usr/ports/security/tuntun Info: A Gnome applet gui for OpenVPN Maint: anderson@cnpm.embrapa.br WWW: http://code.google.com/p/tuntun/
Port: unssh-1.4 Path: /usr/ports/security/unssh Info: Fast way to delete entries from OpenSSH known_hosts file Maint: semprix@gmx.com WWW: http://unssh.sourceforge.net/
Port: bash-4.1.10 Path: /usr/ports/shells/bash Info: The GNU Project's Bourne Again SHell Maint: obrien@FreeBSD.org WWW: http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html
Port: bash-static-4.1.10 Path: /usr/ports/shells/bash-static Info: The GNU Project's Bourne Again SHell Maint: obrien@FreeBSD.org WWW: http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html ... [/code]
Using "make search key=bash" will search all packages that contain "bash" in their name, dependendant ports package (which is a lot).
In case you only want to see ports that have "bash" in their name, use "make search name=bash" [code]# make -C /usr/ports/ search name=bash Port: ru-fortune-bashorgru-20080903 Path: /usr/ports/russian/fortune-bashorgru Info: Fortunes from bash.org.ru and freebsd.rusnet.org.ru/bash Maint: ports@FreeBSD.org B-deps: R-deps: WWW: http://bash.org.ru
Port: bash-4.1.10 Path: /usr/ports/shells/bash Info: The GNU Project's Bourne Again SHell Maint: obrien@FreeBSD.org B-deps: bison-2.4.3,1 gettext-0.18.1.1 libiconv-1.13.1_1 m4-1.4.16,1 R-deps: gettext-0.18.1.1 libiconv-1.13.1_1 WWW: http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html