pavement

Ports, searching

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
Line 8: Line 8:
 
  password:
 
  password:
 
  samizdata# '''cd /usr/ports'''
 
  samizdata# '''cd /usr/ports'''
  samizdata# '''make index'''
+
  samizdata# '''make index &'''
then
+
which will make the index so that you can search the ports tree, and run it in the background so that you can do other things. After that finishes, you can search for programs by keyword(s) or by name.
 
  samizdata# '''make search key=browser | more'''
 
  samizdata# '''make search key=browser | more'''
 
which will search for any ports that have anything to do with the key word "browser" 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.
+
which will search for any packages by the name you supply, send the output to your screen and [[pipe]] it to the [[more]] command.
  
  
 
[[Category: Common Tasks]]
 
[[Category: Common Tasks]]
 
[[Category: Ports and Packages]]
 
[[Category: Ports and Packages]]

Revision as of 00:57, 28 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 -- making the index can take a while, so go get some coffee or something. Do all of this after you Update_the_ports_tree.)

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

which will make the index so that you can search the ports tree, and run it in the background so that you can do other things. After that finishes, you can search for programs by keyword(s) or by name.

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, send the output to your screen and pipe it to the more command.

Personal tools