pavement

Ports, searching

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
Line 3: Line 3:
 
Fear not: the ports tree is searchable for relevant stuff without having to resort to [[find]], [[grep]] or going through each section in the most mind-numbing way possible.
 
Fear not: the ports tree is searchable for relevant stuff without having to resort to [[find]], [[grep]] or going through each section in the most mind-numbing way possible.
  
 +
First, go into /usr/ports as root and make the search index (do all of this after updating your [[ports]] tree)
 +
 +
dave@samizdata% '''su -'''
 +
password:
 
  samizdata# '''cd /usr/ports'''
 
  samizdata# '''cd /usr/ports'''
 +
samizdata# make index
 +
then
 
  samizdata# '''make search key=browser | more'''
 
  samizdata# '''make search key=browser | more'''
or
+
which will search for any ports that have anything to do with the key word "browser" or
 
  samizdata# '''make search name=lynx | more'''
 
  samizdata# '''make search name=lynx | more'''
 
+
which will search for any packages by the name you supply.
will be very helpfull in your search.
+
  
  
 
[[Category: Common Tasks]]
 
[[Category: Common Tasks]]

Revision as of 08:42, 26 August 2004

I know what I want but I don't know what it's called

Fear not: the ports tree is searchable for relevant stuff without having to resort to find, grep or going through each section in the most mind-numbing way possible.

First, go into /usr/ports as root and make the search index (do all of this after updating your ports tree)

dave@samizdata% su -
password:
samizdata# cd /usr/ports
samizdata# make index

then

samizdata# make search key=browser | more

which will search for any ports that have anything to do with the key word "browser" or

samizdata# make search name=lynx | more

which will search for any packages by the name you supply.

Personal tools