Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Fri Jun 02, 2023 3:17 am


Username:
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:
Font size:
 
Font colour
Options:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Disable BBCode
Disable smilies
Do not automatically parse URLs
Confirmation code
Confirmation code:
In an effort to prevent automatic submissions, we require that you enter both of the words displayed into the text field underneath.
     

Topic review - How to search for a specific port in FreeBSD
Author Message
Post subject: How to search for a specific port in FreeBSD  |  Post 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

Port:   bash-completion-1.3,1
Path:   /usr/ports/shells/bash-completion
Info:   Programmable completion library for Bash
Maint:  adamw@FreeBSD.org
WWW:    http://bash-completion.alioth.debian.org/

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
...


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

Port:   bash-completion-1.3,1
Path:   /usr/ports/shells/bash-completion
Info:   Programmable completion library for Bash
Maint:   adamw@FreeBSD.org
B-deps:   
R-deps:   bash-4.1.10 gettext-0.18.1.1 libiconv-1.13.1_1
WWW:   http://bash-completion.alioth.debian.org/
...
Jump to:  
cronNews News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO